Authentication API
Generate access tokens that authorize API calls.
Troubleshooting
Use this page to diagnose a token request that fails, or a request to another API that is rejected because of its token. Each issue lists the likely causes and how to fix them. For the meaning of an error message, see Error Messages.
Before You Start
Most problems can be traced to one of the following. Check them first.
- The token request is a
POSTto/token/oauthon the base URL for your region. - The
Authorizationheader isBasicfollowed by your Base64-encodedusername:password. - The username and password are encoded as one string, with the colon between them.
- Requests to the other APIs send
Bearerfollowed by theaccess_token, and the token is less than 60 minutes old.
Reading an Error Response
A failed token request returns an error_message that describes the problem.
{
"error_message": "Incorrect username or password"
}
Errors from the other APIs have a different format, with a statusCode, an errorCode, a message and a requestId. See the error messages page of the API you are calling.
Token Requests
401 Unauthorized
My Credentials Are Correct but the Request Fails
I Haven't Received My Account Activation Email
Using Tokens
A Request to Another API Returns 401
My Token Expired in the Middle of a Job
I Asked for a New Token and Got the Same One