Cambiar una conversación
Marca una conversación como leída o no leída, resuelta o de vuelta en la bandeja de entrada, como hace la consola. Gratis.
Marca una conversación como leída o no leída (read), o como resuelta o de vuelta en la bandeja de entrada (done), para todos en la cuenta: la consola también lo muestra. Resolverla la pasa a done y la marca como leída, hasta que una respuesta posterior la saca de ahí. done: false la devuelve a la bandeja de entrada, donde se queda hasta que se conteste o se marque como resuelta otra vez, aunque ya estuviera contestada o su última respuesta no necesite a nadie. Contestar pasa una conversación a done por sí solo: esto es para las que no necesitan una contestación tuya. Una conversación en la que nadie contestó todavía no está en ninguna carpeta, así que marcarla falla con invalid_state. Gratis.
- Cobro: Gratis.
Una clave de prueba (won_test_...) ejecuta esto en el sandbox: no se envía ni se cobra nada.
apiKeyAuthorizationBearer <clave 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 actualización: