Herald
OpenapiDevice

Device_confirm

POST
/api/device/{realmId}/confirm

Path Parameters

realmId*string

Realm ID

Request Body

application/json
  1. body
approved*boolean
user_code*string

Response Body

Device code confirmed

application/json
  1. response
agreements?array<>|null
consent_required?|

Present when the login consent gate blocked an approval: the device was NOT authorized. The browser session must record consent (POST /api/user/consent) for the listed agreements and re-confirm; the device state stays "verified" so the retry completes without restarting the device flow.

status*string
Example Request
curl -X POST 'https://example.com/api/device/string/confirm' \
  -H 'Content-Type: application/json' \
  -d '{
  "approved": true,
  "user_code": "string"
}'
Example Response
{
  "agreements": [
    {
      "agreement_type": "string",
      "effective_at": "2019-08-24T14:15:22Z",
      "external_url": "string",
      "mode": "full_text",
      "summary": "string",
      "title": "string",
      "version_id": "9e94c502-ca41-4342-a7f7-af96b444512c",
      "version_no": 0
    }
  ],
  "consent_required": true,
  "status": "string"
}