Pular para o conteúdo
Won.dev
DocumentaçãoReferência da API
API de cold mail

Ver uma conversa

Uma conversa: em que pé ela está e tudo o que foi escrito com a pessoa, do mais antigo para o mais recente. Toda pessoa a quem uma campanha escreve tem uma. Grátis.

Uma conversa, com em que pé ela está e tudo o que foi escrito nela, do mais antigo para o mais recente. Toda pessoa a quem uma campanha escreve tem uma, também antes de responder. Em email são as etapas que saíram, o que voltou (também de colegas da mesma empresa), os seus retornos e os e-mails avulsos, cada um com o texto completo, e email.recipient diz em que pé está a cadência da pessoa; as respostas trazem os arquivos, com links para baixá-los. Leia antes de responder a alguém ou de escrever de novo. Ler não marca como lida: quem faz isso é PATCH /conversations/{id}. São retornadas as últimas 100 mensagens; truncated indica quando havia mais. Grátis.

  • Cobrança: Grátis.

Uma chave de teste (won_test_...) roda isto no sandbox: nada é enviado e nada é cobrado.

GET
/conversations/{id}

Autenticação

apiKey
headerAuthorizationBearer <chave de API>

Authorization: Bearer won_live_..., a key from the console.

Parâmetros de caminho

id*string

Conversation ID, such as cnv_9x7p1q8w3e5r4k2m.

Tamanholength <= 40

Corpo da resposta

The result.

application/json
  1. response
data*

The conversation, and everything written in it.

notice*|

A plain sentence when there is something to know about this answer. Null otherwise.

usage*

Nothing is charged here. The balance, for reference.

Requisição de exemplo
curl -X GET 'https://api.won.dev/v1/conversations/cnv_9x7p1q8w3e5r4k2m'
Resposta de exemplo
{  "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",      "recipient": {        "id": "rcp_9x7p1q8w3e5r4k2m",        "conversation_id": "cnv_9x7p1q8w3e5r4k2m",        "campaign_id": "cmp_7p1q8w3e5r4k2m9x",        "email": "dana.whitfield@harborline-imports.example",        "first_name": "Dana",        "last_name": "Whitfield",        "company": "Harborline Imports",        "country": "US",        "contact_id": null,        "status": "active",        "reason": null,        "risky": false,        "emails_sent": 1,        "next_send_at": "2026-11-24T15:20:00.000Z",        "last_sent_at": "2026-11-19T15:07:31.000Z",        "metadata": {          "crm_id": "lead_4471"        },        "created_at": "2026-11-18T14:03:10.000Z"      }    },    "messages": [      {        "type": "sent",        "at": "2026-11-19T15:07:31.000Z",        "message": {          "id": "msg_3e5r4k2m9x7p1q8w",          "conversation_id": "cnv_9x7p1q8w3e5r4k2m",          "campaign_id": "cmp_7p1q8w3e5r4k2m9x",          "recipient_id": "rcp_9x7p1q8w3e5r4k2m",          "from": "alex@northwindseating.example",          "to": "dana.whitfield@harborline-imports.example",          "kind": "step",          "step": 1,          "version": 1,          "status": "sent",          "subject": "Office chairs for Harborline Imports",          "opens": 0,          "clicks": 0,          "bounce_type": null,          "attachments": [],          "sent_at": "2026-11-19T15:07:31.000Z",          "text": "Hi Dana,\n\nI saw that Harborline Imports imports office seating. We make mesh task chairs in Leeds and ship to the US in four weeks.\n\nWould a price list be useful?\n\nAlex"        },        "reply": null      },      {        "type": "received",        "at": "2026-11-20T13:41:02.000Z",        "message": null,        "reply": {          "id": "rpl_1q8w3e5r4k2m9x7p",          "conversation_id": "cnv_9x7p1q8w3e5r4k2m",          "campaign_id": "cmp_7p1q8w3e5r4k2m9x",          "recipient_id": "rcp_9x7p1q8w3e5r4k2m",          "from_email": "dana.whitfield@harborline-imports.example",          "from_name": "Dana Whitfield",          "subject": "Re: Office chairs for Harborline Imports",          "text": "Hi, yes, please send the price list. Our spec sheet for the tender is attached.",          "intent": "interested",          "confidence": 0.7,          "automated": false,          "matched_by": "thread",          "has_attachments": true,          "attachments": [            {              "id": "att_6m2k9x7p1q8w3e5r",              "filename": "tender-spec.pdf",              "content_type": "application/pdf",              "size": 248113,              "status": "stored",              "reason": null,              "download_url": "https://won.dev/e/a/eyJhIjoiYXR0XzZtMms5eDdwMXE4dzNlNXIifQ.c2FtcGxl"            }          ],          "metadata": {            "customer_id": "c_812",            "crm_id": "lead_4471"          },          "received_at": "2026-11-20T13:41:02.000Z"        }      }    ],    "truncated": false  },  "notice": null,  "usage": {    "cost": 0,    "balance": 48.08,    "replayed": false  }}

Última atualização em