ZITADEL Docs
APIsCore ResourcesV2OIDC

GetDeviceAuthorizationRequest

Get Device Authorization Request

Get the device authorization based on the provided "user code". This will return the device authorization request, which contains the device authorization id that is required to authorize the request once the user signed in or to deny it.

Required permissions:

  • session.read
GET
/v2/oidc/device_authorization/{user_code}

Path Parameters

user_code*string

The user_code returned by the device authorization request and provided to the user by the device.

Response Body

application/json

application/json

curl -X GET "https://loading/v2/oidc/device_authorization/string"
{
  "deviceAuthorizationRequest": {
    "id": "string",
    "clientId": "string",
    "scope": [
      "string"
    ],
    "appName": "string",
    "projectName": "string"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?