イベントの一覧
前回の問い合わせ以降に起きたこと:返信、バウンス、配信停止、キャンペーンの開始と終了。無料。
前回の問い合わせ以降に起きたことを、古い順に返します。返信が届いた、メールがバウンスした、キャンペーンが終わった、などです。Webhookを使わずに状況を追うには、前回の呼び出しの next_cursor を cursor として渡して呼び出します。新しいものだけが、各イベント1回ずつ返ります。ほかのリストと違い、最後のページでも next_cursor が返り、イベントが保存されている間は期限切れになりません。data が空なら何も起きていないので、数分後にもう一度問い合わせてください。イベントは30日間保存されます。種類:sender.approved、sender.rejected、sender.suspended、domain.ready、domain.failed、domain.renewal_upcoming、domain.renewal_failed、domain.released、campaign.started、campaign.paused、campaign.resumed、campaign.completed、campaign.canceled、email.sent、email.opened、email.clicked、email.bounced、reply.received、recipient.unsubscribed、task.completed。無料です。
- 課金: 無料。
テストキー(won_test_...)では、これはサンドボックスで動きます。何も送信されず、課金もされません。
apiKeyAuthorizationBearer <APIキー>Authorization: Bearer won_live_..., a key from the console.
cursor?stringOnly events after the previous call: its next_cursor, passed back unchanged.
length <= 40since?stringOnly events after this ISO 8601 time, such as 2026-11-20T13:41:02Z. For the first call, when there is no cursor yet.
length <= 40types?array<>Only these types, such as reply.received,email.bounced. Default: all.
items <= 20[]campaign_id?stringOnly events of this campaign.
length <= 40sender_id?stringOnly events of this sender: of its campaigns and their emails, and of the sender and its domains.
length <= 40limit?integerHow many to return, 1 to 100.
1 <= value <= 10050The result.
application/json- response
data*array<>The events, oldest first.
has_more*booleanWhether more are waiting. Call again with next_cursor to get them.
next_cursor*|Pass 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.
notice*|A plain sentence when there is something to know about this answer. Null otherwise.
usage*Nothing is charged here. The balance, for reference.
curl -X GET 'https://api.won.dev/v1/events?types=reply.received&limit=1'{ "data": [ { "id": "evt_5r4k2m9x7p1q8w3e", "type": "reply.received", "created_at": "2026-11-20T13:44:10.000Z", "campaign_id": "cmp_7p1q8w3e5r4k2m9x", "sender_id": "snd_4k2m9x7p1q8w3e5r", "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 }}最終更新日