Skip to content

Where the runner's mail watch is, for the agent it wakes

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

GET
/api/v1/round
curl --request GET \
--url https://deck.example.com/api/v1/round \
--header 'Authorization: Bearer <token>'

quietdeck round status: where the runner’s mail watch is, for the agent it wakes.

Media typeapplication/json

quietdeck round status: where the runner’s mail watch is, for the agent it wakes.

object
accounts
required
Array<object>

One mailbox the runner watches.

object
history_id

Gmail’s history ID the watch has read up to.

string | null
id
required
string
label
required
string
new_since_wakeup

Messages since the last wake-up, waiting for the next one. None: some, but how many isn’t known.

integer | null format: uint64
watching_since

When the watch started on it. Mail from before then never woke anyone: it’s the agent’s own to sweep, or to leave. None when the watch started before this was recorded.

string | null
checked_at

The last time the watch read the mailboxes’ history.

string | null
runner
required

No runner on the caller’s machine runs for this session, or it isn’t connected: nothing else is set.

boolean
waiting
required

A wake-up went and round done hasn’t come yet, so no other goes.

boolean
woke_at
string | null

Example generated

{
"accounts": [
{
"history_id": "example",
"id": "example",
"label": "example",
"new_since_wakeup": 1,
"watching_since": "example"
}
],
"checked_at": "example",
"runner": true,
"waiting": true,
"woke_at": "example"
}

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"
}