Skip to Content
Won.dev

List events

What happened since you last asked: replies, bounces, unsubscribes, campaigns starting and ending. Free.

GET https://api.won.dev/v1/events

What happened since you last asked, oldest first: a reply came in, an email bounced, a campaign finished. This is how to keep up without a webhook: call it with the next_cursor of your previous call as cursor, and you get exactly what is new, each event once. Unlike other lists, next_cursor is set on the last page too, and it does not expire while the event is kept. An empty data means nothing happened; ask again in a few minutes. Events are kept for 30 days. Types: sender.approved, sender.rejected, campaign.started, campaign.paused, campaign.resumed, campaign.completed, campaign.canceled, email.sent, email.opened, email.clicked, email.bounced, reply.received, recipient.unsubscribed, account.suspended, task.completed. Free.

  • Billing: Free.

Parameters

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

ParameterTypeRequiredDescription
cursorstringnoOnly events after the previous call: its next_cursor, passed back unchanged.
sincestringnoOnly events after this ISO 8601 time, such as 2026-11-20T13:41:02Z. For the first call, when there is no cursor yet.
types(sender.approved | sender.rejected | campaign.started | campaign.paused | campaign.resumed | campaign.completed | campaign.canceled | email.sent | email.opened | email.clicked | email.bounced | reply.received | recipient.unsubscribed | account.suspended | task.completed)[]noOnly these types, such as reply.received,email.bounced. Default: all.
campaign_idstringnoOnly events of this campaign.
tenant_idstringnoOnly events of this tenant: of its senders, its campaigns and their emails, and an account.suspended of the whole account, which stops the tenant too.
limitintegernoHow many to return, 1 to 100. Default: 50.

Response

Errors are described in Errors.

FieldTypeDescription
dataobject[]The events, oldest first.
data[].idstringEvent ID, such as evt_5r4k2m9x7p1q8w3e. Pass the last one as after.
data[].typestringWhat happened, such as reply.received.
data[].created_atstringWhen it happened, as an ISO 8601 time in UTC.
data[].campaign_idstring | null
data[].tenant_idstring | nullThe tenant it is about: the tenant_id of the campaign's sender, or of the sender or the sending it is about. Null for the account itself.
data[].testbooleanFrom a test key's sandbox: nothing real happened.
data[].metadataobjectYour metadata of what it is about, as it was when it happened: the campaign's, with the recipient's over it when it is about a recipient (up to 40 keys then), or the task's. Empty when there is none.
data[].dataobjectThe details. Their shape depends on type.
has_morebooleanWhether more are waiting. Call again with next_cursor to get them.
next_cursorstring | nullPass it as cursor in the next call, now or later. When data is empty it is the cursor you sent, so it can always be passed on. Null only when the call had no cursor and found no events: call again with since.
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/events?types=reply.received&limit=1" \
  -H "Authorization: Bearer $WON_API_KEY"
{
  "data": [
    {
      "id": "evt_5r4k2m9x7p1q8w3e",
      "type": "reply.received",
      "created_at": "2026-11-20T13:44:10.000Z",
      "campaign_id": "cmp_7p1q8w3e5r4k2m9x",
      "tenant_id": null,
      "test": false,
      "metadata": {
        "customer_id": "c_812",
        "crm_id": "lead_4471"
      },
      "data": {
        "reply_id": "rpl_1q8w3e5r4k2m9x7p",
        "recipient_id": "rcp_9x7p1q8w3e5r4k2m",
        "email": "dana.whitfield@harborline-imports.example",
        "from_email": "dana.whitfield@harborline-imports.example",
        "subject": "Re: Office chairs for Harborline Imports",
        "text": "Hi, yes, please send the price list. We are reviewing suppliers for next quarter.",
        "intent": "interested",
        "confidence": 0.7,
        "automated": false,
        "has_attachments": false
      }
    }
  ],
  "has_more": false,
  "next_cursor": "evt_5r4k2m9x7p1q8w3e",
  "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