Skip to content

Send a mailing, or ask the author to approve it

On this page
POST/v1/mailings/{mailing_id}/send-requestsrequest_send
Risksend
AuthenticationAPI key or OAuth access token
Scopesmailings:write
Idempotencyrequired: send an Idempotency-Key header
Dry runyes: add dry_run=true to the query
Success status201
Response typeapplication/json

What it does#

  • Use when: You previewed a draft with preview_send. With the mailings:send scope it sends at once; otherwise the author approves it in the dashboard.
  • Do not use when: the draft changed since the preview (call preview_send again) or it is already scheduled (call cancel_scheduled_mailing).
  • Side effects: Queues email when the key may send; Otherwise stores a request for the author; Uses the key daily send limit.
  • Reversible: No.
  • Required scope: mailings:write.
  • Idempotency: required (Idempotency-Key header).
  • Typical next step: call get_send_request to follow an awaiting request.

Scopes#

  • mailings:write: Create, edit and delete draft mailings, and ask for a send to be approved.

Side effects#

  • Queues email when the key may send
  • Otherwise stores a request for the author
  • Uses the key daily send limit

Request#

Path parameters#

FieldTypeDescription
mailing_idstring

Query parameters#

None.

Every mutation also accepts dry_run=true: it runs every check and returns {"dry_run": true, "would": {...}} without writing anything.

Body (application/json)#

FieldTypeRequiredDescription
preview_tokenstring, max 1024 charactersyesFrom preview_send for this exact draft revision and audience. Valid for 15 minutes.

Response#

The response has one of 2 shapes.

Result#

FieldTypeRequiredDescription
outcomeone of "awaiting_approval", "executed"yesawaiting_approval: the author must approve in the dashboard. executed: the send was planned (see mailing.status).
send_requestobjectyes
send_request.idstringyessrq_...
send_request.mailing_idstringyes
send_request.stateone of "awaiting_approval", "approved", "executed", "refused", "declined", "canceled", "superseded", "expired"yes
send_request.modeone of "now", "scheduled"yes
send_request.scheduled_atstring or nullyes
send_request.recipient_countinteger, min -9007199254740991, max 9007199254740991yes
send_request.mailing_revisioninteger, min -9007199254740991, max 9007199254740991yesThe mailing revision this request is bound to. An edit supersedes the request.
send_request.requested_bystringyesThe key or app name the author sees.
send_request.reason_codesarray of stringyes
send_request.created_atstringyesRFC 3339 UTC timestamp.
send_request.expires_atstringyesAn undecided request expires after 7 days.
send_request.decided_atstring or nullyes
send_request.executed_atstring or nullyes
send_request.previewobject or nullyes
mailingobjectyes
mailing.idstringyes
mailing.statusstringyesscheduled, sending or requires_approval (a deliverability review) after an executed request; draft while awaiting approval.
mailing.hold_reasonsarray of object or nullyesWhy the owner must review the mailing, when status is requires_approval.
replayedbooleanyesTrue when an earlier identical request had already executed and nothing was sent again.
dashboard_urlstringyesWhere the author approves or declines the request.

When dry_run=true#

FieldTypeRequiredDescription
dry_runexactly trueyes
wouldobjectyesWhat the real call would do.

Examples#

awaiting the author's approval#

Request:

curl -X POST 'https://api.seemly.com/v1/mailings/cmp_4d8x2p0q7r4d8x2p0q7r4d8x/send-requests' \
  -H "Authorization: Bearer $SEEMLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "preview_token": "pvt_example.token"
}'

Response: 201:

JSON
{
  "outcome": "awaiting_approval",
  "send_request": {
    "id": "srq_7h2m9k4t8w3c5n6p1q0r2s4v",
    "mailing_id": "cmp_4d8x2p0q7r4d8x2p0q7r4d8x",
    "state": "awaiting_approval",
    "mode": "now",
    "scheduled_at": null,
    "recipient_count": 212,
    "mailing_revision": 3,
    "requested_by": "Launch agent",
    "reason_codes": [],
    "created_at": "2026-12-02T09:31:00Z",
    "expires_at": "2026-12-09T09:31:00Z",
    "decided_at": null,
    "executed_at": null,
    "preview": {
      "decision": "allow",
      "reasons": [],
      "tranche_sizes": [],
      "recipient_count": 212
    }
  },
  "mailing": {
    "id": "cmp_4d8x2p0q7r4d8x2p0q7r4d8x",
    "status": "draft",
    "hold_reasons": null
  },
  "replayed": false,
  "dashboard_url": "https://app.seemly.com/dashboard/campaigns/cmp_4d8x2p0q7r4d8x2p0q7r4d8x"
}

Errors#

Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.

Typical next steps#

View this page as MarkdownReport a problem with this page

Type to search. Try a method and path, an operation name or an error code.