受信者を追加する
キャンペーンに最大1,000人を追加します。すべてのアドレスをチェックし、除外したものとその理由を返します。無料。
キャンペーンが終了する前ならいつでも、最大1,000人を追加できます。各アドレスは呼び出しの中でチェックされ(形式、送信停止リスト、その人がすでにあなたの実行中のキャンペーンに入っていないか、地域のルール、プレースホルダーの値の不足)、除外したすべてのアドレスを理由つきで返します。受け入れたアドレスは、続けてメールボックスが実在するかを確認します。キャンペーンの最初の50件は数分以内に、残りはそれぞれ最初のメールの約1日前に確認するので、長いリストが何か月も前に確認されることはありません。確認できなかったものは invalid になります。同じリストを2回送っても何も変わりません。受信者には、どのエンドポイントがメールアドレスつきで返した人でも指定できます。アドレスの代わりに、その人の per_ IDを contact_id として渡してください。無料です。
- 課金: 呼び出しは無料で、メールも無料です。メールは送信者の送信ドメインから送られ、ドメインは月ごとに支払います。送信ドメインを参照してください。
テストキー(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
recipients*array<>Up to 1000 people to add. Each needs email or contact_id.
1 <= items <= 1000dry_run?booleanOnly check the list and say what would happen. Nothing is added.
falseThe result.
application/json- response
data*What became of each address.
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/recipients' \ -H 'Content-Type: application/json' \ -d '{ "id": "cmp_7p1q8w3e5r4k2m9x", "recipients": [ { "email": "sam.ortiz@brightdesk.example", "first_name": "Sam", "company": "Brightdesk" }, { "email": "noreply@brightdesk.example", "company": "Brightdesk" } ]}'{ "data": { "dry_run": false, "accepted": 1, "duplicates": 0, "rejected": 1, "results": [ { "email": "noreply@brightdesk.example", "status": "rejected", "recipient_id": null, "reason": "blocked_mailbox", "message": "This mailbox is not read by a person (such as noreply@ or postmaster@).", "warnings": [] } ] }, "notice": null, "usage": { "cost": 0, "balance": 48.08, "replayed": false }}最終更新日