Resolve the Auth0 "Client is not authorized to access" API Error

Overview

When administrators attempt to test a newly created API, an authorization error occurs. This error occurs because the application lacks the necessary authorization. Authorizing the client and granting the necessary permissions in the Auth0 Dashboard resolves this issue. When this error occurs, Auth0 displays the following message:

 

Client is not authorized to access "<API URL>". You need to create a "client-grant" associated to this API

 

Applies To

  • Auth0
  • APIs
  • Client Grants

Cause

The error does explain that the application is missing authorization, but the linked documentation Create client grant addresses client grants, not API authorization settings.

Solution

How is the Auth0 client authorized for the Management API?

Authorize the client and grant the necessary permissions in the Auth0 tenant dashboard.

  1. Navigate to Applications > API > Management API > Application Access in the tenant dashboard.
  2. Select Edit.
  3. Select the Client Access tab in the side panel.
  4. Select Grant Access.
  5. Select the required permissions.
  6. Select Save.

API Explorer Application

Recommended content

No recommended content found...