コールドメールAPI
Webhookを削除する
Webhookへのイベントの送信を止めます。無料。
Webhookへのイベントの送信を止めて削除し、待機中だった配信も破棄します。イベント自体は引き続き GET /events で読めます。無料です。
- 課金: 無料。
テストキー(won_test_...)では、これはサンドボックスで動きます。何も送信されず、課金もされません。
DELETE
apiKeyheader
AuthorizationBearer <APIキー>Authorization: Bearer won_live_..., a key from the console.
id*stringWebhook ID, such as whk_2m9x7p1q8w3e5r4k.
長さ
length <= 40Idempotency-Key?stringAny unique string. A retry with the same key returns the first response, instead of not_found for what is already gone.
長さ
length <= 255The result.
application/json- 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 }}最終更新日