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.
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | string | no | Only this campaign, such as cmp_7p1q8w3e5r4k2m9x. |
recipient_id | string | no | Only emails to this recipient. |
status | sending | sent | bounced | failed | skipped | no | Only emails in this status. |
limit | integer | no | How many to return, 1 to 100. Default: 25. |
cursor | string | no | To get the next page, pass next_cursor of the previous response back unchanged, with the same parameters. |
Response
Errors are described in Errors.
| Field | Type | Description |
|---|---|---|
data | object[] | The emails of this page. |
data[].id | string | Message ID, such as msg_3e5r4k2m9x7p1q8w. |
data[].campaign_id | string | |
data[].recipient_id | string | |
data[].to | string | |
data[].kind | step | reply | single | step of the sequence, reply (your answer to a reply), or single (an email you sent on its own with POST /email/messages). |
data[].step | integer | null | The step, counted from 1. Null for a reply or a single email. |
data[].version | integer | Which version of the step went out, counted from 1. |
data[].status | sending | sent | bounced | failed | skipped | sent, bounced, or sending for the seconds it takes. failed and skipped did not go out and cost nothing. |
data[].subject | string | |
data[].opens | integer | Opens that look like a person's. Machines that fetch mail to scan it are left out. |
data[].clicks | integer | |
data[].bounce_type | hard | soft | null | |
data[].cost | number | What it cost, in US dollars. 0 after a refund. |
data[].attachments | object[] | The files that went with it. |
data[].attachments[].filename | string | |
data[].attachments[].content_type | string | |
data[].attachments[].size | integer | In bytes. |
data[].sent_at | string | null | |
has_more | boolean | Whether more follow this page. |
next_cursor | string | null | Pass it as cursor to get the next page. Null on the last page. |
notice | string | null | A plain sentence when there is something to know about this answer. Null otherwise. |
usage | object | Nothing is charged here. The balance, for reference. |
usage.cost | number | What this call cost, in US dollars. |
usage.balance | number | The balance left after this call, in US dollars. |
usage.replayed | boolean | True 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.