Skip to Content
Won.dev
DocumentationAPI reference
Cold email API

Cancel a sending domain

Stop a sending domain from renewing. It sends until its period ends. Free.

Stops a sending domain from renewing. It goes on sending until 1 day before period_end (ends_at), and is then given up: its mailboxes are gone, and so is their address. What it sent and the replies it got stay. Nothing is refunded, and it cannot be undone: buy another with POST /email/domains. When it was the sender's last domain, the sender's campaigns pause for no_domains then. Canceling again changes nothing. A test key cannot cancel the sandbox's simulated domains. Free.

  • Billing: Free.

A test key (won_test_...) runs this in the sandbox: nothing is sent and nothing is charged.

DELETE
/email/domains/{id}

Authorization

apiKey
headerAuthorizationBearer <API key>

Authorization: Bearer won_live_..., a key from the console.

Path Parameters

id*string

Domain ID, such as dom_5r4k2m9x7p1q8w3e.

Lengthlength <= 40

Header Parameters

Idempotency-Key?string

Any unique string. A retry with the same key returns the first response, instead of not_found for what is already gone.

Lengthlength <= 255

Response Body

The result.

application/json
  1. response
data*
notice*|

A plain sentence when there is something to know about this answer. Null otherwise.

usage*

Nothing is charged here. The balance, for reference.

Example Request
curl -X DELETE 'https://api.won.dev/v1/email/domains/dom_5r4k2m9x7p1q8w3e'
Example Response
{  "data": {    "id": "dom_5r4k2m9x7p1q8w3e",    "sender_id": "snd_4k2m9x7p1q8w3e5r",    "domain": "northwindseating.example",    "status": "ending",    "end_reason": "canceled",    "mailboxes": [      {        "address": "alex@northwindseating.example",        "name": "Alex Morgan"      },      {        "address": "alex.morgan@northwindseating.example",        "name": "Alex Morgan"      },      {        "address": "a.morgan@northwindseating.example",        "name": "Alex Morgan"      }    ],    "daily_limit": 45,    "full_daily_limit": 45,    "sent_today": 31,    "full_speed_at": null,    "price_per_month": 27,    "period_end": "2026-12-28T00:00:00.000Z",    "renews": false,    "ends_at": "2026-12-27T00:00:00.000Z",    "renewal_failed_at": null,    "stats": {      "sent": 812,      "bounced": 9,      "bounce_rate": 0.0111,      "complaints": 0    },    "test": false,    "created_at": "2026-11-17T09:20:03.000Z",    "ready_at": "2026-11-17T09:24:41.000Z",    "ended_at": null  },  "notice": null,  "usage": {    "cost": 0,    "balance": 48.08,    "replayed": false  }}

Last updated on