# Agregar a la lista de supresión

Source: https://won.dev/es/docs/email/suppressions-add

`POST https://api.won.dev/v1/email/suppressions`

Pone direcciones o dominios enteros de empresas en tu lista de no contactar: clientes actuales, competidores, cualquiera que te haya pedido por otro medio que no le escribas. Vale a partir del siguiente correo, en todas las campañas, incluidas las que ya están en curso; con `sender_id`, solo en las campañas de ese remitente. Agregar algo dos veces no cambia nada. Hasta 1000 direcciones y 100 dominios por llamada. Una clave de prueba tiene su propia lista, que las campañas reales no obedecen. 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 el cuerpo JSON. Las solicitudes `POST` también aceptan el encabezado `Idempotency-Key`; consulta [Enviar una solicitud dos veces](/es/docs/email#idempotency).

| Parámetro | Tipo | Obligatorio | Descripción (texto original de la API) |
| --- | --- | --- | --- |
| `emails` | string[] | no | Addresses never to write to, such as `lee.park@coastal-office.example`. |
| `domains` | string[] | no | Company domains never to write to, such as `coastal-office.example`: every address at them is left out. Mail services such as gmail.com cannot be suppressed as a whole. |
| `sender_id` | string | no | Hold them back from this sender's campaigns only, such as `snd_4k2m9x7p1q8w3e5r`. Without it, from all of yours. |

## Respuesta [#response]

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

| Campo | Tipo | Descripción (texto original de la API) |
| --- | --- | --- |
| `data` | object | What became of the entries. |
| `data.added` | integer | Entries that are new on the list. |
| `data.already_listed` | integer | Entries that were on the list already. |
| `data.rejected` | object[] | Entries that were not added, each with the reason. |
| `data.rejected[].value` | string |  |
| `data.rejected[].message` | string |  |
| `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/suppressions \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "emails": [
    "lee.park@coastal-office.example"
  ],
  "domains": [
    "brightdesk.example"
  ]
}'
```

```json
{
  "data": {
    "added": 2,
    "already_listed": 0,
    "rejected": []
  },
  "notice": null,
  "usage": {
    "cost": 0,
    "balance": 48.08,
    "replayed": false
  }
}
```