For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
API keys API
API keys API reference
Configure your environment settings below to update code samples:
- Client Libraries – select your preferred programming language of the code examples.
API keys
List API keys belonging to account
- Type: string • base64cursor
Page cursor
- Type: integerlimitmin:10max:100
Page limit
- application/json
curl https://service.maptiler.com/v1/api_keys \
--header 'Authorization: Basic username:password'
{
"cursor": null,
"total_count": 1,
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"token": "string",
"name": "string",
"description": null,
"user_agent": null,
"origins": [
"string"
],
"created": "2026-08-31T17:00:00.000Z",
"changed": "2026-08-31T17:00:00.000Z"
}
]
}Page of API keys
Create new key
- Type: string | nulldescription
- Type: string | nullname
Will be generated automatically unless provided explicitly.
- Type: array string[]origins
Specifies which HTTP origins are allowed to access the API.
For example [
mydomain.com] will ensure, that only requests coming frommydomain.comwill be processed. Use*.mydomain.comto allow all subdomains.Ensure your application sends the
OriginorRefererheader; otherwise, requests are treated as unknown and will be rejected if any origin is specified.Use
?placeholder to explicitly allow unknown origins. - Type: string | nulluser
_agent Processes only requests where the
User-AgentHTTP header contains this exact, case-sensitive substring.Wildcards are not supported; only a single string is allowed.
Useful for increasing security of your key used in custom mobile or desktop applications.
Leave empty to allow requests from any user-agent.
- application/json
curl https://service.maptiler.com/v1/api_keys \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic username:password' \
--data '{
"name": null,
"description": null,
"user_agent": null,
"origins": [
""
]
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"token": "string",
"name": "string",
"description": null,
"user_agent": null,
"origins": [
"string"
],
"created": "2026-08-31T17:00:00.000Z",
"changed": "2026-08-31T17:00:00.000Z"
}API key
Get key
- Type: string Format: uuidkey
_id requiredIdentifier of API Key.
- application/json
curl https://service.maptiler.com/v1/api_keys/123e4567-e89b-12d3-a456-426614174000 \
--header 'Authorization: Basic username:password'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"token": "string",
"name": "string",
"description": null,
"user_agent": null,
"origins": [
"string"
],
"created": "2026-08-31T17:00:00.000Z",
"changed": "2026-08-31T17:00:00.000Z"
}API key
Delete given key
- Type: string Format: uuidkey
_id requiredIdentifier of API Key.
- 200
Successfully deleted
curl https://service.maptiler.com/v1/api_keys/123e4567-e89b-12d3-a456-426614174000 \
--request DELETE \
--header 'Authorization: Basic username:password'
Successfully deleted
Update given key
- Type: string Format: uuidkey
_id requiredIdentifier of API Key.
- Type: string | nulldescription
- Type: string | nullname
Will be generated automatically unless provided explicitly.
- Type: array string[]origins
Specifies which HTTP origins are allowed to access the API.
For example [
mydomain.com] will ensure, that only requests coming frommydomain.comwill be processed. Use*.mydomain.comto allow all subdomains.Ensure your application sends the
OriginorRefererheader; otherwise, requests are treated as unknown and will be rejected if any origin is specified.Use
?placeholder to explicitly allow unknown origins. - Type: string | nulluser
_agent Processes only requests where the
User-AgentHTTP header contains this exact, case-sensitive substring.Wildcards are not supported; only a single string is allowed.
Useful for increasing security of your key used in custom mobile or desktop applications.
Leave empty to allow requests from any user-agent.
- application/json
curl https://service.maptiler.com/v1/api_keys/123e4567-e89b-12d3-a456-426614174000/change_settings \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic username:password' \
--data '{
"name": null,
"description": null,
"user_agent": null,
"origins": [
""
]
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"token": "string",
"name": "string",
"description": null,
"user_agent": null,
"origins": [
"string"
],
"created": "2026-08-31T17:00:00.000Z",
"changed": "2026-08-31T17:00:00.000Z"
}API key