API Documentation
Complete technical documentation for developers
Getting Started
Quick start guide
API Reference
Complete API endpoints
Authentication
Security protocols
Best Practices
Implementation tips
Getting Started
Authentication
All API requests require authentication using API keys. You can generate API keys from your partner dashboard.
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.booking-clone.com/v1/propertiesBase URL
All API endpoints are relative to the base URL:
https://api.booking-clone.com/v1/Core Endpoints
GET
/propertiesList all properties
POST
/propertiesCreate a new property
GET
/properties/:idGet property details
PUT
/properties/:idUpdate property information
GET
/bookingsList all bookings
POST
/bookingsCreate a new booking
PUT
/availability/:propertyIdUpdate availability calendar
PUT
/rates/:propertyIdUpdate pricing and rates
Rate Limiting
API requests are limited to 1000 requests per hour per API key. Rate limit information is included in response headers:
X-RateLimit-Limit: 1000X-RateLimit-Remaining: 999X-RateLimit-Reset: 1620000000Error Handling
The API uses standard HTTP status codes and returns errors in JSON format:
{
"error": {
"code": "invalid_request",
"message": "Missing required parameter: propertyId"
}
}Need Help?
Our technical support team is ready to assist you with integration