Skip to main content
PUT
Mark one email the agent wrote for a contact Looks good

Authorizations

X-API-Key
string
header
required

Path Parameters

sequence_id
string<uuid>
required
step_id
string<uuid>
required
record_id
string<uuid>
required

Query Parameters

message_id
string<uuid> | null

The email on screen, as the step's preview answered it in message_id. Given, the mark is refused when the words saved for the contact are no longer those; left out, it marks whatever is saved now.

rev
integer | null

The contact's feedback session rev as read. When sent, a session a note or an edit changed since is refused (409) and nothing is marked; left out, it saves the session as it stands.

Required range: x >= 0

Response

Successful Response

The Builder's Looks good on one email, and the learning its Needs work proposed, saved.

body
string
required
in_thread
boolean
required
missing_columns
string[]
required
saved_learnings
integer
required

How many changes to the agent's learnings this Looks good saved: those a Needs work on the contact proposed and wrote the thread again with. 0 when none waited, or when the list a change joins is full, so it stays proposed while the email is still marked.

saved_learnings_for_all_sequences
integer
required

Of saved_learnings, how many apply to every sequence, not only this one.

subject
string
required
agent_written
boolean
default:false

The agent wrote this for the contact. A preview is one draft; the real send is written fresh, unless approved.

approved
boolean
default:false

The words were marked Looks good, with the contact's thread in the sequence's Preview or as this one email from the Builder, and still stand, so they are what sends. They stop standing, and the agent writes the step fresh, once the agent's writing or the contact's row changes.

closing
EmailClosingReadSchema · object | null

What the send adds below these words, the sender's signature and then the opt-out footer, one blank line apart, so the email can be shown whole as the contact will get it. Set by the preview routes on an email step.

is_sample
boolean
default:false
message_id
string<uuid> | null

The agent's message these words are, on an agent-written step: the sample on screen, or the one marked Looks good. Marking it Looks good (PUT /sequences/{sequence_id}/steps/{step_id}/rows/{record_id}/feedback/) takes it back as message_id, so a mark lands only on the words that were read.

pinned
boolean
default:false

The words are pinned for this contact by a person (their own edit) or by the approval queue, and send exactly as they are. A thread marked Looks good is approved instead.

preview_units
integer | null

With written false: how much of today's preview allowance writing it would use, one for each message the agent writes in the call (the contact's whole sequence for a contact not written to yet). Writing is refused when GET /outbound-agents/preview-allowance/ has fewer remaining. Null otherwise, or when it cannot be worked out.

sample_created_at
string<date-time> | null
sample_version
integer | null
sender
EmailSenderReadSchema · object | null

Who the email goes out as and the mailbox it leaves from: the contact's own mailbox in the sequence when they were emailed, else the mailbox about to send, else the first sender's mailboxes. Null on a LinkedIn step and with no sender.

sent
SentStepEmailReadSchema · object | null

The email this step already got out to this contact, as it went, when one did: what they received, whoever wrote it, rather than the words above. Set by the preview and samples routes; null when the step has not reached them.

spam_findings
SpamFindingReadSchema · object[]

The spam check and the placeholder scan, run on the agent's words for this contact. Always empty for a written step, whose text the composer's own check covers. Advice, never a refusal.

waiting_for_approval
boolean
default:false

This contact's message at this step waits for a person's approval on its Tasks card, where its words are changed, approved or rejected. Set by the preview and samples routes; false once the card is decided, or when the step never asked.

writing_run_id
string<uuid> | null

The agent is writing this contact's emails right now, this step among them: the write's id, which GET /sequences/{sequence_id}/sample-runs/{run_id}/ follows until it ends. Whoever pressed Write the email, in whatever tab. Set by the step's preview; null when nothing is being written for this step.

written
boolean
default:true

False only when nothing is written for this contact at this step yet, which the step's preview shows rather than writes: subject and body are empty. POST /sequences/{sequence_id}/steps/{step_id}/rows/{record_id}/samples/ has the agent write it.