Skip to content

The triage agent writes a new version of the report

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

POST
/api/v1/report
curl --request POST \
--url https://deck.example.com/api/v1/report \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "base": null, "change": null, "markdown": "example", "new": false }'
doc
string

quietdeck report set: the whole report, as the agent wants it now.

Media typeapplication/json

quietdeck report set: the whole report, as the agent wants it now.

object
base

The version this edit starts from (quietdeck report show prints it), so an edit never overwrites one it didn’t see. Leave it out only for the first report.

integer | null format: int64
change

What this edit changes, in a line, for the toast the person sees (“New: CI failure on web (c_67)”). Left out, the deck works one out from the defaults that changed.

string | null
markdown
required
string
>= 1 characters <= 200000 characters
new

Start a new report: the current one is finished (everything on it approved or handled).

boolean
key
additional properties
Media typeapplication/json
object
answers
required

The person’s answers and changes on this report, oldest first.

Array<object>
object
about
required

The question or the default’s text, so the agent reads the answer without the report.

string
answered_at
required
string
cards

For an answer to an <Ask cards="…">: the cards it’s about. The Inbox shows it in the thread of the default that names them.

string | null
control
required

The <Ask>’s id, or for a <Default> its id or cards value.

string
id
required
integer format: int64
kind
required
One of:

An option of an <Ask>, or its Other text.

string
Allowed value: choice
picked_up
required

The agent has it: delivered as a message, or taken with quietdeck report answers.

boolean
report_version
required
integer format: int64
value
required
string
cards_not_in_report
required

Open cards (waiting on the person, handed off or failed) that no <Default> names: the Inbox points at the Cards screen for them, and report set lists them for the agent.

Array<integer>
changes

The latest changes, newest last (at most 20): the Inbox toasts new ones.

Array<object>
default:

One change to the report, for the Inbox’s toast and Approve All’s settle window.

object
at
required
string
cards
required

The cards whose defaults this change added or altered.

Array<integer>
id
required
integer format: int64
reply

The agent’s answer to the person’s chat (quietdeck chat reply), not a change: summary is its text.

boolean
summary
required

What changed, in a line: the agent’s --change, or what the deck worked out.

string
version
required
integer format: int64
created_at
required
string
document_id

The document it’s on (GET /documents); 1 is the Inbox.

integer format: int64
default: 1
finished

The agent said nothing on it waits for the person any more (quietdeck report done): the Inbox shows “All done.” until the agent edits it or starts the next one.

boolean
id
required
integer format: int64
item_times

When each top-level list item’s text last changed, in the order the items are written (items): the Work tab shows it as “(1 hour ago)”.

Array<string> | null
markdown
required
string
posted_by
required

A session by its tab, on a node. session_id pins one conversation when the tab has been reused.

object
node
required
string
>= 1 characters <= 100 characters
session_id
string | null
tab
required
string
>= 1 characters <= 200 characters
updated_at
required
string
version
required

Goes up with every edit; an edit names the version it was made from.

integer format: int64

Example

{
"answers": [
{
"kind": "choice"
}
],
"changes": [],
"document_id": 1,
"finished": false
}

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