Send a mailing, or ask the author to approve it
On this page
POST
/v1/mailings/{mailing_id}/send-requestsrequest_send| Risk | send |
| Authentication | API key or OAuth access token |
| Scopes | mailings:write |
| Idempotency | required: send an Idempotency-Key header |
| Dry run | yes: add dry_run=true to the query |
| Success status | 201 |
| Response type | application/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#
| Field | Type | Description |
|---|---|---|
mailing_id | string |
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)#
| Field | Type | Required | Description |
|---|---|---|---|
preview_token | string, max 1024 characters | yes | From preview_send for this exact draft revision and audience. Valid for 15 minutes. |
Response#
The response has one of 2 shapes.
Result#
| Field | Type | Required | Description |
|---|---|---|---|
outcome | one of "awaiting_approval", "executed" | yes | awaiting_approval: the author must approve in the dashboard. executed: the send was planned (see mailing.status). |
send_request | object | yes | |
send_request.id | string | yes | srq_... |
send_request.mailing_id | string | yes | |
send_request.state | one of "awaiting_approval", "approved", "executed", "refused", "declined", "canceled", "superseded", "expired" | yes | |
send_request.mode | one of "now", "scheduled" | yes | |
send_request.scheduled_at | string or null | yes | |
send_request.recipient_count | integer, min -9007199254740991, max 9007199254740991 | yes | |
send_request.mailing_revision | integer, min -9007199254740991, max 9007199254740991 | yes | The mailing revision this request is bound to. An edit supersedes the request. |
send_request.requested_by | string | yes | The key or app name the author sees. |
send_request.reason_codes | array of string | yes | |
send_request.created_at | string | yes | RFC 3339 UTC timestamp. |
send_request.expires_at | string | yes | An undecided request expires after 7 days. |
send_request.decided_at | string or null | yes | |
send_request.executed_at | string or null | yes | |
send_request.preview | object or null | yes | |
mailing | object | yes | |
mailing.id | string | yes | |
mailing.status | string | yes | scheduled, sending or requires_approval (a deliverability review) after an executed request; draft while awaiting approval. |
mailing.hold_reasons | array of object or null | yes | Why the owner must review the mailing, when status is requires_approval. |
replayed | boolean | yes | True when an earlier identical request had already executed and nothing was sent again. |
dashboard_url | string | yes | Where the author approves or declines the request. |
When dry_run=true#
| Field | Type | Required | Description |
|---|---|---|---|
dry_run | exactly true | yes | |
would | object | yes | What 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"
}'const response = await fetch("https://api.seemly.com/v1/mailings/cmp_4d8x2p0q7r4d8x2p0q7r4d8x/send-requests", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.SEEMLY_API_KEY}`,
"Idempotency-Key": crypto.randomUUID(),
"Content-Type": "application/json",
},
body: JSON.stringify({
"preview_token": "pvt_example.token"
}),
});
const result = await response.json();
console.log(response.status, result);import os
import uuid
import requests
response = requests.post(
"https://api.seemly.com/v1/mailings/cmp_4d8x2p0q7r4d8x2p0q7r4d8x/send-requests",
headers={
"Authorization": f"Bearer {os.environ['SEEMLY_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"preview_token": "pvt_example.token",
},
)
print(response.status_code, response.json())Response: 201:
{
"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.