# Adicionar à lista de supressão

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

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

Coloca endereços ou domínios inteiros de empresas na sua lista de não contatar: clientes atuais, concorrentes, qualquer pessoa que tenha pedido por outro meio para não receber e-mails. Vale a partir do próximo e-mail, em todas as campanhas, inclusive as que já estão rodando; com `sender_id`, só nas campanhas daquele remetente. Adicionar algo duas vezes não muda nada. Até 1.000 endereços e 100 domínios por chamada. Uma chave de teste tem a própria lista, que as campanhas reais não obedecem. Grátis.

- **Cobrança:** Grátis.

Uma chave de teste (`won_test_...`) roda isto no [sandbox](/pt-BR/docs/email#sandbox): nada é enviado e nada é cobrado.

## Parâmetros [#parameters]

Os parâmetros vão no corpo JSON. Requisições `POST` também aceitam o cabeçalho `Idempotency-Key`; veja [Enviar uma requisição duas vezes](/pt-BR/docs/email#idempotency).

| Parâmetro | Tipo | Obrigatório | Descrição (texto original da API) |
| --- | --- | --- | --- |
| `emails` | string[] | não | Addresses never to write to, such as `lee.park@coastal-office.example`. |
| `domains` | string[] | não | 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 | não | Hold them back from this sender's campaigns only, such as `snd_4k2m9x7p1q8w3e5r`. Without it, from all of yours. |

## Resposta [#response]

Os erros estão descritos em [Erros](/pt-BR/docs/errors).

| Campo | Tipo | Descrição (texto original da 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. |

## Exemplo [#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
  }
}
```