Skip to Content
Devices

Approve a Device

When Device approval is on, a new Device reaches nothing until an Admin approves it.

POST
/accounts/{account_id}/devices/{device_id}/approve

When Device approval is on, a new Device reaches nothing until an Admin approves it.

Authorization

headerAuthorizationBearer <token>

qlt_… Access token (kind api)

Path Parameters

account_id*string
device_id*string

Response Body

OK

application/json
  1. response
id*string
name*string

Device name, unique in the Network

fqdn?string
kind*string
Value in"personal""server"
owner_member_id?string|null
owner_external_id?string

only when the owner is a Partner person: the Partner's id of the person

os*string
app_version?string|null
address*string
online*boolean
last_seen_at?|
Formatdate-time
approved*boolean
key_expires_at?|
Formatdate-time
groups?array<string>
connections?array<>

latest Engine report, per peer

traffic?|

what this Device's engine counted over the last days days (UTC), from its traffic reports (docs/contract/engine.md); null for an engine that sends no counters. Filled on GET of the list and of one Device

subnet_routes?array<string>

approved

advertised_routes?array<string>

what the Device offers; only these can be approved

exit_node?boolean
created_at?string
Formatdate-time
Example Request
curl -X POST 'https://tiltas.openpanel.sh/api/v1/accounts/string/devices/string/approve'
Example Response200
{  "id": "string",  "name": "string",  "fqdn": "string",  "kind": "personal",  "owner_member_id": "string",  "owner_external_id": "string",  "os": "string",  "app_version": "string",  "address": "string",  "online": true,  "last_seen_at": "2019-08-24T14:15:22Z",  "approved": true,  "key_expires_at": "2019-08-24T14:15:22Z",  "groups": [    "string"  ],  "connections": [    {      "peer_address": "string",      "peer_device_id": "string",      "mode": "direct",      "relay": "string",      "latency_ms": 0,      "tx_bytes": 0,      "rx_bytes": 0    }  ],  "traffic": {    "direct_bytes": 0,    "relayed_bytes": 0,    "direct_share": 0,    "days": 0  },  "subnet_routes": [    "string"  ],  "advertised_routes": [    "string"  ],  "exit_node": true,  "created_at": "2019-08-24T14:15:22Z"}