# Public booking API

The public booking API serves a shop's own website and Outdoor Grid's hosted booking pages. It provides public shop details, products, availability, quotes, bookings, and guest views. Production uses `https://api.outdoorgrid.ai`; QA uses `https://api-qa.outdoorgrid.ai`. The current operations and schemas are in the [generated reference](/docs/api), backed by the [public OpenAPI document](https://api.outdoorgrid.ai/v1/openapi.json).

Public catalog and availability reads do not require a staff login. A shop website server can send a [site key](/docs/booking-api/site-keys) to select its shop and keep return links on its own domain. A site key is a server credential and stays off the browser. Creating or reading a particular booking requires a separate guest booking capability or view token. A site key by itself cannot read a guest's trip.

For a website on Next.js, start with [Booking Elements](/docs/booking-api/booking-elements). Its server route manages the site key, guest capability, cookies, allowed operations, and same origin checks. For a simple link from a website button, use [booking links](/docs/booking-api/booking-links). For a custom server integration, read the reference operation's authentication and response schema before calling it.

Public booking errors use coded JSON. The exact body and status depend on the operation. A declined price or unavailable line may use a structured 409 response; read the operation's response models rather than treating every non-200 as the same error.
