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/device/code
This flow is designed for input-constrained devices to access an API. Use this endpoint to obtain a device code that allows the user to authorize the device.
Request Example
Response Values
| Value | Description |
|---|---|
device_code | The unique code for the device. |
user_code | The code the user must input to authorize the device. |
verification_uri | The URL the user should visit to authorize the device. |
verification_uri_complete | The complete URL including the user code for easy access. |
expires_in | The lifetime of the device and user codes in seconds. |
interval | The polling interval in seconds to request a token. |
Remarks
- Include
offline_accessin thescopeto obtain a Refresh Token. - Use the returned device code to request an access token from the token endpoint.
Token Request Example
Responses
200
A successful request returns an access token.Error Responses
Learn More
- Device Authorization Flow
- Call API using the Device Authorization Flow
- Setting up a Device Code Grant using the Management Dashboard
Parameters
Your application’s ID.
The scopes for which you want to request authorization.
The unique identifier of the target API you want to access.
The identifier of the target API (resource server) you want to access. Must match an API Identifier registered in your Auth0 tenant. Used as an alternative to
audience when the tenant’s Resource Parameter Compatibility Profile is set to compatibility.Response
| Status | Description |
|---|---|
| 200 | Returns device and user codes. |