Generate authentication token

Generates an authentication token. The token must be sent with the x-api-key header for all authenticated requests.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

The user credentials for authentication
usernamestringRequired
Account username.
passwordstringRequired
Account password.
methodenumRequired

Authentication method;

Allowed values:
namestringOptional
useful to isolate activity of each token for the same user
twofa_tokenstringOptional
2FA token. If not provided, an email will be sent with a new token. Required to receive an authentication token

Response

Successful operation
statusstring
tokenstring
Returned when method is 'token'
messagestring
Returned when a 2FA token is not provided