Resolve the Auth0 "Client is not authorized to access" API Error
Last Updated:
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.
- Navigate to Applications > API > Management API > Application Access in the tenant dashboard.
- Select Edit.
- Select the Client Access tab in the side panel.
- Select Grant Access.
- Select the required permissions.
- Select Save.