Retrieve authentication token
Returns a JSON Web Token (JWT) auth_token for authenticating further requests to the API.
This API path has a rate limit of 100 requests per IP in a 5-minute window. Make sure to store your authentication token to avoid hitting this limit. For more information, see Rate limits.
Multi-factor authentication flow
When multi-factor authentication (MFA) is enabled for a user account:
- Initial login: Send your username and SHA-1 hashed password.
If MFA is enabled and the device isn’t trusted, you receive an
mfa_tokeninstead ofauth_tokenin the response and a one-time password (OTP) via email. - MFA verification: Send the
mfa_tokenwith the 6-digit OTPcode. Optionally includetrusted_deviceinformation to skip MFA for 90 days. - Subsequent logins: If you included a trusted device fingerprint during verification, send your username and SHA-1 hashed password with the
fingerprintto bypass MFA.
For more information, see Multi-factor authentication.
Request
Authenticate with an application token.
Temporary exception: User credentials are currently required for operations that span multiple workspaces, such as switching between workspaces or transferring SIMs. These APIs are being updated to support application tokens.
User password. Must be SHA-1 hashed when authenticating with user credentials.
Device fingerprint for trusted device authentication (skips MFA)
Refresh token to obtain a new auth_token
6-digit one-time password (OTP) for MFA verification
Device information to register as trusted (90-day MFA exemption)
Response
JWT authentication token (returned for successful authentication)
Refresh token (returned with auth_token for user credentials auth)
MFA token (returned instead of auth_token when MFA is enabled and device isn't trusted)