mutation · Module: IoT · Requires iot:write
Arguments
Returns
TokenDeviceResult!
Errors
Errors are returned inerrors[], with the REST error object in extensions (type, code, param, request_id), using the codes in Conventions §9.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
mutation TokenDevice($id: ID!) {
tokenDevice(id: $id) {
token
expires_at
}
}
{
"id": "obj_1a2B3c"
}
{
"data": {
"tokenDevice": {
"token": "example",
"expires_at": 1791302400
}
}
}
Issue a device token
mutation TokenDevice($id: ID!) {
tokenDevice(id: $id) {
token
expires_at
}
}
{
"id": "obj_1a2B3c"
}
{
"data": {
"tokenDevice": {
"token": "example",
"expires_at": 1791302400
}
}
}
mutation · Module: IoT · Requires iot:write
| Argument | Type | Description |
|---|---|---|
id | ID! | The object’s ID. |
TokenDeviceResult!
| Field | Type |
|---|---|
token | String |
expires_at | Int |
errors[], with the REST error object in extensions (type, code, param, request_id), using the codes in Conventions §9.
mutation TokenDevice($id: ID!) {
tokenDevice(id: $id) {
token
expires_at
}
}
{
"id": "obj_1a2B3c"
}
{
"data": {
"tokenDevice": {
"token": "example",
"expires_at": 1791302400
}
}
}