The Inbox page's heartbeat while the owner reads
POST
/api/v1/presence
const url = 'https://deck.example.com/api/v1/presence';const options = { method: 'POST', headers: {cookie: 'qd_auth=<qd_auth>', 'Content-Type': 'application/json'}, body: '{"active":true,"device":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”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
Example generated
{ "active": true, "device": "example"}Responses
Section titled “Responses”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}default
Section titled “default”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"}