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

送信者を登録する

どの会社のためのメールかを登録します。送信ドメインがあれば送信できます。無料。

メールの送り主を登録します。すべてのメールの末尾には、あなたの会社名、住所、配信停止リンクが入ります。これは法律で求められているもので、外せません。メールを送る会社ごとに送信者を1つ登録してください。代行会社、複数の会社のために動くエージェント、自社の顧客のために送るプラットフォームは、それぞれの会社を独自の送信者として登録し、metadata で見分けます。送信者は、その送信者のためだけに買った送信ドメインから送ります(POST /email/domains)。受信者、配信停止、送信の評価はその送信者だけのものなので、ある送信者のメールがほかの送信者の受信トレイへの到達を損なうことはありません。EU、英国、カナダの人に送るには、regions で法的根拠を申告してください。申告がなければ、それらの地域のアドレスは除外されます。無料です。

  • 課金: 無料。

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

POST
/email/senders

認証

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
company_name*string

The legal or trading name of the company the emails are sent for.

長さ2 <= length <= 120
address*string

The company's postal address: street, city, postcode, country. Every email carries it.

長さ10 <= length <= 300
website*string

The company's website, such as https://example.com.

長さlength <= 253
purpose*string

What you offer and whom you will write to, in a sentence or two. It is kept with the sender.

長さ20 <= length <= 1000
regions?array<>

Regions with stricter rules that you declare a lawful basis for. The declaration is recorded with the time and the key that made it.

要素items <= 3
デフォルト[]
metadata?

Your own keys and values, such as {"customer_id": "c_812"}: up to 20 keys of at most 40 characters, each value a string of at most 500. Such as the ID of your customer it writes for. Returned with the sender, and with the events about its domains. GET /email/senders finds senders by it.

レスポンスボディ

The result.

application/json
  1. 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/senders' \  -H 'Content-Type: application/json' \  -d '{  "company_name": "Northwind Seating Ltd",  "address": "18 Harbour Road, Leeds LS1 4AP, United Kingdom",  "website": "https://northwind-seating.example",  "purpose": "We make office chairs and write to furniture importers and distributors about our new catalogue."}'
レスポンスの例
{  "data": {    "id": "snd_4k2m9x7p1q8w3e5r",    "company_name": "Northwind Seating Ltd",    "address": "18 Harbour Road, Leeds LS1 4AP, United Kingdom",    "website": "https://northwind-seating.example",    "purpose": "We make office chairs and write to furniture importers and distributors about our new catalogue.",    "status": "active",    "review_note": null,    "throttled": false,    "regions": [],    "metadata": {      "customer_id": "c_812"    },    "test": false,    "created_at": "2026-11-17T09:12:44.000Z"  },  "notice": null,  "usage": {    "cost": 0,    "balance": 48.08,    "replayed": false  }}

最終更新日