The runner takes the decisions released from the undo window
const url = 'https://deck.example.com/api/v1/decisions/take';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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/take \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”A released decision with the card it approves, as the runner and quietdeck decisions take get it. actions is
exactly what was approved, with the person’s edits applied.
object
An action as stored on a card version.
object
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
What was sent and what came back.
A card as the deck serves it.
object
An account label from deck config.
The current version’s actions, in order.
An action as stored on a card version.
object
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
What was sent and what came back.
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
Ask for an automatic action under this grant: the deck runs rules match, and stores the card as automatic
only when it allows.
The email’s own words for the Inbox’s details pane, as plain text: the newest message verbatim, or a thread as
one line per message (Mary: Did we update this for Compass?). Leave out quoted replies, signatures and
footers. The pane shows the first lines. On an account whose rules keep customers’ data out of other
systems, leave out end users’ personal data and document contents, as stories and forwards do.
Key facts shown under the summary, each {"label": "Amount", "value": "$1,200"}.
One fact on a card: an amount, a date, a reference.
object
A few words: “Amount”, “Due”.
“$1,200”, “1 December”.
Nothing touches the thread (a newsletter the person reads themselves).
When that message arrived. A thread left for later takes a new card only for a message newer than that.
The newest message the card was prepared on, for freshness checks.
Open in Gmail (or the draft).
The List-Id header, for strict rules and the learning loop.
The agent wants to carry the card out itself, whatever the runner could do.
The person’s decision on this version while it waits out the undo window: the card still reads open until
the batch is released (or undone, when this goes away).
A decision in its undo window (Card.pending).
object
The Approve All batch: POST /api/v1/decisions/undo with it cancels the decision.
The kinds of decision the person makes on a card.
When the batch is released to the runner.
A session by its tab, on a node. session_id pins one conversation when the tab has been reused.
object
The rules.md row the agent used.
Where a card sits in the Inbox.
What the person needs to look at: a reply in their name, money, a decision, something only they can do.
Routine mail Approve All just handles, one line each: an archive, with at most a label or a one-line unsubscribe reply (“Unsubscribe, thanks.”) before it. Sales pitches and FYI mail go here.
object
The sending server is one the domain’s SPF record allows. Absent on cards from before 28 Nov 2026, and left out of the deck’s answers when absent, so a CLI from before then (which refuses unknown fields here) still reads them.
What the email is, in a few words: the Inbox shows it on one line beside the proposed action. Lead with the kind of email and leave out who sent it and what their company does unless the person needs that to decide: “Sales pitch: card dunning”, “Water bill, direct debit”, “Customer asks how webhook retries work”. Facts and drafts carry the rest.
The thread’s ID as the mail service gives it: Gmail’s thread ID, exactly (19a4f0c2b7e1d3a5), with no account
or service prefix (the account is its own field). One card per account and thread; a forward without a
source names the thread by it.
Which of the person’s addresses the newest message went to (an alias such as hello@example.com when that’s
where it arrived). The Inbox shows it with the sender; without it, the account’s address stands in.
The person’s changes to this card’s default in the Inbox, oldest first, in his own words: carry them out along with the actions.
A decision on one card version.
object
The person’s edits: the actions as approved, when they changed any.
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.
The person’s adjustment or comment. Free text makes the decision the agent’s.
Why the runner handed it over, when it did.
Example
[ { "actions": [ { "action": { "type": "archive" }, "run_by": "runner", "status": "pending" } ], "card": { "action_records": [ { "action": { "type": "archive" }, "run_by": "runner", "status": "pending" } ], "actions": [], "auto_grant": null, "excerpt": null, "facts": [], "keep_in_inbox": false, "last_message_at": null, "last_message_ref": null, "link": null, "list_id": null, "needs_agent": false, "pending": null, "refs": [], "rule_ref": null, "section": "suggestion", "sender": null, "sender_auth": { "dkim_pass": false, "dmarc_pass": false }, "state": "open", "to": null }, "changes": [], "decision": { "claimed_by": "runner", "fields": [ { "type": "archive" } ], "kind": "approve" } }]default
Section titled “default”An error, with its message.
Every error the REST API returns, with an HTTP status.
object
Example generated
{ "error": "example"}