API keys API
API keys API reference
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
{
"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"
}
]
}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' \
--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"
}Get key
- key
_id
- application/json
curl 'https://service.maptiler.com/v1/api_keys/{key_id}'
{
"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"
}Delete given key
- key
_id
- 200
Successfully deleted
curl 'https://service.maptiler.com/v1/api_keys/{key_id}' \
--request DELETE
Successfully deleted
Update given key
- key
_id
- 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/{key_id}/change_settings' \
--request POST \
--header 'Content-Type: application/json' \
--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"
}