Connect an API that uses Auth0
If your API verifies access tokens issued by Auth0, Faustine signs in as a machine-to-machine application, with the client credentials grant. You create that application in Auth0 and enter its values in Faustine.
Before you begin
- Your API is registered in Auth0 and has an identifier, such as
https://api.nimbuscrm.example. Auth0 uses the identifier as the token's audience.
Create the application in Auth0
In Auth0, create a machine-to-machine application for Faustine and authorize it for your API, with the permissions agent traffic needs. For the screens, see Machine-to-machine applications and the client credentials flow in the Auth0 documentation.
Note four values: your Auth0 domain, the API's identifier, and the application's client ID and client secret.
Set the token endpoint on the API
- In the portal, go to APIs and select your API.
- Select the Authentication tab, then Edit.
- In Sign-in method, select OAuth client.
- In Token provider, select Auth0.
- In Domain, enter your Auth0 domain, such as
acme.us.auth0.com. - In Audience, enter the identifier of your API. Auth0 does not issue a token without it.
- Scopes is optional.
- Select Save changes.
The token URL appears under Domain:
https://<DOMAIN>/oauth/tokenA custom domain works in Domain too. The next time you open the form, it shows the provider as Custom with the same token URL.
Add the client to a connection
- Select the Connections tab, then New connection, or select an existing connection.
- In Credentials, enter the Client ID and Client secret.
- In the Test step, select a read operation and select Test connection.
Reached the endpoint with a 2xx status confirms that Auth0 issued a token and your API accepted it.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Auth0 needs the API identifier as the audience. |
Audience is empty. | Enter the identifier of the API as registered in Auth0. |
Identity provider refused the client credentials, with access_denied |
The application is not authorized for the API named in Audience. | Authorize the application for that API in Auth0. |
Next steps
- Connect with an OAuth client: every field of the strategy and how the token is renewed.
- Add a connection: the full wizard.
- Authentication: the other strategies.
Last updated November 13, 2026