Skip to main content

Thread: Drafts and Screens

Approve or decline the emails, process starts and document shares your thread prepared, exactly once, and record your decisions on the records of a screen.

Your thread never sends, starts or shares anything on its own. It prepares a draft (an email, a start of one of your processes, or sharing one of your documents with the company) and waits for your decision. Through the API you see the same drafts as in the web app and decide them the same way: as you, on the exact version you saw, once.

GET/v1/thread/drafts
POST/v1/thread/drafts/:approvalId/decision

Body

approved*booleantrue approves, false declines.
draft_id*uuidFrom the draft.
draft_version*integerThe version you saw.
payload_hash*stringThe fingerprint of what you saw.

Response

{ "outcome": "done", "line": "Sent to anna.berg@example.com.", "replayed": false }

Screens

A screen is a task over a set of records that your thread opened for you, such as contracts to renew or invoices to check. Each view reads the records as you can read them now; the thread may suggest, only you decide.

GET/v1/thread/sheets
GET/v1/thread/sheets/:id
POST/v1/thread/sheets/:id/decisions
POST/v1/thread/sheets/:id/close

Frequently asked questions

What happens if my approval request times out and I retry?+
The retry answers with the first decision's outcome and replayed: true. The email is sent, the process started or the document shared at most once.
Can I approve an older version of a draft?+
No. A decision names the version and fingerprint you saw; when the draft changed since, the answer is stale with the current card, and nothing is carried out.