# cancel_send_request

Withdraw a send request that is awaiting approval

`POST /v1/send-requests/{send_request_id}/cancel`

| | |
| --- | --- |
| Risk | write |
| Authentication | API key or OAuth access token |
| Scopes | `mailings:write` |
| Idempotency | natural: repeating the call gives the same result |
| Dry run | not applicable |
| Success status | 200 |
| Response type | application/json |

## What it does

- Use when: You asked to send a mailing, the author has not decided yet, and you want to withdraw the request, for example to edit the draft.
- Do not use when: the mailing is already sending or scheduled (call cancel_scheduled_mailing for a scheduled one).
- Side effects: Marks the request canceled; nothing is sent.
- Reversible: Yes, call request_send again with a new preview_token.
- Required scope: mailings:write.
- Idempotency: safe to repeat (same result).
- Typical next step: call update_mailing_draft, then preview_send.

## Scopes

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

## Side effects

- Marks the request canceled; nothing is sent

## Request

### Path parameters

| Field | Type | Description |
| --- | --- | --- |
| `send_request_id` | string |  |

### Query parameters

None.

## Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | srq_... |
| `mailing_id` | string | yes |  |
| `state` | one of "awaiting_approval", "approved", "executed", "refused", "declined", "canceled", "superseded", "expired" | yes |  |
| `mode` | one of "now", "scheduled" | yes |  |
| `scheduled_at` | string or null | yes |  |
| `recipient_count` | integer, min -9007199254740991, max 9007199254740991 | yes |  |
| `mailing_revision` | integer, min -9007199254740991, max 9007199254740991 | yes | The mailing revision this request is bound to. An edit supersedes the request. |
| `requested_by` | string | yes | The key or app name the author sees. |
| `reason_codes` | array of string | yes |  |
| `created_at` | string | yes | RFC 3339 UTC timestamp. |
| `expires_at` | string | yes | An undecided request expires after 7 days. |
| `decided_at` | string or null | yes |  |
| `executed_at` | string or null | yes |  |
| `preview` | object or null | yes |  |

## Examples

### canceled

Request:

```bash
curl -X POST 'https://api.seemly.com/v1/send-requests/srq_7h2m9k4t8w3c5n6p1q0r2s4v/cancel' \
  -H "Authorization: Bearer $SEEMLY_API_KEY"
```

Response: `200`:

```json
{
  "id": "srq_7h2m9k4t8w3c5n6p1q0r2s4v",
  "mailing_id": "cmp_4d8x2p0q7r4d8x2p0q7r4d8x",
  "state": "canceled",
  "mode": "now",
  "scheduled_at": null,
  "recipient_count": 212,
  "mailing_revision": 3,
  "requested_by": "Launch agent",
  "reason_codes": [
    "canceled"
  ],
  "created_at": "2026-12-02T09:31:00Z",
  "expires_at": "2026-12-09T09:31:00Z",
  "decided_at": "2026-12-02T09:35:00Z",
  "executed_at": null,
  "preview": {
    "decision": "allow",
    "reasons": [],
    "tranche_sizes": [],
    "recipient_count": 212
  }
}
```

## Errors

| Status | Codes |
| --- | --- |
| 400 | [`validation_failed`](/developers/md/errors/validation_failed) |
| 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) |
| 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

- [`update_mailing_draft`](/developers/md/operations/update_mailing_draft)
- [`preview_send`](/developers/md/operations/preview_send)

## Related

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