Skip to Content
Won.dev
DocumentationAPI reference
Cold email API

Change a conversation

Mark a conversation read or unread, done or back in the inbox, as the console does. Free.

Marks a conversation read or unread (read), or done or back in the inbox (done), for everyone in the account: the console shows it too. Done files it under done and marks it read, until a later reply takes it out again. done: false moves it back to the inbox, where it stays until it is answered or marked done again, also when it was answered or its last reply needs nobody. Answering moves a conversation to done by itself: this is for the ones that need no answer from you. A conversation nobody wrote back in is in no folder yet, so marking it fails with invalid_state. Free.

  • Billing: Free.

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

PATCH
/conversations/{id}

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
read?boolean

true marks it read, false unread.

done?boolean

true files it under done and marks it read. false moves it back to the inbox, where it stays until it is answered or marked done again.

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 PATCH 'https://api.won.dev/v1/conversations/cnv_9x7p1q8w3e5r4k2m' \  -H 'Content-Type: application/json' \  -d '{  "id": "cnv_9x7p1q8w3e5r4k2m",  "done": true}'
Example Response
{  "data": {    "id": "cnv_9x7p1q8w3e5r4k2m",    "channel": "email",    "folder": "done",    "unread": false,    "answered": false,    "name": "Dana Whitfield",    "company": "Harborline Imports",    "country": "US",    "campaign": {      "id": "cmp_7p1q8w3e5r4k2m9x",      "name": "US chair importers, November"    },    "replies": 1,    "last_reply": {      "id": "rpl_1q8w3e5r4k2m9x7p",      "intent": "interested",      "automated": false,      "text": "Hi, yes, please send the price list. We are reviewing suppliers for next quarter.",      "has_attachments": false,      "received_at": "2026-11-20T13:41:02.000Z"    },    "activity_at": "2026-11-20T13:41:02.000Z",    "email": {      "recipient_id": "rcp_9x7p1q8w3e5r4k2m",      "address": "dana.whitfield@harborline-imports.example",      "status": "replied",      "reply_from": "dana.whitfield@harborline-imports.example",      "subject": "Re: Office chairs for Harborline Imports"    }  },  "notice": null,  "usage": {    "cost": 0,    "balance": 48.08,    "replayed": false  }}

Last updated on