# メールアドレスを検証

Source: https://won.dev/ja/docs/enrich/email-verify

`POST https://api.won.dev/v1/enrich/email/verify`

メールを一切送らずに、メールアドレスがメールを受信できるかを確認します。`verified`（メールボックスが存在する）、`risky`（ドメインがどのアドレスも受け付けるため、このアドレスは確認できない）、`invalid`（送らないでください）、`unknown` のいずれかです。Webメールのアドレスかどうか、`info@` のような共有メールボックスかどうかも示します。判定が出れば $0.003、`unknown` は無料です。ほかで入手したアドレスは、キャンペーンの前に確認してください。ほかのエンドポイントが返すメールアドレスは、すでに検証済みです。

- **課金：** `email_verification` $0.003：1つのアドレスに対する判定1回。`verified`、`risky`、`invalid` のいずれかです。
- **モード：** `proxy` ([各モードの意味](/ja/docs/trade#modes))

テストキー（`won_test_...`）でこのリクエストを送ると、同じサンプル企業とサンプル人物が無料で返ります。

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

パラメーターはJSONのリクエストボディで渡します。`POST` リクエストでは `Idempotency-Key` ヘッダーも使えます。[冪等性](/ja/docs/idempotency)を参照してください。

| パラメーター | 型 | 必須 | 説明（APIの原文） |
| --- | --- | --- | --- |
| `email` | string | はい | The address to check, such as `jane@example.com`. |
| `max_cost` | number | いいえ | Spending cap for this call in US dollars. If the call could cost more, it fails with `budget_exceeded` before anything is charged. |
| `dry_run` | boolean | いいえ | If true, only return the maximum cost of this call. Nothing runs, nothing is charged. Default: `false`. |

## レスポンス [#response]

`dry_run: true` を指定すると何も実行されず、`data` にはその呼び出しの最大費用だけが入ります。[ドライラン](/ja/docs/responses#dry-run)を参照してください。エラーについては[エラーコード](/ja/docs/errors)を参照してください。

| フィールド | 型 | 説明（APIの原文） |
| --- | --- | --- |
| `data` | object | The verdict on the address. |
| `data.email` | string | The address, in lower case. |
| `data.status` | `verified` \| `risky` \| `invalid` \| `unknown` | `verified`: the mailbox exists. `risky`: the domain accepts every address, so this one cannot be confirmed. `invalid`: the mailbox does not exist; do not send. `unknown`: the mail server gave no answer; nothing is charged. |
| `data.webmail` | boolean | The address is at a webmail provider such as `gmail.com`, not at a company. |
| `data.shared_mailbox` | boolean | The address is a team's, such as `info@` or `sales@`, not one person's. |
| `query` | object | The request as it was understood: country names as codes, the default dates filled in. |
| `notice` | string \| null | A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise. |
| `usage` | object | What this call was charged, and the balance left. |
| `usage.unit` | `person_record` \| `person_profile` \| `person_email` \| `person_phone` \| `email_verification` \| `company_listing` \| `company_record` \| `company_channels` \| `company_technologies` \| `company_funding` \| `company_news` \| `company_lookalikes` \| `job_posting` | What is counted. |
| `usage.records` | integer | How many were returned and charged. |
| `usage.already_paid` | integer | How many more were returned for free, because this organization paid for them in the last 30 days. |
| `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/enrich/email/verify \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "jordan.lee@northfield-home.example"
}'
```

```json
{
  "data": {
    "email": "jordan.lee@northfield-home.example",
    "status": "verified",
    "webmail": false,
    "shared_mailbox": false
  },
  "query": {
    "email": "jordan.lee@northfield-home.example"
  },
  "notice": null,
  "usage": {
    "unit": "email_verification",
    "records": 1,
    "already_paid": 0,
    "cost": 0.003,
    "balance": 48.997,
    "replayed": false
  }
}
```