Generate an API token

Given an email address and a password, generate an API authorization token. This token can be used with Bearer authorization when used together with the customer ID. (The customer ID is the same as the first number in the API server URL.)

Authorization: Bearer <customerid> <apitoken>

Only "local" users that have a password can use this API; SSO users cannot log in using a password.

This endpoint does not itself need to Authorization header.

Body Params

The login username and password.

string
required

The email address of the user to mint credentials for.

password
required

The password of the user minting credentials.

string

Optional name of the token, to remember what it is for.

Responses

400

Invalid request.

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