API Sandbox Testing
Test the Coliving API integration in a safe 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
Listings
Room Types
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}
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