Developer tools / Sandbox

API Sandbox Testing

Test the Coliving API integration in a safe environment

Safe Testing Environment

Sandbox Environment: This is a testing environment where you can try the API endpoints without creating real data. All responses are mock data and no actual users, bookings, or listings are created.

Test Data

Use these pre-defined IDs for testing the API endpoints:

Users

ID: 1001 - John Doe (john.doe@example.com)
ID: 1002 - Jane Smith (jane.smith@example.com)

Listings

ID: 2001 - Cozy Downtown Apartment (NYC)
ID: 2002 - Modern City Loft (San Francisco)

Room Types

ID: 3001 - Private Room (Listing 2001)
ID: 3002 - Shared Room (Listing 2001)
ID: 3003 - Studio Apartment (Listing 2002)

Test User Creation

Try creating a user with the sandbox endpoint:

POST /sandbox/users

Test Booking Creation

Try creating a booking with the sandbox endpoint:

POST /sandbox/bookings

Test Listing Create / Update

Mock POST/PATCH/GET for listings. Nothing is written to the listings table. Use the id from POST in PATCH or GET.

These paths are sandbox-only. Production create/update remains POST/PATCH /v1/listings. POST/PATCH still return a sparse data object; GET returns the full cached listing. The sample bodies match the listings import catalog; amenity and enum IDs come from /json/import/*.

POST /sandbox/listings
PATCH /sandbox/listings/{id}
GET /sandbox/listings/{id}

Create (POST)

Update (PATCH)

Show (GET)

Clear Sandbox Data

Clear all test data from the sandbox environment:

About the Sandbox

What You Can Do

  • Test user creation with various parameters
  • Test booking creation with different scenarios
  • Test listing create, update, and show (POST/PATCH/GET) without writing to the database
  • See realistic API responses
  • Practice API integration without risk

Important Notes

  • No real data is created or stored
  • All responses are mock data
  • Test data expires after 1 hour
  • Use this to learn the API structure