Documentation Index
Fetch the complete documentation index at: https://auth0-feat-authentication-api-migration.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
POST /oauth/token
This is the flow that mobile apps use to access an API. Use this endpoint to exchange an Authorization Code for a token.
Remarks
- In order to improve compatibility for applications, Auth0 will now return profile information in a structured claim format as defined by the OIDC specification. This means that in order to add custom claims to ID tokens or access tokens, they must conform to a namespaced format to avoid possible collisions with standard OIDC claims.
- Include
offline_accessto thescoperequest parameter to get a refresh token from POST /oauth/token. Make sure that the Allow Offline Access field is enabled in the API Settings. - The
redirect_urivalue must be specified as a valid callback URL under your Application’s Settings. - Silent authentication lets you perform an authentication flow where Auth0 will only reply with redirects, and never with a login page. When an Access Token has expired, silent authentication can be used to retrieve a new one without user interaction, assuming the user’s Single Sign-on (SSO) session has not expired.
Learn More
- Authorization Code Flow with Proof Key for Code Exchange (PKCE)
- Call API Using the Authorization Code Flow with PKCE
- Silent Authentication
Parameters
A DPoP proof for the request. This is optional and only required if your application uses Demonstrating Proof-of-Possession.
Request Body
Denotes the flow you are using. For Authorization Code (PKCE) use
authorization_code.Allowed values: authorization_codeYour application’s Client ID.
The Authorization Code received from the initial
/authorize call.Cryptographically random key that was used to generate the
code_challenge passed to /authorize.This is required only if it was set at the
GET /authorize endpoint.Response
| Status | Description |
|---|---|
| 200 | Successful token exchange. |
| default | Unexpected error |