Zitadel Preview Docs

Authorize a device

GET
/auth/device-authorization

Query Parameters

client_id*string

The client ID of the application that is requesting authorization. This is a required parameter and must match the client ID of a registered application.

scope?string

The scope parameter is used to specify the permissions that the client is requesting. This is a space delimited list of scopes. For example, you could use this to request access to the user's profile information or to request permission to access certain APIs on behalf of the user.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/auth/device-authorization?client_id=string"
{  "device_code": "string",  "expires_in": 0,  "interval": 0,  "user_code": "string",  "verification_uri": "string",  "verification_uri_complete": "string"}
{  "code": "string",  "message": "string",  "details": {}}
{  "code": "string",  "message": "string",  "details": {}}