Error "token not authorised"

Created by Andy McCutcheon, Modified on Thu, 26 Mar at 10:21 AM by Andy McCutcheon

This error indicates that the token you’re using to call the Zai API has expired or you are using an invalid credentials.

Zai uses OAuth2 for authentication. Instead of sending your username and password with every request, you first request a temporary access token (also called a Bearer Token). This token is valid for 60 minutes and must be included in the Authorization header of each API request.

If you see this error, generate a new token and try the request again.

For more details, see the Auth Credentials guide.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article