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

Webhookを削除する

Webhookへのイベントの送信を止めます。無料。

Webhookへのイベントの送信を止めて削除し、待機中だった配信も破棄します。イベント自体は引き続き GET /events で読めます。無料です。

  • 課金: 無料。

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

DELETE
/webhooks/{id}

認証

apiKey
headerAuthorizationBearer <APIキー>

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

パスパラメータ

id*string

Webhook ID, such as whk_2m9x7p1q8w3e5r4k.

長さlength <= 40

ヘッダーパラメータ

Idempotency-Key?string

Any unique string. A retry with the same key returns the first response, instead of not_found for what is already gone.

長さlength <= 255

レスポンスボディ

The result.

application/json
  1. response
data*

The webhook that was deleted.

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 DELETE 'https://api.won.dev/v1/webhooks/whk_2m9x7p1q8w3e5r4k'
レスポンスの例
{  "data": {    "id": "whk_2m9x7p1q8w3e5r4k",    "deleted": true  },  "notice": null,  "usage": {    "cost": 0,    "balance": 48.08,    "replayed": false  }}

最終更新日