Approve a list of cards, each at the version on screen
const url = 'https://deck.example.com/api/v1/decisions/approve-all';const options = { method: 'POST', headers: {cookie: 'qd_auth=<qd_auth>', 'Content-Type': 'application/json'}, body: '{"cards":[{"card_id":41,"kind":"approve","version":1},{"card_id":42,"kind":"adjust","text":"Say we\'ll pay on Friday","version":3}],"timeline":[118,119]}'};
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/decisions/approve-all \ --header 'Content-Type: application/json' \ --cookie qd_auth=<qd_auth> \ --data '{ "cards": [ { "card_id": 41, "kind": "approve", "version": 1 }, { "card_id": 42, "kind": "adjust", "text": "Say we'\''ll pay on Friday", "version": 3 } ], "timeline": [ 118, 119 ] }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Approve All: every card on screen with its decision (unmentioned means yes, so the app sends approve for each card the person didn’t change), and the timeline entries on screen, which move to History.
Approve All: every card on screen with its decision (unmentioned means yes, so the app sends approve for each card the person didn’t change), and the timeline entries on screen, which move to History.
object
The person’s decision on one card version, as the web app sends it.
object
The actions as the person edited them, replacing the proposed ones. Absent means as proposed.
One proposed action. The type tag is also the name runner.eligible uses.
object
object
Close a support conversation (Intercom): its “archive”. account is the deck’s account for the support inbox
(intercom), conversation_id the conversation’s ID there.
object
Out of spam and back into the inbox: Gmail’s “Not spam”.
object
object
Pass the email on to a session, with the fixed forward header.
object
The user’s own comment, set on a sent row. Part of the approved payload, not an adjustment.
A session by its tab, on a node. session_id pins one conversation when the tab has been reused.
object
A Gmail draft in the thread, which the user edits and sends themselves. The normal reply path.
object
The address it’s sent from. Must be one the account can send as (checked when the card is posted, again before sending, and against the sent message’s From header afterwards).
Sends straight away. Never runner-eligible.
object
The address it’s sent from. Must be one the account can send as (checked when the card is posted, again before sending, and against the sent message’s From header afterwards).
A tracker story: create one, or comment on one. Boards are names from deck config; the runner’s and the skill’s own config map them to the tracker’s IDs.
object
object
object
What to do with a task on the person’s own task board.
object
object
object
Retired: leases moved to Fleetlayer (fleetlayer lease). Kept so cards stored before still read; the deck
refuses a new card or edit that carries one ([LEASES_RETIRED]), and the runner never carries one out.
object
A session by its tab, on a node. session_id pins one conversation when the tab has been reused.
object
object
Message, wrap up or close another session (the Work tab’s session actions).
object
What to do with another session, approved from the Work tab.
Pass the person’s words on (text).
Ask it to run its wrap-up: the end-of-session sweep for loose ends. text replaces the default request.
Close it.
Compact its context (/compact, typed in by Fleetlayer while it’s idle): for a long-running session that
always has more to do (Nathan, 28 Nov 2026: “compact, not close”).
A session by its tab, on a node. session_id pins one conversation when the tab has been reused.
object
The kinds of decision the person makes on a card.
An adjustment or comment: free text makes it the agent’s decision.
The version on screen. A card that has a newer version by the time the decision is released is skipped.
One default’s own Approve rather than Approve All: the same undo window, but no Inbox snapshot in History.
Example
{ "cards": [ { "card_id": 41, "kind": "approve", "version": 1 }, { "card_id": 42, "kind": "adjust", "text": "Say we'll pay on Friday", "version": 3 } ], "timeline": [ 118, 119 ]}Responses
Section titled “Responses”What Approve All did: nothing is released until release_at, and Undo with batch cancels it until then.
What Approve All did: nothing is released until release_at, and Undo with batch cancels it until then.
object
The cards with a decision in this batch.
A card Approve All left alone, and why.
object
Example generated
{ "batch": "example", "cards": [ 1 ], "release_at": "example", "skipped": [ { "card_id": 1, "reason": "example" } ]}default
Section titled “default”An error, with its message.
Every error the REST API returns, with an HTTP status.
object
Example generated
{ "error": "example"}