Skip to main content
GET
/
context
curl 'https://fetch-<project-token>.frontic.com/context' \
  -H 'fs-context: <context-key>'
[
  {
    "region": "eu",
    "currency": "EUR",
    "locales": [
      { "key": "de-DE", "url": "https://<your-shop>/de" },
      { "key": "en-GB", "url": "https://<your-shop>/uk" },
      { "key": "fr-FR", "url": "https://<your-shop>/fr" }
    ]
  },
  {
    "region": "us",
    "currency": "USD",
    "locales": [
      { "key": "en-US", "url": "https://<your-shop>/us" }
    ]
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.frontic.com/llms.txt

Use this file to discover all available pages before exploring further.

List the available context variations for the project’s active scope — every region, its currency, and the supported locales (each with the URL it’s reachable at). Useful for building region/language switchers and for discovering valid region/locale values to pass to Update Context.

Path Parameters

project-token
string
required
Your project’s Fetch token, embedded in the subdomain.

Headers

fs-context
string
Optional. When set, the response is the variations available within this token’s scope.
fs-domain
string
Optional. When set without fs-context, the response is the variations for the scope tied to this domain.
fs-secret
string
Required when the project has fetch API keys configured.

Response

Returns an array of context variations. The active contextKey (created or reused) is also returned in the fs-context response header.
region
string
required
The region key.
currency
string
required
The region’s ISO 4217 currency code.
locales
array
required
Supported locales for the region, each with:
  • key — locale code (e.g. de-DE)
  • url — domain mapping URL for this region+locale combination

Status codes

CodeWhen
200Variations returned
401fs-secret missing or wrong (only when the project has fetch keys configured)
403Project’s plan limit for Fetch API requests exceeded
curl 'https://fetch-<project-token>.frontic.com/context' \
  -H 'fs-context: <context-key>'
[
  {
    "region": "eu",
    "currency": "EUR",
    "locales": [
      { "key": "de-DE", "url": "https://<your-shop>/de" },
      { "key": "en-GB", "url": "https://<your-shop>/uk" },
      { "key": "fr-FR", "url": "https://<your-shop>/fr" }
    ]
  },
  {
    "region": "us",
    "currency": "USD",
    "locales": [
      { "key": "en-US", "url": "https://<your-shop>/us" }
    ]
  }
]