Register a new device for the current host.
cURL
curl --request POST \ --url https://api.zo.computer/devices/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "capabilities": [] } '
{ "id": "<string>", "name": "<string>", "capabilities": [ "<string>" ], "status": "<string>", "last_seen_at": "<string>", "created_at": "<string>" }
Zo API key (zo_sk_...)
Display name for the device
Enabled capabilities
Successful Response
Device ID
Display name
'available' or 'offline'
ISO 8601 timestamp of last heartbeat
ISO 8601 creation timestamp