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

送信停止リストに追加する

アドレスや企業のドメインを送信停止リストに追加します。無料。

アドレスや企業のドメイン全体を送信停止リストに追加します。既存の顧客、競合、ほかの場所で連絡しないでほしいと言った人などです。次のメールから、実行中のものを含むすべてのキャンペーンで効きます。sender_id をつけると、その送信者のキャンペーンでだけ効きます。同じものを2回追加しても何も変わりません。1回の呼び出しで最大1,000件のアドレスと100件のドメインまで追加できます。テストキーには専用のリストがあり、本番のキャンペーンはそれに従いません。無料です。

  • 課金: 無料。

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

POST
/email/suppressions

認証

apiKey
headerAuthorizationBearer <APIキー>

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

ヘッダーパラメータ

Idempotency-Key?string

Any unique string. A retry with the same key and the same body returns the first response and is not charged again.

長さlength <= 255

リクエストボディ

application/json
  1. body
emails?array<>

Addresses never to write to, such as lee.park@coastal-office.example.

要素items <= 1000
デフォルト[]
domains?array<>

Company domains never to write to, such as coastal-office.example: every address at them is left out. Mail services such as gmail.com cannot be suppressed as a whole.

要素items <= 100
デフォルト[]
sender_id?string

Hold them back from this sender's campaigns only, such as snd_4k2m9x7p1q8w3e5r. Without it, from all of yours.

長さlength <= 40

レスポンスボディ

The result.

application/json
  1. response
data*

What became of the entries.

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/suppressions' \  -H 'Content-Type: application/json' \  -d '{  "emails": [    "lee.park@coastal-office.example"  ],  "domains": [    "brightdesk.example"  ]}'
レスポンスの例
{  "data": {    "added": 2,    "already_listed": 0,    "rejected": []  },  "notice": null,  "usage": {    "cost": 0,    "balance": 48.08,    "replayed": false  }}

最終更新日