# Cancel a scheduled send

Cancels a pending scheduled send. The draft message is preserved as an editable draft in the mailbox.

## `POST /api/v1/mailboxes/{mailboxId}/scheduled/{scheduleId}/cancel`

### Path parameters

- `mailboxId` (string, required) — Mailbox ULID identifier
- `scheduleId` (string, required) — Scheduled send ULID identifier

### Responses

**200** — Cancellation confirmed

`application/json` → object

- `canceled` (boolean, required) — True if scheduled send was canceled

**401** — unauthorized: the bearer credential is missing, malformed, expired, or revoked. Carries a `WWW-Authenticate: Bearer` challenge

`application/json` → ErrorBody

**404** — Mailbox or schedule not found

`application/json` → ErrorBody

**409** — cannot_unsend (release already started) or schedule_failed

`application/json` → ErrorBody

**503** — temporary_failure: the platform's storage could not answer just now; retry after the Retry-After window. Any operation can answer this. A write that got it may have been applied, so retry it with the same idempotency key where it takes one, or read the state back first (see Transient failures in the API description)

`application/json` → ErrorBody

### Example request

```bash
curl -X POST 'https://api.open.email/api/v1/mailboxes/{mailboxId}/scheduled/{scheduleId}/cancel' \
  -H 'Authorization: Bearer oek_…'
```

## TypeScript SDK

[`openemail.scheduled.cancel`](/docs/sdks/typescript/scheduled/cancel)

```ts
const result = await openemail.scheduled.cancel(mailboxId, scheduleId)
```
