Skip to Content
Won.dev
DocumentationAPI reference
Cold email API

Answer a conversation

Answer a conversation in its thread, from the same mailbox, with files if needed. Free, and never held back.

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.

A test key (won_test_...) runs this in the sandbox: nothing is sent and nothing is charged.

POST
/conversations/{id}/reply

Authorization

apiKey
headerAuthorizationBearer <API key>

Authorization: Bearer won_live_..., a key from the console.

Path Parameters

id*string

Conversation ID, such as cnv_9x7p1q8w3e5r4k2m.

Lengthlength <= 40

Header Parameters

Idempotency-Key?string

Any unique string. A retry with the same key and the same body returns the first response and is not charged again.

Lengthlength <= 255

Request Body

application/json
  1. body
reply_id?string

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.

Lengthlength <= 40
text*string

Your answer, as plain text.

Length1 <= length <= 4000
attachments?array<>

Up to 3 files, 10 MB together: PDFs, pictures, office documents, CSV and text. Each needs content or url.

Itemsitems <= 3
Default[]

Response Body

The result.

application/json
  1. response
data*
notice*|

A plain sentence when there is something to know about this answer. Null otherwise.

usage*

Nothing is charged here. The balance, for reference.

Example Request
curl -X POST 'https://api.won.dev/v1/conversations/cnv_9x7p1q8w3e5r4k2m/reply' \  -H 'Content-Type: application/json' \  -d '{  "id": "cnv_9x7p1q8w3e5r4k2m",  "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"    }  ]}'
Example Response
{  "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  }}

Last updated on