Create an access token

Requires the X-Tenant header and a JSON request body.

The issued token is bound to the resolved tenant and environment and is rejected
anywhere else.

Tokens last for the lifetime set on the API key (expires_in gives the seconds
remaining). There is no refresh token on this endpoint — request a new token with your
credentials when the current one expires.

Tokens from this endpoint work only on /public/v1 routes. Each request is checked
against the API key again, so a revoked, expired or disabled key, or a caller IP outside
the key's allowlist, is refused straight away. When the key is bound to an API user,
only that user can obtain a token with it.

Accounts configured for multi-factor authentication or email verification cannot
authenticate here; use a dedicated API account without interactive sign-in steps.

All authentication failures return the same generic 401 response.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

API key credentials and API user credentials.

Credentials for the token endpoint.

string
required
length between 0 and 200

The API key client id issued from the Developer page.

string
required
length ≥ 1

The API key client secret issued from the Developer page.

string
required
length between 0 and 450

The API user's username.

string
required
length ≥ 1

The API user's password.

Headers
string

Your tenant identifier (the subdomain of your Quantum Works URL), passed via the X-Tenant header.

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json