Create Mapbox Token Tool
create_token_toolCreate a Mapbox public access token with custom scopes and optional URL restrictions for secure API access.
Instructions
Create a new Mapbox public access token with specified scopes and optional URL restrictions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | Description of the token | |
| scopes | Yes | Array of scopes/permissions for the public token. Valid scopes: styles:tiles, styles:read, fonts:read, datasets:read, vision:read. | |
| expires | No | Optional expiration time in ISO 8601 format (maximum 1 hour in the future) | |
| allowedUrls | No | Optional array of URLs where the token can be used (max 100) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The token's unique identifier | |
| note | Yes | Human-readable description of the token | |
| token | Yes | The actual access token string | |
| usage | Yes | Token usage type: pk (public), sk (secret), or tk (temporary) | |
| client | Yes | The client for the token | |
| scopes | Yes | Array of scopes granted to the token | |
| created | Yes | ISO 8601 creation timestamp | |
| default | Yes | Whether this is the default token | |
| expires | No | Expiration time in ISO 8601 format (temporary tokens only) | |
| modified | Yes | ISO 8601 last modified timestamp | |
| allowedUrls | No | URLs that the token is restricted to |