https://openbookings.co and return JSON. There is no SDK requirement — a standard fetch call or curl command is enough to get started.
Base URL
Available endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/query | Search hotel availability near a location |
POST | /api/auth/magic-link/send-magic-link | Request a magic-link sign-in email |
Request format
GET requests pass all parameters as URL query strings. POST requests must send a JSON body and include the following header:
Response format
All responses return JSON. Successful responses return the resource directly (an array for search results, an object for auth operations). There is no top-level wrapper object on success.Error format
Errors use one of two shapes depending on the endpoint: Validation errors (HTTP 400) — returned when one or more request parameters are missing or invalid:HTTP status codes
| Code | Meaning |
|---|---|
200 | Request succeeded |
400 | One or more parameters are missing or invalid |
500 | Internal server error |
Rate limiting
API requests are rate-limited. If you exceed the limit, you will receive an error response. Implement retry logic with exponential backoff in any production integration to handle transient rate-limit responses gracefully.Next steps
Authentication
Learn how users sign in and how sessions work.
Hotel search
Full parameter and response reference for
GET /api/query.