Before interacting with our APIs, your application must authenticate and obtain an access token. This token authorizes API requests on behalf of your account, ensuring secure communication.
Generates an authentication token. The token must be sent with the x-api-key
header for all authenticated requests.
The user credentials for authentication
username required | string Account username. |
password required | string Account password. |
method required | string Enum: "token" "cookie" Authentication method; |
name | string useful to isolate activity of each token for the same user |
twofa_token | string 2FA token. If not provided, an email will be sent with a new token. Required to receive an authentication token |
{- "username": "user123",
- "password": "password123",
- "method": "token",
- "name": "string",
- "twofa_token": "string"
}
{- "status": "success",
- "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9eyJ1c2VyX2lkIjoiNzQifQH9Xrm7x1w3SldB9gUVShNquN9xdGK6qYivUB2G2xYWU"
}