Skip to Content
Won.dev

Get a conversation

Everything written with one person, oldest first, each email with its full text. Free.

GET https://api.won.dev/v1/email/recipients/{id}/conversation

Everything written between a campaign and one person, oldest first, each email with its full text: the steps that went out, what came back (also from colleagues at the same company), your answers and single emails. Replies carry their files, with links to download them. Use it to read up on a person before you write to them. The latest 100 emails are returned; truncated says when there were more. Free.

  • Billing: Free.

Parameters

id is part of the path. The others go in the query string, lists comma-separated.

ParameterTypeRequiredDescription
idstringyesRecipient ID, such as rcp_9x7p1q8w3e5r4k2m.

Response

Errors are described in Errors.

FieldTypeDescription
dataobjectThe recipient, and every email between you and them.
data.recipientobject
data.recipient.idstringRecipient ID, such as rcp_9x7p1q8w3e5r4k2m.
data.recipient.campaign_idstring
data.recipient.emailstring
data.recipient.first_namestring | null
data.recipient.last_namestring | null
data.recipient.companystring | null
data.recipient.countrystring | nullISO 3166-1 alpha-2, as given or as read off the address.
data.recipient.contact_idstring | nullThe person ID it was added by.
data.recipient.statusverifying | scheduled | active | replied | completed | bounced | unsubscribed | suppressed | invalid | stoppedverifying while the address is checked, scheduled before the first email, active between emails. Final: replied, completed (every email sent, no answer), bounced, unsubscribed, suppressed, invalid, stopped.
data.recipient.reasonstring | nullWhy, for invalid, stopped, bounced and suppressed.
data.recipient.riskybooleanThe address could not be confirmed: its domain accepts mail for any name.
data.recipient.emails_sentinteger
data.recipient.next_send_atstring | nullWhen the next email is due at the earliest.
data.recipient.last_sent_atstring | null
data.recipient.metadataobjectYour own keys and values, as you gave them. Empty when none were.
data.recipient.created_atstringWhen it was added, as an ISO 8601 time in UTC.
data.messagesobject[]The emails, oldest first.
data.messages[].typesent | receivedsent for an email to them, received for one from them or a colleague.
data.messages[].atstringWhen it was sent or arrived, as an ISO 8601 time in UTC.
data.messages[].messageobject | nullWith sent: the email. Null otherwise.
data.messages[].message.idstringMessage ID, such as msg_3e5r4k2m9x7p1q8w.
data.messages[].message.campaign_idstring
data.messages[].message.recipient_idstring
data.messages[].message.tostring
data.messages[].message.kindstep | reply | singlestep of the sequence, reply (your answer to a reply), or single (an email you sent on its own with POST /email/messages).
data.messages[].message.stepinteger | nullThe step, counted from 1. Null for a reply or a single email.
data.messages[].message.versionintegerWhich version of the step went out, counted from 1.
data.messages[].message.statussending | sent | bounced | failed | skippedsent, bounced, or sending for the seconds it takes. failed and skipped did not go out and cost nothing.
data.messages[].message.subjectstring
data.messages[].message.opensintegerOpens that look like a person's. Machines that fetch mail to scan it are left out.
data.messages[].message.clicksinteger
data.messages[].message.bounce_typehard | soft | null
data.messages[].message.costnumberWhat it cost, in US dollars. 0 after a refund.
data.messages[].message.attachmentsobject[]The files that went with it.
data.messages[].message.attachments[].filenamestring
data.messages[].message.attachments[].content_typestring
data.messages[].message.attachments[].sizeintegerIn bytes.
data.messages[].message.sent_atstring | null
data.messages[].message.textstring | nullWhat it said, placeholders filled in, without the footer and the quoted email.
data.messages[].replyobject | nullWith received: the reply. Null otherwise.
data.messages[].reply.idstringReply ID, such as rpl_1q8w3e5r4k2m9x7p.
data.messages[].reply.campaign_idstring
data.messages[].reply.recipient_idstring
data.messages[].reply.from_emailstring
data.messages[].reply.from_namestring | null
data.messages[].reply.subjectstring
data.messages[].reply.textstringWhat the person wrote, without the quoted email underneath.
data.messages[].reply.intentinterested | question | not_interested | wrong_person | unsubscribe | out_of_office | otherWhat the reply means: interested, question, not_interested, wrong_person, unsubscribe, out_of_office or other.
data.messages[].reply.confidencenumberHow sure the intent is, 0 to 1. Read the text when it is low.
data.messages[].reply.automatedbooleanAn automatic answer, such as an out-of-office note.
data.messages[].reply.matched_bythread | address | domainHow it was tied to the recipient: it answers our email, it comes from their address, or from a colleague at the same company.
data.messages[].reply.has_attachmentsbooleanThe email came with files. They are listed in attachments within a minute or two of the reply showing up.
data.messages[].reply.attachmentsobject[]The files it came with, in their order.
data.messages[].reply.attachments[].idstringAttachment ID, such as att_6m2k9x7p1q8w3e5r.
data.messages[].reply.attachments[].filenamestring
data.messages[].reply.attachments[].content_typestringAs the sender's mail program declared it.
data.messages[].reply.attachments[].sizeintegerIn bytes.
data.messages[].reply.attachments[].statuspending | stored | failed | skippedstored once we have a copy, pending for the minute or two before. skipped files are not copied: programs and scripts (reason: blocked_type) and files over 15 MB (too_large). failed could not be read from the mailbox.
data.messages[].reply.attachments[].reasonstring | nullWhy it was skipped or failed.
data.messages[].reply.attachments[].download_urlstring | nullWhere to download it, without an API key, for one hour from this response. Null for a skipped or failed file.
data.messages[].reply.metadataobjectThe campaign's metadata with the recipient's over it, as they were when the reply arrived: up to 40 keys.
data.messages[].reply.received_atstringWhen it arrived, as an ISO 8601 time in UTC.
data.truncatedbooleanWhether there were more than 100 and the oldest were left out.
noticestring | nullA plain sentence when there is something to know about this answer. Null otherwise.
usageobjectNothing is charged here. The balance, for reference.
usage.costnumberWhat this call cost, in US dollars.
usage.balancenumberThe balance left after this call, in US dollars.
usage.replayedbooleanTrue when this is a repeat of a request from the last 24 hours. Repeats are free.

Example

curl "https://api.won.dev/v1/email/recipients/rcp_9x7p1q8w3e5r4k2m/conversation" \
  -H "Authorization: Bearer $WON_API_KEY"
{
  "data": {
    "recipient": {
      "id": "rcp_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",
          "campaign_id": "cmp_7p1q8w3e5r4k2m9x",
          "recipient_id": "rcp_9x7p1q8w3e5r4k2m",
          "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,
          "cost": 0.03,
          "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",
          "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"
        }
      },
      {
        "type": "sent",
        "at": "2026-11-20T14:02:19.000Z",
        "message": {
          "id": "msg_9x7p1q8w3e5r4k2m",
          "campaign_id": "cmp_7p1q8w3e5r4k2m9x",
          "recipient_id": "rcp_9x7p1q8w3e5r4k2m",
          "to": "dana.whitfield@harborline-imports.example",
          "kind": "reply",
          "step": null,
          "version": 1,
          "status": "sent",
          "subject": "Re: Office chairs for Harborline Imports",
          "opens": 0,
          "clicks": 0,
          "bounce_type": null,
          "cost": 0.03,
          "attachments": [
            {
              "filename": "price-list.pdf",
              "content_type": "application/pdf",
              "size": 182344
            }
          ],
          "sent_at": "2026-11-20T14:02:19.000Z",
          "text": "Hi Dana,\n\nThanks. The price list is attached. Shall I send two samples?\n\nAlex"
        },
        "reply": null
      }
    ],
    "truncated": false
  },
  "notice": null,
  "usage": {
    "cost": 0,
    "balance": 48.08,
    "replayed": false
  }
}

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

On this page