Errors & Status Codes

Understand API status codes, authentication errors, and how to troubleshoot common authorization issues.

Use the following HTTP status codes to understand the result of your API request.

200 — Success

The request was successful and the API returned the requested data.

401 — Unauthorized

The request is not authorized. This can occur when the access token is invalid or expired.

Example

{
  "success": false,
  "message": "Invalid or expired access token."
}

Authentication Errors

If you receive a 401 Unauthorized response, verify that:

  • You are using a valid access token.
  • The access token has not expired.
  • The token is included in the Authorization header.

Example

Authorization: Bearer YOUR_ACCESS_TOKEN

If the token has expired, generate a new access token using the Generate Auth Token API.

For more information about authentication, see Authentication.


Did this page help you?