API de cold mail
Excluir um webhook
Para de enviar eventos para um webhook. Grátis.
Para de enviar eventos para um webhook e o exclui, junto com as entregas que ainda estavam esperando. Os eventos em si continuam disponíveis em GET /events. Grátis.
- Cobrança: Grátis.
Uma chave de teste (won_test_...) roda isto no sandbox: nada é enviado e nada é cobrado.
DELETE
apiKeyheader
AuthorizationBearer <chave de API>Authorization: Bearer won_live_..., a key from the console.
id*stringWebhook ID, such as whk_2m9x7p1q8w3e5r4k.
Tamanho
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.
Tamanho
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'Resposta de exemplo
{ "data": { "id": "whk_2m9x7p1q8w3e5r4k", "deleted": true }, "notice": null, "usage": { "cost": 0, "balance": 48.08, "replayed": false }}Última atualização em