Content
Who Am I
The cheapest call in the API, and the one worth making first with any key you have not used before.
GET
/api/v1/me x-api-keyReturns the client the key belongs to and the environment it runs in. It reads no hotel data and costs nothing.
Response
client.idstring optional- Your client id at Gateway Stream.
client.namestring optional- Your account name.
mode"sandbox" | "live" optional- Which environment this key runs in. The same value appears in the
x-gws-modeheader of every client response.
Why It Is Worth Wiring In
The single most expensive configuration mistake in an integration is a service that believes it is pointing at sandbox while holding a live key. One call at startup rules it out.
Status Codes
- 200
- The key is valid, and this is what it is.
- 401
unauthorized - Missing
x-api-key, or a key that is unknown, inactive, or absent from the environment its prefix points at. - 503
mode_unavailable - This deployment has no configuration for that environment — typically a live key against a sandbox-only deployment.