Authorization: YOUR_API_KEY or x-api-key: YOUR_API_KEY). Short-lived tokens are available on Startup, Growth, and Enterprise plans.
Create tokens
POST /api/2/auth/tokens
Creates one or more short-lived tokens. Each token is returned once; store it securely.
Request body
You must provide at least one of the following fields.Example
Response
token value in subsequent API calls as:
List tokens
GET /api/2/auth/tokens
Returns all active short-lived tokens for your API key. The token secret is not returned.
Example
Response
Inspect one token
GET /api/2/auth/token?token=<jwt>
Returns metadata for a single short-lived token by its JWT string. Requires your static API key and the token query parameter set to the full JWT.
Query parameters
Example
Response
Revoke a token
DELETE /api/2/auth/tokens/:id
Revokes a short-lived token by its id. The token stops working immediately.
Path parameters
Example
Response
Using a short-lived token on other endpoints
After creating a token, use it for any Mobula API call by sending it only in the Bearer header:x-api-key. Use Authorization: Bearer <token> only.
Authentication overview
Back to API key and short-lived token overview