Version: 2.x

Why do I get a 401 unauthorized error?

If you get back a 401 application error from the API, please find below a list of possible causes of a 401 response:

  • Your client has not been registered yet by a kazi administrator. Please follow the getting started guide.
  • The resource id (= audience) is missing during the access token request. See client credentials grant type.
  • The subscription key (= Ocp-Apim-Subscription-Key) is missing in the API request.
  • You do not have the necessary scopes assigned to your application to make this API call.

Should your issue persist, see the article about switching to production for more information or contact a kazi administrator via the contact info in the footer of this page.