# Listar respostas

Source: https://won.dev/pt-BR/docs/email/replies-list

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

O que os destinatários responderam, do mais recente para o mais antigo, cada resposta com o que ela significa (`intent`) e o grau de certeza. Uma resposta encerra sozinha a cadência de quem a enviou; não é preciso fazer nada para isso. Mensagens automáticas de ausência ficam de fora, a menos que `include_automated` seja true, e não encerram uma cadência. Passe o `received_at` da resposta mais recente que você viu como `since` para receber o que é novo: uma resposta conta a partir de quando a registramos, o que pode ser depois do envio, então uma que você já viu pode aparecer de novo; diferencie pelo `id`. As respostas aparecem alguns minutos depois de enviadas. Os arquivos de uma resposta ficam em `attachments`, cada um com um link para baixar. 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 na query string, com listas separadas por vírgula.

| Parâmetro | Tipo | Obrigatório | Descrição (texto original da API) |
| --- | --- | --- | --- |
| `campaign_id` | string | não | Only this campaign, such as `cmp_7p1q8w3e5r4k2m9x`. |
| `sender_id` | string | não | Only replies to the campaigns of this sender. |
| `intent` | (`interested` \| `question` \| `not_interested` \| `wrong_person` \| `unsubscribe` \| `out_of_office` \| `other`)[] | não | Only replies with these intents, such as `interested,question`. Default: all. |
| `since` | string | não | Only replies filed after this ISO 8601 time, such as `2026-11-20T13:41:02Z`. |
| `include_automated` | boolean | não | Also return automatic answers such as out-of-office notes. Default: `false`. |
| `limit` | integer | não | How many to return, 1 to 100. Default: `25`. |
| `cursor` | string | não | To get the next page, pass `next_cursor` of the previous response back unchanged, with the same parameters. |

## Resposta [#response]

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

| Campo | Tipo | Descrição (texto original da API) |
| --- | --- | --- |
| `data` | object[] | The replies of this page. |
| `data[].id` | string | Reply ID, such as `rpl_1q8w3e5r4k2m9x7p`. |
| `data[].campaign_id` | string |  |
| `data[].recipient_id` | string |  |
| `data[].from_email` | string |  |
| `data[].from_name` | string \| null |  |
| `data[].subject` | string |  |
| `data[].text` | string | What the person wrote, without the quoted email underneath. |
| `data[].intent` | `interested` \| `question` \| `not_interested` \| `wrong_person` \| `unsubscribe` \| `out_of_office` \| `other` | What the reply means: `interested`, `question`, `not_interested`, `wrong_person`, `unsubscribe`, `out_of_office` or `other`. |
| `data[].confidence` | number | How sure the intent is, 0 to 1. Read the text when it is low. |
| `data[].automated` | boolean | An automatic answer, such as an out-of-office note. |
| `data[].matched_by` | `thread` \| `address` \| `domain` | How it was tied to the recipient: it answers our email, it comes from their address, or from a colleague at the same company. |
| `data[].has_attachments` | boolean | The email came with files. They are listed in `attachments` within a minute or two of the reply showing up. |
| `data[].attachments` | object[] | The files it came with, in their order. |
| `data[].attachments[].id` | string | Attachment ID, such as `att_6m2k9x7p1q8w3e5r`. |
| `data[].attachments[].filename` | string |  |
| `data[].attachments[].content_type` | string | As the sender's mail program declared it. |
| `data[].attachments[].size` | integer | In bytes. |
| `data[].attachments[].status` | `pending` \| `stored` \| `failed` \| `skipped` | `stored` once we have a copy, `pending` for the minute or two before. `skipped` files are not copied: programs and scripts (`reason: blocked_type`) and files over 15 MB (`too_large`). `failed` could not be read from the mailbox. |
| `data[].attachments[].reason` | string \| null | Why it was skipped or failed. |
| `data[].attachments[].download_url` | string \| null | Where to download it, without an API key, for one hour from this response. Null for a skipped or failed file. |
| `data[].metadata` | object | The campaign's metadata with the recipient's over it, as they were when the reply arrived: up to 40 keys. |
| `data[].received_at` | string | When it arrived, as an ISO 8601 time in UTC. |
| `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. |

## Exemplo [#example]

```bash
curl "https://api.won.dev/v1/email/replies?campaign_id=cmp_7p1q8w3e5r4k2m9x&intent=interested&limit=1" \
  -H "Authorization: Bearer $WON_API_KEY"
```

```json
{
  "data": [
    {
      "id": "rpl_1q8w3e5r4k2m9x7p",
      "campaign_id": "cmp_7p1q8w3e5r4k2m9x",
      "recipient_id": "rcp_9x7p1q8w3e5r4k2m",
      "from_email": "dana.whitfield@harborline-imports.example",
      "from_name": "Dana Whitfield",
      "subject": "Re: Office chairs for Harborline Imports",
      "text": "Hi, yes, please send the price list. We are reviewing suppliers for next quarter.",
      "intent": "interested",
      "confidence": 0.7,
      "automated": false,
      "matched_by": "thread",
      "has_attachments": false,
      "attachments": [],
      "metadata": {
        "customer_id": "c_812",
        "crm_id": "lead_4471"
      },
      "received_at": "2026-11-20T13:41:02.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "notice": null,
  "usage": {
    "cost": 0,
    "balance": 48.08,
    "replayed": false
  }
}
```