# 送信者を登録する

Source: https://won.dev/ja/docs/email/senders-create

`POST https://api.won.dev/v1/email/senders`

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

- **課金：** 無料。

テストキー（`won_test_...`）では、これは[サンドボックス](/ja/docs/email#sandbox)で動きます。何も送信されず、課金もされません。

## パラメーター [#parameters]

パラメーターはJSONのリクエストボディで渡します。`POST` リクエストでは `Idempotency-Key` ヘッダーも使えます。[同じリクエストを2回送ったとき](/ja/docs/email#idempotency)を参照してください。

| パラメーター | 型 | 必須 | 説明（APIの原文） |
| --- | --- | --- | --- |
| `company_name` | string | はい | The legal or trading name of the company the emails are sent for. |
| `address` | string | はい | The company's postal address: street, city, postcode, country. Every email carries it. |
| `website` | string | はい | The company's website, such as `https://example.com`. |
| `purpose` | string | はい | What you offer and whom you will write to, in a sentence or two. It is kept with the sender. |
| `regions` | object[] | いいえ | Regions with stricter rules that you declare a lawful basis for. The declaration is recorded with the time and the key that made it. |
| `regions[].region` | `eu` \| `uk` \| `ca` | はい | `eu`, `uk` or `ca`. |
| `regions[].basis` | string | はい | Why you may write to people there, such as: legitimate interest, B2B contacts at companies that import our product category. |
| `metadata` | object | いいえ | 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. |

## レスポンス [#response]

エラーについては[エラーコード](/ja/docs/errors)を参照してください。

| フィールド | 型 | 説明（APIの原文） |
| --- | --- | --- |
| `data` | object |  |
| `data.id` | string | Sender ID, such as `snd_4k2m9x7p1q8w3e5r`. |
| `data.company_name` | string | The company the emails are sent for. Every email names it. |
| `data.address` | string | The company's postal address. Every email carries it. |
| `data.website` | string | The company's website. |
| `data.purpose` | string | What the company sends and to whom, as it was described to us. |
| `data.status` | `active` \| `rejected` \| `suspended` | `active`: it can send once it has a sending domain. `suspended` when its emails bounced or were reported as spam too often, or we stopped it; `rejected` when we did not let it send. The reason is in `review_note`. |
| `data.review_note` | string \| null | Why the sender was stopped, when it was. |
| `data.throttled` | boolean | True while it sends at half speed, because many people unsubscribed or one reported its emails as spam. A person looks at it and lifts it. |
| `data.regions` | object[] | Regions the sender declared a lawful basis for: `eu`, `uk`, `ca`. |
| `data.regions[].region` | `eu` \| `uk` \| `ca` |  |
| `data.regions[].basis` | string |  |
| `data.regions[].declared_at` | string |  |
| `data.metadata` | object | Your own keys and values, as you gave them. Empty when none were. |
| `data.test` | boolean | Made with a test key: it sends from a simulated domain, and never for real. |
| `data.created_at` | string | When it was created, as an ISO 8601 time in UTC. |
| `notice` | string \| null | A plain sentence when there is something to know about this answer. Null otherwise. |
| `usage` | object | Nothing is charged here. The balance, for reference. |
| `usage.cost` | number | What this call cost, in US dollars. |
| `usage.balance` | number | The balance left after this call, in US dollars. |
| `usage.replayed` | boolean | True when this is a repeat of a request from the last 24 hours. Repeats are free. |

## 例 [#example]

```bash
curl https://api.won.dev/v1/email/senders \
  -H "Authorization: Bearer $WON_API_KEY" \
  -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."
}'
```

```json
{
  "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
  }
}
```