Skip to content

Exchange API key for JWT

POST
/auth/token

Exchanges an API key for a JWT access token. The returned token should be used in the Authorization header as Bearer <token> for authenticated requests. Token expires after the time specified in expires_in.

Request to exchange an API key for a JWT.

object
api_key
required

The plaintext API key.

string
expires_in_secs

Optional expiration in seconds from now.

integer | null format: int64

Token generated

JWT token response (for API key exchange).

object
access_token
required

The JWT access token.

string
expires_in
required

Token lifetime in seconds.

integer format: int64
token_type
required

Token type (always “Bearer”).

string

Invalid or revoked API key

Generic error response for OpenAPI documentation.

object
error
required

Error message.

string

Server error