Skip to content

May this card be carried out without the owner?

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

POST
/api/v1/rules/match
curl --request POST \
--url https://deck.example.com/api/v1/rules/match \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "card": { "account": "example", "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, "reason": "example", "refs": [], "rule_ref": null, "section": "suggestion", "sender": null, "sender_auth": { "dkim_pass": false, "dmarc_pass": false }, "subject": "example", "summary": "example", "thread_key": "example", "to": null }, "grant_id": 1 }'

quietdeck rules match: may this card be carried out without the person?

Media typeapplication/json

quietdeck rules match: may this card be carried out without the person?

object
card
required

quietdeck card add: what an agent posts. The posting session comes from its token.

object
account
required

An account label from deck config.

string
>= 1 characters <= 100 characters
actions
Array
default: <= 20 items

One proposed action. The type tag is also the name runner.eligible uses.

One of:
object
account
required
string
>= 1 characters <= 100 characters
thread_id
required
string
>= 1 characters <= 200 characters
type
required
string
Allowed value: archive
key
additional properties
auto_grant

Ask for an automatic action under this grant: the deck runs rules match, and stores the card as automatic only when it allows.

integer | null format: int64
excerpt

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.

string | null
facts

Key facts shown under the summary, each {"label": "Amount", "value": "$1,200"}.

Array<object>
default: <= 30 items

One fact on a card: an amount, a date, a reference.

object
label
required

A few words: “Amount”, “Due”.

string
>= 1 characters <= 100 characters
value
required

“$1,200”, “1 December”.

string
>= 1 characters <= 1000 characters
key
additional properties
keep_in_inbox

Nothing touches the thread (a newsletter the person reads themselves).

boolean
last_message_at

When that message arrived. A thread left for later takes a new card only for a message newer than that.

string | null
last_message_ref

The newest message the card was prepared on, for freshness checks.

string | null
link

Open in Gmail (or the draft).

string | null
list_id

The List-Id header, for strict rules and the learning loop.

string | null
needs_agent

The agent wants to carry the card out itself, whatever the runner could do.

boolean
reason
required
string
>= 1 characters <= 5000 characters
refs
Array<string>
default: <= 50 items
rule_ref

The rules.md row the agent used.

string | null
section
required

Where a card sits in the Inbox.

One of:
string
Allowed values: suggestion later sent
sender
Any of:

The sender as the agent read it.

object
address
required
string
>= 3 characters <= 320 characters
name
string | null
key
additional properties
sender_auth
object
dkim_pass
boolean
dmarc_pass
boolean
spf_pass

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.

boolean | null
subject
required
string
<= 1000 characters
summary
required

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.

string
>= 1 characters <= 5000 characters
thread_key
required

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.

string
>= 1 characters <= 300 characters
to

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.

string | null
key
additional properties
grant_id
required
integer format: int64
Media typeapplication/json
object
allow
required
boolean
grant_id
required
integer format: int64
reason
required
string

Example generated

{
"allow": true,
"grant_id": 1,
"reason": "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"
}