Create Access Token (deprecated)
Deprecated. Use POST /console/v1/auth/token
instead. This endpoint still works, but a token it mints is valid only in the region
that minted it (api.india.smallest.ai or api.us.smallest.ai). The request body
and responses are the same as the console endpoint. It will be retired with advance
notice.
Authentication
AuthorizationBearer
API key authentication. Include your key as Authorization: Bearer YOUR_API_KEY. Access tokens are not accepted on this endpoint.
Request
This endpoint expects an object.
ttl_seconds
How long the token stays valid, in seconds. Between 30 and 900. Defaults to 300 when omitted.
Response
Token created. Valid only in the region that minted it.
access_token
The short-lived token. Always starts with wat_. Send it as Authorization: Bearer <access_token>.
token_type
Always Bearer.
Allowed values:
expires_in
Seconds until the token expires, equal to the ttl_seconds that was applied.
expires_at
Expiry time in UTC (ISO 8601).
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error