Skip to content

The Inbox page's heartbeat while the owner reads

The OpenAPI spec (JSON)Licence, versions and sign-in

POST
/api/v1/presence
curl --request POST \
--url https://deck.example.com/api/v1/presence \
--header 'Content-Type: application/json' \
--cookie qd_auth=<qd_auth> \
--data '{ "active": true, "device": "example" }'

POST /api/presence: the Inbox page’s heartbeat. active: false when the tab is hidden or closed.

Media typeapplication/json

POST /api/presence: the Inbox page’s heartbeat. active: false when the tab is hidden or closed.

object
active
required
boolean
device
required

One ID per browser tab, so one tab going idle doesn’t end another’s activity.

string
>= 1 characters <= 64 characters

Example generated

{
"active": true,
"device": "example"
}

What the deck knows about the person reading, and what the runner holds meanwhile.

Media typeapplication/json

What the deck knows about the person reading, and what the runner holds meanwhile.

object
active
required
boolean
active_until
string | null
held

New items the runner holds until the person is idle, e.g. “2 Work, 1 in Ops alerts (Matrix)”. None when nothing waits.

string | null
held_count
required
integer format: uint64

Example generated

{
"active": true,
"active_until": "example",
"held": "example",
"held_count": 1
}

An error, with its message.

Media typeapplication/json

Every error the REST API returns, with an HTTP status.

object
error
required
string

Example generated

{
"error": "example"
}