会話に返答する
会話に、同じスレッドで、同じメールボックスから返答します。ファイルも添えられます。無料で、止められることはありません。
会話の中で返答を送ります。同じスレッドで、その会話で使っているメールボックスから送られるので、相手には1人の送り主との1つのやりとりに見えます。返答するのは会話のlast_replyか、同僚からの返信などreply_idで指定した返信で、相手のメールは下に引用されます。その送り主になったつもりで書いてください。プレーンテキストで、プレースホルダーは使えません。価格表やカタログなどのファイルはattachmentsに入れます。本文はキャンペーンの文面と同じようにチェックされます。そのあと会話はdoneに移って既読になり、相手がまた書いてくるまでそこにあります。無料で、その日の上限で止められることもありません。配信停止した人やバウンスした人には返答できません。まだ返信のない会話には返答するものがないので、もう一度書くときはPOST /email/messagesを使います。24時間以内に同じ返信へ同じ返答をすると繰り返しとみなされ、最初の結果が返り、二重に送られることはありません。
- 課金: 呼び出しは無料で、メールも無料です。メールは送信者の送信ドメインから送られ、ドメインは月ごとに支払います。送信ドメインを参照してください。
テストキー(won_test_...)では、これはサンドボックスで動きます。何も送信されず、課金もされません。
apiKeyAuthorizationBearer <APIキー>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 }}最終更新日