Skip to Content
Won.dev

List sent emails

The emails that went out: to whom, which step, and what each cost. Free.

GET https://api.won.dev/v1/email/messages

The emails that went out, newest first: to whom, which step and version, whether it bounced, and what it cost. Opens and clicks are counted only for campaigns that track them. Free.

  • Billing: Free.

Parameters

Parameters go in the query string, lists comma-separated.

ParameterTypeRequiredDescription
campaign_idstringnoOnly this campaign, such as cmp_7p1q8w3e5r4k2m9x.
recipient_idstringnoOnly emails to this recipient.
statussending | sent | bounced | failed | skippednoOnly emails in this status.
limitintegernoHow many to return, 1 to 100. Default: 25.
cursorstringnoTo get the next page, pass next_cursor of the previous response back unchanged, with the same parameters.

Response

Errors are described in Errors.

FieldTypeDescription
dataobject[]The emails of this page.
data[].idstringMessage ID, such as msg_3e5r4k2m9x7p1q8w.
data[].campaign_idstring
data[].recipient_idstring
data[].tostring
data[].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[].stepinteger | nullThe step, counted from 1. Null for a reply or a single email.
data[].versionintegerWhich version of the step went out, counted from 1.
data[].statussending | sent | bounced | failed | skippedsent, bounced, or sending for the seconds it takes. failed and skipped did not go out and cost nothing.
data[].subjectstring
data[].opensintegerOpens that look like a person's. Machines that fetch mail to scan it are left out.
data[].clicksinteger
data[].bounce_typehard | soft | null
data[].costnumberWhat it cost, in US dollars. 0 after a refund.
data[].attachmentsobject[]The files that went with it.
data[].attachments[].filenamestring
data[].attachments[].content_typestring
data[].attachments[].sizeintegerIn bytes.
data[].sent_atstring | null
has_morebooleanWhether more follow this page.
next_cursorstring | nullPass it as cursor to get the next page. Null on the last page.
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/messages?campaign_id=cmp_7p1q8w3e5r4k2m9x&limit=1" \
  -H "Authorization: Bearer $WON_API_KEY"
{
  "data": [
    {
      "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"
    }
  ],
  "has_more": true,
  "next_cursor": "cur_Qm9vVGhpc0lzQVNhbXBsZQ",
  "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