Alterar uma conversa
Marca uma conversa como lida ou não lida, resolvida ou de volta na caixa de entrada, como o console faz. Grátis.
Marca uma conversa como lida ou não lida (read), ou como resolvida ou de volta na caixa de entrada (done), para todos na conta: o console mostra também. Resolvida, ela vai para done e fica marcada como lida, até que uma resposta posterior a tire de lá. done: false a devolve à caixa de entrada, onde ela fica até ser respondida ou marcada como resolvida de novo, mesmo que já tenha sido respondida ou que a última resposta não precise de ninguém. Responder leva uma conversa para done sozinho: isto é para as que não precisam de um retorno seu. Uma conversa em que ninguém respondeu ainda não está em nenhuma pasta, então marcá-la falha com invalid_state. Grátis.
- Cobrança: Grátis.
Uma chave de teste (won_test_...) roda isto no sandbox: nada é enviado e nada é cobrado.
apiKeyAuthorizationBearer <chave de 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
read?booleantrue marks it read, false unread.
done?booleantrue 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.
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 PATCH 'https://api.won.dev/v1/conversations/cnv_9x7p1q8w3e5r4k2m' \ -H 'Content-Type: application/json' \ -d '{ "id": "cnv_9x7p1q8w3e5r4k2m", "done": true}'{ "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 }}Última atualização em