Fetch API
Get Context
GET
Resolve a
contextKey to the stored region, locale, and scope. Useful for hydrating client state from a cookie, or for verifying a token before making other requests.
Path Parameters
Your project’s Fetch token, embedded in the subdomain.
Headers
The
contextKey to resolve. The token must be 36–50 characters and exist in the project.Required when the project has fetch API keys configured.
Response
The active
contextKey.The region key (e.g.
eu, uk).The locale key (e.g.
de-DE, en-GB).Status codes
| Code | When |
|---|---|
200 | Token resolved |
400 | INVALID_TOKEN — fs-context not in the 36–50 character range |
401 | fs-secret missing or wrong (only when the project has fetch keys configured) |
404 | TOKEN_NOT_FOUND — token doesn’t exist in this project |