Endpoint
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
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
Body 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.