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 or bookings 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 /api-sandbox/users/create

Test Booking Creation

Try creating a booking with the sandbox endpoint:

POST /api-sandbox/bookings/create

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
  • 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