Cancelar un dominio de envío
Hace que un dominio de envío no se renueve. Envía hasta que termina su período. Gratis.
Hace que un dominio de envío no se renueve. Sigue enviando hasta 1 día antes de period_end (ends_at), y luego se deja: sus buzones ya no existen, y sus direcciones tampoco. Lo que envió y las respuestas que recibió se quedan. No se reembolsa nada y no se puede deshacer: compra otro con POST /email/domains. Si era el último dominio del remitente, sus campañas se pausan entonces con no_domains. Cancelarlo otra vez no cambia nada. Una clave de prueba no puede cancelar los dominios simulados del sandbox. Gratis.
- Cobro: Gratis.
Una clave de prueba (won_test_...) ejecuta esto en el sandbox: no se envía ni se cobra nada.
apiKeyAuthorizationBearer <clave de API>Authorization: Bearer won_live_..., a key from the console.
id*stringDomain ID, such as dom_5r4k2m9x7p1q8w3e.
length <= 40Idempotency-Key?stringAny unique string. A retry with the same key returns the first response, instead of not_found for what is already gone.
length <= 255The result.
application/json- 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.
curl -X DELETE 'https://api.won.dev/v1/email/domains/dom_5r4k2m9x7p1q8w3e'{ "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 }}Última actualización: