# Answer a conversation

Source: https://won.dev/docs/email/conversations-reply

`POST https://api.won.dev/v1/conversations/{id}/reply`

Sends your answer in a conversation, in the same thread and from the same mailbox it runs in, so the person sees one conversation with one sender. It answers the conversation's `last_reply`, or the reply given as `reply_id`, such as a colleague's; their email is quoted underneath. Write as that sender would: plain text, no placeholders. Files such as a price list or a catalogue go in `attachments`. The text is checked as a campaign's texts are. The conversation then moves to `done` and is read, until they write again. It is free, and never held back by the day's limit. Someone who unsubscribed or bounced cannot be answered, and a conversation nobody wrote back in has nothing to answer: write again with `POST /email/messages`. The same answer to the same reply within 24 hours is taken as a repeat: you get the first answer back and nothing is sent twice.

- **Billing:** The call is free, and so are the emails: they go out from the sender's sending domains, paid for by the month, see [Sending domains](/docs/email#domains).

A test key (`won_test_...`) runs this in the [sandbox](/docs/email#sandbox): nothing is sent and nothing is charged.

## Parameters [#parameters]

`id` is part of the path. The others go in the JSON body. `POST` requests also take an `Idempotency-Key` header, see [Sending a request twice](/docs/email#idempotency).

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Conversation ID, such as `cnv_9x7p1q8w3e5r4k2m`. |
| `reply_id` | string | no | A reply of this conversation to answer instead of its last one, such as `rpl_1q8w3e5r4k2m9x7p`: the `messages` of `GET /conversations/{id}` have them all. |
| `text` | string | yes | Your answer, as plain text. |
| `attachments` | object[] | no | Up to 3 files, 10 MB together: PDFs, pictures, office documents, CSV and text. Each needs `content` or `url`. |
| `attachments[].filename` | string | yes | The name the recipient sees, with its extension: `.pdf`, `.png`, `.jpg`, `.jpeg`, `.gif`, `.webp`, `.docx`, `.xlsx`, `.pptx`, `.doc`, `.xls`, `.ppt`, `.csv`, `.txt`. |
| `attachments[].content` | string | no | The file, base64-encoded. Up to about 3 MB this way; pass `url` for a larger file. |
| `attachments[].url` | string | no | Instead of `content`: a public `https://` address we fetch the file from while the email is sent. |

## Response [#response]

Errors are described in [Errors](/docs/errors).

| Field | Type | Description |
| --- | --- | --- |
| `data` | object |  |
| `data.id` | string | Message ID, such as `msg_3e5r4k2m9x7p1q8w`. |
| `data.conversation_id` | string | Its conversation with the person, such as `cnv_9x7p1q8w3e5r4k2m`. |
| `data.campaign_id` | string |  |
| `data.recipient_id` | string |  |
| `data.from` | string \| null | The address it went out from: a mailbox of the sender's domains. |
| `data.to` | string |  |
| `data.kind` | `step` \| `reply` \| `single` | `step` of the sequence, `reply` (your answer to a reply), or `single` (an email you sent on its own with `POST /email/messages`). |
| `data.step` | integer \| null | The step, counted from 1. Null for a reply or a single email. |
| `data.version` | integer | Which version of the step went out, counted from 1. |
| `data.status` | `sending` \| `sent` \| `bounced` \| `failed` \| `skipped` | `sent`, `bounced`, or `sending` for the seconds it takes. `failed` and `skipped` did not go out. |
| `data.subject` | string |  |
| `data.opens` | integer | Opens that look like a person's. Machines that fetch mail to scan it are left out. |
| `data.clicks` | integer |  |
| `data.bounce_type` | `hard` \| `soft` \| null |  |
| `data.attachments` | object[] | The files that went with it. |
| `data.attachments[].filename` | string |  |
| `data.attachments[].content_type` | string |  |
| `data.attachments[].size` | integer | In bytes. |
| `data.sent_at` | string \| null |  |
| `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. |

## Example [#example]

```bash
curl https://api.won.dev/v1/conversations/cnv_9x7p1q8w3e5r4k2m/reply \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "Hi Dana,\n\nThanks. The price list is attached. Shall I send two samples?\n\nAlex",
  "attachments": [
    {
      "filename": "price-list.pdf",
      "url": "https://northwind-seating.example/price-list.pdf"
    }
  ]
}'
```

```json
{
  "data": {
    "id": "msg_9x7p1q8w3e5r4k2m",
    "conversation_id": "cnv_9x7p1q8w3e5r4k2m",
    "campaign_id": "cmp_7p1q8w3e5r4k2m9x",
    "recipient_id": "rcp_9x7p1q8w3e5r4k2m",
    "from": "alex@northwindseating.example",
    "to": "dana.whitfield@harborline-imports.example",
    "kind": "reply",
    "step": null,
    "version": 1,
    "status": "sent",
    "subject": "Re: Office chairs for Harborline Imports",
    "opens": 0,
    "clicks": 0,
    "bounce_type": null,
    "attachments": [
      {
        "filename": "price-list.pdf",
        "content_type": "application/pdf",
        "size": 182344
      }
    ],
    "sent_at": "2026-11-20T14:02:19.000Z"
  },
  "notice": null,
  "usage": {
    "cost": 0,
    "balance": 48.08,
    "replayed": false
  }
}
```