# Site keys

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](/docs/api-keys/overview).

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](/docs/api).

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](/docs/booking-api/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](/docs/api).
