Listar conversas
A caixa de entrada: uma conversa para cada pessoa que respondeu, uma pasta por vez, com quantas ela tem. Grátis.
A caixa de entrada: uma conversa para cada pessoa que respondeu, a atividade mais recente primeiro, em três pastas. inbox guarda aquelas cuja última resposta espera retorno, low aquelas cuja última resposta não precisa de ninguém (uma resposta automática, um não, um descadastro), e done as respondidas ou marcadas como resolvidas; uma resposta que chega depois tira a conversa de done. O console mostra as mesmas pastas, então o que é lido ou resolvido aqui fica lido ou resolvido lá, e vice-versa. Cada conversa diz o que a última resposta significa e traz o começo dela; leia a troca inteira com GET /conversations/{id}. total diz quantas correspondem, em toda página: com limit=1, é quantas esperam numa pasta. Por enquanto toda conversa é por email: channel diz o canal, e o objeto com esse nome traz o que é próprio dele. 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.
folder?stringThe folder to list.
"inbox""inbox""low""done"intent?array<>Only the ones whose last reply means one of these, such as interested,question. Default: all.
items <= 7[]campaign_id?stringOnly this campaign, such as cmp_7p1q8w3e5r4k2m9x.
length <= 40unread?booleanOnly unread ones (true) or only read ones (false).
search?stringOnly the ones whose name, company or email address contains this.
1 <= length <= 100limit?integerHow many to return, 1 to 100.
1 <= value <= 10025cursor?stringTo get the next page, pass next_cursor of the previous response back unchanged, with the same parameters.
length <= 200The result.
application/json- response
data*array<>The conversations of this page.
total*integerHow many conversations of the folder match, on every page.
has_more*booleanWhether more follow this page.
next_cursor*|Pass it as cursor to get the next page. Null on the last page.
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 GET 'https://api.won.dev/v1/conversations?folder=inbox&limit=1'{ "data": [ { "id": "cnv_9x7p1q8w3e5r4k2m", "channel": "email", "folder": "inbox", "unread": true, "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" } } ], "total": 4, "has_more": true, "next_cursor": "cur_Qm9vVGhpc0lzQVNhbXBsZQ", "notice": null, "usage": { "cost": 0, "balance": 48.08, "replayed": false }}Última atualização em