tokens

Create a service token

Create a service token for machine-to-machine authentication. Accepts API key or bearer token. Optionally apply restrictions.

post/tokens

Request body

profileSlugstring

Profile slug for legacy token minting. Cannot be combined with policy.

Response

Token created successfully

tokenstring required

The signed service token.

expiresAtstring required

ISO 8601 timestamp when the token expires.

Example response

{
  "expiresAt": "2024-01-01T01:00:00.000Z"
}

Changes