テストメールを送る
ほかの誰にも届く前に、ステップを受信者に届くとおりの形で自分の受信箱に送ります。無料。
キャンペーンのステップを今すぐ自分のチームの人に送り、受信者と同じように読めるようにします。送信者のメールボックスから送信者の名前で、フッターと配信停止リンクつきで届きます(リンクを開くとページが表示されますが、何も記録されません)。プレースホルダーには受信者の情報が入ります。recipient_idで指定した人、指定がなければキャンペーンの最初の人、まだ誰もいなければフォールバックの値です。フォローアップにはRe:の件名がつき、前のメールが下に引用されます。下書きでも使えます。送信者のドメインがその日に送れる数に含まれ、1つのアカウントが送れるテストメールは1日20通(daily_limit_reached)、1分に5通(rate_limited)までです。送信者に送信ドメインがない間はno_domainsで失敗します。テストキーでは何も送られません。simulatedがtrueになり、textが送られるはずだった内容です。無料です。
- 課金: 呼び出しは無料で、メールも無料です。メールは送信者の送信ドメインから送られ、ドメインは月ごとに支払います。送信ドメインを参照してください。
テストキー(won_test_...)では、これはサンドボックスで動きます。何も送信されず、課金もされません。
apiKeyAuthorizationBearer <APIキー>Authorization: Bearer won_live_..., a key from the console.
id*stringCampaign ID, such as cmp_7p1q8w3e5r4k2m9x.
length <= 40Idempotency-Key?stringAny unique string. A retry with the same key and the same body returns the first response and is not charged again.
length <= 255application/json- body
to?stringWho gets it: the address someone of your account signs in with. Leave it out to send it to the account's owner.
length <= 254step?integerThe step, counted from 1.
1 <= value <= 201version?integerThe version of the step, counted from 1.
1 <= value <= 201recipient_id?stringThe recipient whose details fill in the placeholders, such as rcp_9x7p1q8w3e5r4k2m. They get nothing.
length <= 40The result.
application/json- response
data*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 POST 'https://api.won.dev/v1/email/campaigns/cmp_7p1q8w3e5r4k2m9x/test' \ -H 'Content-Type: application/json' \ -d '{ "id": "cmp_7p1q8w3e5r4k2m9x", "to": "jamie@northwind-seating.example", "step": 1, "version": 1}'{ "data": { "id": "tst_3e5r4k2m9x7p", "campaign_id": "cmp_7p1q8w3e5r4k2m9x", "from": "alex@northwindseating.example", "to": "jamie@northwind-seating.example", "step": 1, "version": 1, "recipient_id": "rcp_9x7p1q8w3e5r4k2m", "subject": "Office chairs for Harborline Imports", "text": "Hi Dana,\n\nI saw that Harborline Imports imports office seating. We make mesh task chairs in Leeds and ship to the US in four weeks.\n\nWould a price list be useful?\n\nAlex\n\nNorthwind Seating Ltd, 18 Harbour Road, Leeds LS1 4AP, United Kingdom\nNot relevant? Unsubscribe: https://won.dev/e/u/9k2m4x", "simulated": false, "sent_at": "2026-11-18T13:40:02.000Z" }, "notice": null, "usage": { "cost": 0, "balance": 48.08, "replayed": false }}最終更新日