Chelabase
Login apiLogin

Mint Member Token

POST
/auth/v1/token

Mints a member access token from the HttpOnly session cookie, after checking that the identity session is live and younger than 30 days and that the membership is active. Takes no body. Studio must send Origin and X-Chelabase-Studio: 1. Never cached.

Query Parameters

tenant?string

The tenant's id. Needed to sign in to one of several; /auth/v1/token refuses any but the session's. Never trusted: it is checked against the memberships.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/auth/v1/token"
{  "access_token": "string",  "expires_in": 0}