GET /api/query) is publicly accessible with no credentials required. User-facing sign-in flows use a magic link delivered by email, which produces a session cookie your client can include on subsequent requests.
Hotel search — no authentication required
TheGET /api/query endpoint is open. You do not need an API key, bearer token, or session cookie to search for hotel availability. Pass your search parameters as query string values and you will receive results immediately.
Because the search endpoint is public, avoid exposing sensitive user data (such as saved itineraries or booking history) through it. Use session-authenticated endpoints for anything user-specific.
Magic-link sign-in
Users authenticate by requesting a one-time sign-in link sent to their email address. The link expires after 15 minutes. The flow consists of three steps:Request a magic link
Your client sends a On success you receive an HTTP 200 response. The API sends an email to the address immediately.
POST request to /api/auth/magic-link/send-magic-link with the user’s email and the URL you want the user redirected to after sign-in.User clicks the link
The email contains a one-time URL. When the user clicks it, their browser is directed to the OpenBookings auth service, which verifies the token and redirects to the
callbackURL you specified.