Storefront
Storefront Tokens
Generate and manage API tokens for authenticating with the Storefront API.
Storefront tokens are API keys that authenticate requests to the Storefront API. Each token grants read access to your storefront data for a specific market.
Managing tokens
Tokens can be managed at two levels:
- Tenant-level — Under Settings → Storefront. These tokens are shared across all markets.
- Market-level — Under Settings → Markets → Market → Storefront. These tokens are scoped to a specific market.
Generating a token
- Navigate to the token management page (tenant or market level).
- Click Generate Token.
- Enter a Name for the token (e.g., "Production Website", "Staging Environment").
- Optionally add Allowed Origins (CORS) to restrict which domains can use this token.
- Click Create.
A modal displays the generated token. Copy it immediately — you won't be able to see the full token again.
Store your storefront token securely. If you lose it, you'll need to generate a new one.
CORS restrictions
Each token can have allowed origins that restrict which domains can make API requests:
- Add specific domains (e.g.,
https://www.example.com) to restrict access. - Leave origins empty to allow requests from any domain — this is suitable for development but not recommended for production.
A token with no CORS restrictions shows a warning: "Allows all origins (Development)".
Adding origins
- In the token creation form, enter a domain in the origin field.
- Click Add Origin to add more domains.
- Each domain is validated and stored with the token.
Token states
| State | Description |
|---|---|
| Active | The token is valid and can be used for API requests. |
| Revoked | The token has been revoked and no longer works. |
Editing a token
- Click on an active token to open the edit form.
- Update the Name or Allowed Origins.
- Click Save Changes.
Revoking a token
Revoking a token immediately disables it. Any application using the token will lose access.
- Click the revoke action on a token.
- Confirm the revocation.
Revoking a token is immediate and cannot be undone. Applications using this token will stop working right away.
Token metadata
Each token displays:
- Created — When the token was generated.
- Last used — When the token was last used for an API request.
- Allowed Origins — The domains permitted to use this token.