# Webhookの配信履歴

Source: https://won.dev/ja/docs/email/webhooks-deliveries

`GET https://api.won.dev/v1/webhooks/{id}/deliveries`

Webhookへの最近の配信を新しい順に、あなたのサーバーの応答とともに返します。イベントが届かない理由を調べるのに使います。無料です。

- **課金：** 無料。

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

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

`id` はパスに含めます。それ以外はクエリ文字列で渡し、リストはカンマ区切りにします。

| パラメーター | 型 | 必須 | 説明（APIの原文） |
| --- | --- | --- | --- |
| `id` | string | はい | Webhook ID, such as `whk_2m9x7p1q8w3e5r4k`. |
| `limit` | integer | いいえ | How many to return, 1 to 100. Default: `25`. |

## レスポンス [#response]

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

| フィールド | 型 | 説明（APIの原文） |
| --- | --- | --- |
| `data` | object[] |  |
| `data[].event_id` | string |  |
| `data[].event_type` | string |  |
| `data[].status` | `pending` \| `delivered` \| `failed` | `pending` is waiting for its next attempt. `failed` was given up after eight. |
| `data[].attempts` | integer |  |
| `data[].response_status` | integer \| null | The HTTP status your server answered with. |
| `data[].duration_ms` | integer \| null |  |
| `data[].error` | string \| null | What went wrong, when no 2xx came. |
| `data[].next_attempt_at` | string \| null |  |
| `data[].created_at` | string |  |
| `data[].delivered_at` | string \| null |  |
| `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/webhooks/whk_2m9x7p1q8w3e5r4k/deliveries?limit=1" \
  -H "Authorization: Bearer $WON_API_KEY"
```

```json
{
  "data": [
    {
      "event_id": "evt_5r4k2m9x7p1q8w3e",
      "event_type": "reply.received",
      "status": "delivered",
      "attempts": 1,
      "response_status": 200,
      "duration_ms": 184,
      "error": null,
      "next_attempt_at": null,
      "created_at": "2026-11-20T13:44:10.000Z",
      "delivered_at": "2026-11-20T13:44:41.000Z"
    }
  ],
  "notice": null,
  "usage": {
    "cost": 0,
    "balance": 48.08,
    "replayed": false
  }
}
```