Skip to main content
POST
Issue a Cube API token for Usage Analytics

Authorizations

Authorization
string
header
required

Token authentication. Send Authorization: Bearer <YOUR_TOKEN>.

Response

200 - application/json
apiUrl
string
required

Base URL of the Usage Analytics deployment’s Cube REST API (e.g. https://<host>/cubejs-api/v1). Query it with the returned token.

deploymentId
integer
required

Id of the Usage Analytics deployment the token was issued for.

token
string
required

A short-lived JWT for the Usage Analytics deployment, carrying this tenant’s security context. Send it as Authorization: Bearer <token> on requests to apiUrl.

expiresAt
string | null

When the token expires, as an ISO-8601 timestamp. Request a new token before this moment β€” issuing one is idempotent and cheap.