本文へスキップ
Won.dev
ドキュメントAPIリファレンス
コールドメールAPI

送信済みメールの一覧

送ったメールを、宛先、ステップ、送信元のアドレスつきで返します。無料。

送ったメールを新しい順に返します。宛先、ステップとバージョン、バウンスしたかどうか、送信元のアドレスです。開封とクリックは、それらを計測するキャンペーンでだけ数えます。無料です。

  • 課金: 無料。

テストキー(won_test_...)では、これはサンドボックスで動きます。何も送信されず、課金もされません。

GET
/email/messages

認証

apiKey
headerAuthorizationBearer <APIキー>

Authorization: Bearer won_live_..., a key from the console.

クエリパラメータ

campaign_id?string

Only this campaign, such as cmp_7p1q8w3e5r4k2m9x.

長さlength <= 40
recipient_id?string

Only emails to this recipient.

長さlength <= 40
status?string

Only emails in this status.

取りうる値"sending""sent""bounced""failed""skipped"
limit?integer

How many to return, 1 to 100.

範囲1 <= value <= 100
デフォルト25
cursor?string

To get the next page, pass next_cursor of the previous response back unchanged, with the same parameters.

長さlength <= 200

レスポンスボディ

The result.

application/json
  1. response
data*array<>

The emails of this page.

has_more*boolean

Whether more follow this page.

next_cursor*|

Pass it as cursor to get the next page. Null on the last page.

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/email/messages?campaign_id=cmp_7p1q8w3e5r4k2m9x&limit=1'
レスポンスの例
{  "data": [    {      "id": "msg_3e5r4k2m9x7p1q8w",      "campaign_id": "cmp_7p1q8w3e5r4k2m9x",      "recipient_id": "rcp_9x7p1q8w3e5r4k2m",      "from": "alex@northwindseating.example",      "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,      "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  }}

最終更新日