Embed Tokens
Create Embed Token Endpoint
Create an embed token scoped to a map's current layers.
The default 30-day unrestricted token is always available. Custom lifetimes and non-empty origin restrictions require advanced sharing controls.
post/maps/{map_id}/embed-tokens/
Request
- The document declares no server URL.
- Auth: one of:
- OAuth 2 (password, token URL /api/auth/login)
- API key in header X-Api-Key
- API key in query parameter api_key
Path parameters
map_idstring uuid required
Request body
Example request
{
"expires_in_days": 90,
"name": "Public dashboard embed",
"allowed_origins": [
"https://dashboard.example.com"
]
}Response
Successful Response
Changes
No recorded changes to this operation across all 50 revisions of this API.