Skip to content
Notice This app is in Beta Testing We are still testing Record Sender, so features may change.
Sign in

Mail merge — API reference

One template with `{{field}}` placeholders sent as an individual message to every row of a Contacts list or an Actionable Sheets sheet (docs/mail-merge.md).

← All groups
GET /api/v1/merge/jobs

The person's merge jobs (newest 100)

Scope: mail:send · paginated · merge.index

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

has_more boolean
jobs * [MergeJob]
fields

MergeJob

body string
category "marketing" | "transactional"
email_field string
failed integer
fields [string] The source's columns
finished_at string | null
id * string (uuid)
inserted_at string (date-time)
mailbox_id string (uuid)
name string | null
paused_reason string | null sending_limit, warmup_limit, marketing_throttled, marketing_paused, billing_read_only
sent integer
skipped integer
source_id string
source_name string | null
source_type "list" | "sheet"
source_view_id string | null
started_at string | null
status string draft | running | paused | finished | cancelled …
subject string
total integer
track_clicks boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/merge/jobs

Create a draft merge job

The source's rows become recipients (the address column, `email` by default, and every other column as a field); rows without a usable address are `invalid`. Needs the right to send from the mailbox; a list source needs `contacts:read`. Nothing is sent until the job is started.

Scope: mail:send · Idempotency-Key · merge.create

Request body application/json
body * string Plain text or rich HTML with `{{field}}` placeholders
category "marketing" | "transactional" Traffic class
email_field string The address column (default `email`)
mailbox_id * string (uuid) The mailbox to send from
name string
source_id * string A Contacts list id or an Actionable Sheets sheet id
source_type * "list" | "sheet"
subject * string May hold `{{field}}` placeholders
track_clicks boolean Click tracking (marketing, when the account allows it)
view_id string Sheet view (sheets only)
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

job * MergeJob
fields

MergeJob

body string
category "marketing" | "transactional"
email_field string
failed integer
fields [string] The source's columns
finished_at string | null
id * string (uuid)
inserted_at string (date-time)
mailbox_id string (uuid)
name string | null
paused_reason string | null sending_limit, warmup_limit, marketing_throttled, marketing_paused, billing_read_only
sent integer
skipped integer
source_id string
source_name string | null
source_type "list" | "sheet"
source_view_id string | null
started_at string | null
status string draft | running | paused | finished | cancelled …
subject string
total integer
track_clicks boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/merge/jobs/{id}

A merge job and its progress

Scope: mail:send · merge.show

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 403 · 404 · 429

200 Success

job * MergeJob
fields

MergeJob

body string
category "marketing" | "transactional"
email_field string
failed integer
fields [string] The source's columns
finished_at string | null
id * string (uuid)
inserted_at string (date-time)
mailbox_id string (uuid)
name string | null
paused_reason string | null sending_limit, warmup_limit, marketing_throttled, marketing_paused, billing_read_only
sent integer
skipped integer
source_id string
source_name string | null
source_type "list" | "sheet"
source_view_id string | null
started_at string | null
status string draft | running | paused | finished | cancelled …
subject string
total integer
track_clicks boolean

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/merge/jobs/{id}/cancel

Cancel a merge job

Draft, running or paused jobs; a finished one answers 422 `finished`.

Scope: mail:send · Idempotency-Key · merge.cancel

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

job * MergeJob
fields

MergeJob

body string
category "marketing" | "transactional"
email_field string
failed integer
fields [string] The source's columns
finished_at string | null
id * string (uuid)
inserted_at string (date-time)
mailbox_id string (uuid)
name string | null
paused_reason string | null sending_limit, warmup_limit, marketing_throttled, marketing_paused, billing_read_only
sent integer
skipped integer
source_id string
source_name string | null
source_type "list" | "sheet"
source_view_id string | null
started_at string | null
status string draft | running | paused | finished | cancelled …
subject string
total integer
track_clicks boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/merge/jobs/{id}/preview

One recipient's message as it will be sent

Scope: mail:send · merge.preview

ParameterInTypeDescription
id *pathstring (uuid)
positionqueryintegerRecipient position (default 1)
Responses 200 · 401 · 403 · 404 · 429

200 Success

preview * object
fields
body string
html boolean The body is HTML
missing [string] Placeholders this recipient has no value for
subject string
to string (email)

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

GET /api/v1/merge/jobs/{id}/recipients

A job's recipients and their results (first 1000)

Scope: mail:send · paginated · merge.recipients

ParameterInTypeDescription
id *pathstring (uuid)
statusquerystringOnly recipients with this status (pending, sent, failed, skipped, invalid …)
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 404 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
recipients * [MergeRecipient]
fields

MergeRecipient

address string | null
fields object Column → value
id * string (uuid)
message_id string | null
position integer
reason string | null
sent_at string | null
status string

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

GET /api/v1/merge/jobs/{id}/report

A job's results summed up

Scope: mail:send · merge.report

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 403 · 404 · 429

200 Success

report * object
fields
by_reason [object]
fields
count integer
reason string
status string
by_status object Status → count
category string
finished_at string | null
job_id string (uuid)
name string | null
paused_reason string | null
source object
fields
id string
name string | null
type string
started_at string | null
status string
total integer

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/merge/jobs/{id}/start

Verify every recipient, then send

Runs in the background (202). Blocked and suppressed recipients are left out with the reason; each message goes through the normal guarded send, so sending limits, warm-up and reputation pauses apply. A limit pauses the job (`paused_reason`). Draft or paused jobs only.

Scope: mail:send · Idempotency-Key · merge.start

ParameterInTypeDescription
id *pathstring (uuid)
Responses 202 · 401 · 402 · 403 · 404 · 409 · 422 · 429

202 Success

job * MergeJob
fields

MergeJob

body string
category "marketing" | "transactional"
email_field string
failed integer
fields [string] The source's columns
finished_at string | null
id * string (uuid)
inserted_at string (date-time)
mailbox_id string (uuid)
name string | null
paused_reason string | null sending_limit, warmup_limit, marketing_throttled, marketing_paused, billing_read_only
sent integer
skipped integer
source_id string
source_name string | null
source_type "list" | "sheet"
source_view_id string | null
started_at string | null
status string draft | running | paused | finished | cancelled …
subject string
total integer
track_clicks boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/merge/sources

Where merge rows can come from

The person's Contacts lists and, when Actionable Sheets is connected, its sheets (`connected: false` otherwise).

Scope: mail:send · merge.sources

Responses 200 · 401 · 403 · 429

200 Success

actionable_sheets * object
fields
connected * boolean
error string Why the sheets could not be read
sheets [object]
fields
base string The base the sheet is in
id string
name string
lists * [object]
fields
id string (uuid)
kind string static | dynamic
name string

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)