Herald
OpenapiDevice

Device_token

POST
/api/device/{realmId}/token

Path Parameters

realmId*string

Realm ID

Request Body

application/x-www-form-urlencoded
  1. body
device_code*string
grant_type*string

Response Body

Access token issued

application/json
  1. response
access_token*string
expires_in*integer
Formatint64
Range0 <= value
refresh_token*string

Refresh token of the issued browser-token family (present so CLI consumers can rotate; the access token alone cannot be refreshed).

token_type*string
Example Request
curl -X POST 'https://example.com/api/device/string/token' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'device_code=string&grant_type=string'
Example Response
{
  "access_token": "string",
  "expires_in": 0,
  "refresh_token": "string",
  "token_type": "string"
}