Overview
Use this page when you are ready to start integrating. It covers the protocol-level rules that apply before you move into the walkthrough and endpoint reference: authentication, versioning, payload shape, pagination, and date handling.Security and authentication
Headout APIs are server-to-server APIs. Keep the API key on your backend, send every request over HTTPS, and do not call the APIs directly from a browser. Browsers are not supported for direct API calls because the platform does not support CORS for client-side access.- Authentication: send the
Headout-Authheader on every request. - Obtaining keys: API keys are issued by Headout. There is no self-serve key portal — reach out to your Headout SPOC to obtain your sandbox and production keys.
- Testing keys: use the sandbox key while you build and test.
- Production keys: use the production key only after your integration is ready to launch.
Environments
Headout APIs use separate hosts for sandbox and production. Build and validate in sandbox first, then switch to production when you are ready to launch.- Sandbox base URL:
https://www.sandbox-headout.com - Production base URL:
https://www.headout.com
The previous sandbox host
https://sandbox.api.dev-headout.com will continue to work, so existing integrations are unaffected. We recommend migrating to https://www.sandbox-headout.com at your convenience.Versioning and environments
Headout APIs are versioned. The version is part of the URL, and it tells the API which contract to use.- Versioning: use the versioned route for the endpoint family you are integrating with.
- Sandbox: start in the sandbox and validate the full flow there first.
- Production: move to production only after you have confirmed the integration in sandbox.
Payload format
Most Headout endpoints accept and return JSON. Keep the request payloads small and predictable, and always send the content headers that tell the API how to parse the body.- Request body: send JSON only.
- Response body: expect JSON objects or JSON lists depending on the endpoint.
- Headers: set
AcceptandContent-Typeexplicitly so the request and response format are unambiguous.
Pagination and responses
List endpoints return paginated responses. Use the pagination parameters to request the next slice of data instead of trying to fetch everything in one call.- Pagination: call the next page using the continuation data returned by the list response.
- Response: use the response envelope to tell whether more pages are available.
itemscarries the current page,nextUrlandnextOffsettell you how to fetch more, andprevUrllets you move backwards if the API supports it. - Caching: do not treat inventory or other live list responses as static data.
Date formats
Headout APIs use two date formats:- ISO 8601: use this for fields such as
startTime,endTime,dateCreated, anddateUpdated. - Localized format: use
yyyy-MM-dd HH:mm:ssfor timestamps that should be read in the supplier’s timezone, such as local-context tour start times.
startTime in ISO 8601 takes precedence over startTimeLocal. Use the ISO value as the canonical timestamp when you parse, store, or compare dates, and use the localized value only when you need the supplier-local representation.