回复会话
在会话原来的邮件往来中、用同一个邮箱回复,可带附件。免费,且不受限制。
在会话中发送你的回复:邮件会发在原来的邮件往来中,使用这段对话一直在用的邮箱,所以对方看到的始终是与同一个人的对话。默认回复会话的 last_reply,也可以用 reply_id 指定要回复的那条,比如同事的回信;对方的原邮件会引用在下方。请以那位发件人的口吻撰写:纯文本,不使用占位符。价目表、产品目录等文件放在 attachments 中。正文会像发送活动的文案一样经过检查。之后会话会移到 done 并标为已读,直到对方再次来信。免费,并且不受当天发信量的限制。不能回复已退订或已退信的人;对方还没回信的会话没有可回复的内容,要再写信请用 POST /email/messages。24 小时内针对同一条回信的相同回复会被视为重复:你会拿到第一次的结果,不会重复发信。
- 计费: 调用免费,邮件本身也免费:它们从发件方的发信域名发出,域名按月付费,见发信域名。
用测试 key(won_test_...)发送这个请求,会在沙箱中运行:不发信,不收费。
apiKeyAuthorizationBearer <API key>Authorization: Bearer won_live_..., a key from the console.
id*stringConversation ID, such as cnv_9x7p1q8w3e5r4k2m.
length <= 40Idempotency-Key?stringAny unique string. A retry with the same key and the same body returns the first response and is not charged again.
length <= 255application/json- body
reply_id?stringA reply of this conversation to answer instead of its last one, such as rpl_1q8w3e5r4k2m9x7p: the messages of GET /conversations/{id} have them all.
length <= 40text*stringYour answer, as plain text.
1 <= length <= 4000attachments?array<>Up to 3 files, 10 MB together: PDFs, pictures, office documents, CSV and text. Each needs content or url.
items <= 3[]The result.
application/json- 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.
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" } ]}'{ "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 }}最后更新于