Developers
API referenceReferenceJ W T

Get JWT token

Returns a short-lived JWT (1 hour) for the authenticated user. If a `business_slug` is provided, the token is scoped to that business. Use the returned token in the `Authorization` header: `Authorization: Token <jwt>` Business scoping: when provided, the `business_slug` is embedded in the JWT. The token is only valid for the business whose slug was requested, and requests must match that slug in the business context. Workspace scoping: `selected_business_slugs` restricts a slug-less token to those businesses and embeds a per-business `billing_entities` cap for each. A selection that resolves to no accessible business is rejected.

POST
/auth/jwt/

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/auth/jwt/" \  -H "Content-Type: application/json" \  -d '{}'
{  "token": "string"}