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 POST to /token/oauth on the base URL for your region.
  • The Authorization header is Basic followed by your Base64-encoded username:password.
  • The username and password are encoded as one string, with the colon between them.
  • Requests to the other APIs send Bearer followed by the access_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

Using Tokens