Skip to content
Guides menu
Guides/Site keys

Site keys

Use a server held site key to bind public booking calls to one shop website.

A site key is for the server behind a shop's own website. Send it as X-Outdoor-Grid-Site-Key: og_site_YOUR_KEY on public booking calls. It selects one shop and can set the origin of guest return links. It is different from a person bound, read only shop API key.

Never put a site key in browser JavaScript, a public bundle, a URL, or a page's HTML. With a site key, a request for another shop's slug returns 404. The key alone never reads or changes a booking or trip. Guest booking calls still need their booking capability, booking view token, trip token, or guest session, according to the reference.

The return_base_url saved on the key may be a bare HTTPS origin such as https://shop.example. It has no path, port, query, fragment, or trailing slash. Outdoor Grid builds fixed booking and trip return paths from that origin. It cannot be overridden by a guest request. If no return origin is set, guest links use the Outdoor Grid host.

For a Next.js site, Booking Elements provides a server route that adds the key and keeps guest credentials in HttpOnly cookies. Its browser calls its own site's route. For a custom server, send the header only from that server and implement the guest capability, same origin, and token handling shown in the generated public booking reference.