# Listar dominios de envío

Source: https://won.dev/es/docs/email/domains-list

`GET https://api.won.dev/v1/email/domains`

Tus dominios de envío, del más reciente al más antiguo, con sus buzones, lo que cada uno puede enviar hoy y ya envió, y cuándo se renueva. Lo que un remitente aún puede enviar hoy, con todos sus dominios juntos, es `sending` en `GET /email/senders/{id}`. Los dominios que se dejaron o que no se pudieron comprar quedan fuera salvo que `ended` sea true. Una clave de prueba ve el dominio simulado de cada remitente del sandbox. Gratis.

- **Cobro:** Gratis.

Una clave de prueba (`won_test_...`) ejecuta esto en el [sandbox](/es/docs/email#sandbox): no se envía ni se cobra nada.

## Parámetros [#parameters]

Los parámetros van en la cadena de consulta, con las listas separadas por comas.

| Parámetro | Tipo | Obligatorio | Descripción (texto original de la API) |
| --- | --- | --- | --- |
| `sender_id` | string | no | Only the domains of this sender. |
| `ended` | boolean | no | Also the domains that were released or failed. Default: `false`. |
| `limit` | integer | no | How many to return, 1 to 100. Default: `25`. |
| `cursor` | string | no | To get the next page, pass `next_cursor` of the previous response back unchanged, with the same parameters. |

## Respuesta [#response]

Los errores se describen en [Errores](/es/docs/errors).

| Campo | Tipo | Descripción (texto original de la API) |
| --- | --- | --- |
| `data` | object[] | The domains of this page. |
| `data[].id` | string | Domain ID, such as `dom_5r4k2m9x7p1q8w3e`. |
| `data[].sender_id` | string | The sender it sends for. It never sends for another. |
| `data[].domain` | string \| null | The domain name. Null for the minutes after it was paid for, until one is chosen and bought. |
| `data[].status` | `setting_up` \| `ramping` \| `active` \| `paused` \| `ending` \| `released` \| `failed` | `setting_up` for the minutes it takes to buy it and set up its mailboxes. `ramping` while it sends a few emails a day more each day, for 5 days. `active` at full speed. `paused` while we hold it back. `ending` once it will not renew: it sends until 1 day before `period_end`. Final: `released` (its mailboxes are gone) and `failed` (it could not be bought; what it cost went back to the balance). |
| `data[].end_reason` | `canceled` \| `unpaid` \| `replaced` \| `removed` \| null | Why it ends or ended: `canceled` by you, `unpaid` (the renewal could not be charged), `replaced` by a new domain, `removed` by us. Null while it renews. |
| `data[].mailboxes` | object[] | Its mailboxes, 3 as a rule. Empty while it is set up. Replies to them are read for you: you never sign in to them. |
| `data[].mailboxes[].address` | string | The address emails go out from, and replies come back to. |
| `data[].mailboxes[].name` | string | The name it sends under, the one it was warmed up with. |
| `data[].daily_limit` | integer | What its mailboxes may send today, together. |
| `data[].full_daily_limit` | integer | What they send a day at full speed, together: 45. |
| `data[].sent_today` | integer | Emails they sent since midnight UTC. Answers to replies are left out. |
| `data[].full_speed_at` | string \| null | When it reaches full speed, while it is `ramping`. Null otherwise. |
| `data[].price_per_month` | number | What a renewal costs, for 30 days, in US dollars. |
| `data[].period_end` | string | When the paid period ends. The next one is charged from your balance a few days before, as an ISO 8601 time in UTC. |
| `data[].renews` | boolean | Whether it renews at `period_end`. False once you canceled it. |
| `data[].ends_at` | string \| null | When it stops sending and its mailboxes are given up, when it will not renew. Null while it renews. |
| `data[].renewal_failed_at` | string \| null | When charging the renewal last failed for want of balance. It is tried again until the day before `period_end`, then the domain is given up. Null when nothing failed. |
| `data[].stats` | object | The last 30 days. |
| `data[].stats.sent` | integer | Emails sent. |
| `data[].stats.bounced` | integer | Of them, how many bounced because the mailbox does not exist. |
| `data[].stats.bounce_rate` | number | `bounced` over `sent`, 0 to 1. |
| `data[].stats.complaints` | integer | Recipients who reported its emails as spam. |
| `data[].test` | boolean | The simulated domain of a test key's sender: it never sends for real. |
| `data[].created_at` | string | When it was bought, as an ISO 8601 time in UTC. |
| `data[].ready_at` | string \| null | When its mailboxes could send. |
| `data[].ended_at` | string \| null | When it was released, or failed. |
| `has_more` | boolean | Whether more follow this page. |
| `next_cursor` | string \| null | Pass it as `cursor` to get the next page. Null on the last page. |
| `notice` | string \| null | A plain sentence when there is something to know about this answer. Null otherwise. |
| `usage` | object | Nothing is charged here. The balance, for reference. |
| `usage.cost` | number | What this call cost, in US dollars. |
| `usage.balance` | number | The balance left after this call, in US dollars. |
| `usage.replayed` | boolean | True when this is a repeat of a request from the last 24 hours. Repeats are free. |

## Ejemplo [#example]

```bash
curl "https://api.won.dev/v1/email/domains?sender_id=snd_4k2m9x7p1q8w3e5r" \
  -H "Authorization: Bearer $WON_API_KEY"
```

```json
{
  "data": [
    {
      "id": "dom_8w3e5r4k2m9x7p1q",
      "sender_id": "snd_4k2m9x7p1q8w3e5r",
      "domain": "northwind-chairs.example",
      "status": "ramping",
      "end_reason": null,
      "mailboxes": [
        {
          "address": "alex@northwind-chairs.example",
          "name": "Alex Morgan"
        },
        {
          "address": "alex.m@northwind-chairs.example",
          "name": "Alex Morgan"
        },
        {
          "address": "morgan@northwind-chairs.example",
          "name": "Alex Morgan"
        }
      ],
      "daily_limit": 21,
      "full_daily_limit": 45,
      "sent_today": 9,
      "full_speed_at": "2026-11-29T00:00:00.000Z",
      "price_per_month": 27,
      "period_end": "2026-12-28T00:00:00.000Z",
      "renews": true,
      "ends_at": null,
      "renewal_failed_at": null,
      "stats": {
        "sent": 33,
        "bounced": 0,
        "bounce_rate": 0,
        "complaints": 0
      },
      "test": false,
      "created_at": "2026-11-24T10:02:00.000Z",
      "ready_at": "2026-11-24T10:07:12.000Z",
      "ended_at": null
    },
    {
      "id": "dom_5r4k2m9x7p1q8w3e",
      "sender_id": "snd_4k2m9x7p1q8w3e5r",
      "domain": "northwindseating.example",
      "status": "active",
      "end_reason": null,
      "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": true,
      "ends_at": null,
      "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
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "notice": null,
  "usage": {
    "cost": 0,
    "balance": 48.08,
    "replayed": false
  }
}
```