Skip to content
GurtOS

List paired phones

GET
/devices
curl --request GET \
--url http://127.0.0.1:7700/api/devices \
--header 'Authorization: Bearer <token>'

Owner only. Phones that are paired and not revoked. Tokens are never listed. GET /pair/devices is the same route under its older name.

The devices.

Media typeapplication/json
Array<object>
object
id
required
string
name
required
string
pairedAt
required
string format: date-time
owner

Paired as the owner’s device.

boolean
kind

What the device says it is. Absent for the web app. Not proof of anything.

string
Allowed values: iphone mac watch setup
person

Business: the person this device signs in as.

string
parent

A Watch’s iPhone.

string
identity

The device’s SpacetimeDB identity, if it gave one.

string
lastSeen
string format: date-time
push

Whether it turned notifications on.

boolean

Example

[
{
"id": "d4e5f6a7b8c",
"kind": "iphone"
}
]

The owner’s route, called by someone who is not the box’s own screen or a device paired as the owner.

Media typeapplication/json
object
error
required

What went wrong

string

Example

{
"error": "only this computer's own screen or the owner's paired device can do this"
}