# request_send

Send a mailing, or ask the author to approve it

`POST /v1/mailings/{mailing_id}/send-requests`

| | |
| --- | --- |
| 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:

```bash
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

| Status | Codes |
| --- | --- |
| 400 | [`validation_failed`](/developers/md/errors/validation_failed), [`idempotency_key_required`](/developers/md/errors/idempotency_key_required) |
| 401 | [`unauthenticated`](/developers/md/errors/unauthenticated), [`credential_revoked`](/developers/md/errors/credential_revoked), [`credential_expired`](/developers/md/errors/credential_expired) |
| 403 | [`insufficient_scope`](/developers/md/errors/insufficient_scope), [`plan_does_not_include`](/developers/md/errors/plan_does_not_include), [`workspace_paused`](/developers/md/errors/workspace_paused), [`api_suspended`](/developers/md/errors/api_suspended), [`consent_required`](/developers/md/errors/consent_required) |
| 404 | [`not_found`](/developers/md/errors/not_found) |
| 409 | [`conflict`](/developers/md/errors/conflict), [`idempotency_key_reused`](/developers/md/errors/idempotency_key_reused), [`request_in_progress`](/developers/md/errors/request_in_progress), [`preview_required`](/developers/md/errors/preview_required), [`preview_stale`](/developers/md/errors/preview_stale) |
| 413 | [`payload_too_large`](/developers/md/errors/payload_too_large) |
| 415 | [`unsupported_media_type`](/developers/md/errors/unsupported_media_type) |
| 429 | [`rate_limited`](/developers/md/errors/rate_limited), [`quota_exceeded`](/developers/md/errors/quota_exceeded) |
| 503 | [`service_unavailable`](/developers/md/errors/service_unavailable) |

Every error is an `application/problem+json` body with a `code`, a `fix` sentence and `next_actions`. See [reading a problem response](/developers/md/guides/agents#reading-a-problem-response).

## Typical next steps

- [`get_send_request`](/developers/md/operations/get_send_request)
- [`cancel_send_request`](/developers/md/operations/cancel_send_request)
- [`get_mailing`](/developers/md/operations/get_mailing)

## Related

- [OpenAPI document](https://api.seemly.com/v1/openapi.json)
- [Agent guide](/developers/md/guides/agents)
