Skip to main content
POST
Generate a token

Authorizations

X-API-Key
string
header
required

Your account's API key, found on the Settings page. It's required for all API methods. You can also send it as an Authorization: Bearer <api-key> header instead of X-API-Key.

Headers

X-API-Key
string
required

Your account API key from the Settings page. A token generated from /api/v1/token is not accepted on this method. You can also send the key as Authorization: Bearer <api-key>.

Body

application/json
ttl
integer

Time to live for the API token in seconds. Default value 86400 (24 hours)

Example:

86400

accessLevel
enum<string>

mark for tokens with no application access restriction

Available options:
root

Response

200 - application/json

successful operation

responseCode
enum<integer>
Available options:
200
token
string