Pular para o conteúdo
Won.dev
DocumentaçãoReferência da API
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
/webhooks/{id}

Autenticação

apiKey
headerAuthorizationBearer <chave de API>

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

Parâmetros de caminho

id*string

Webhook ID, such as whk_2m9x7p1q8w3e5r4k.

Tamanholength <= 40

Parâmetros de cabeçalho

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.

Tamanholength <= 255

Corpo da resposta

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.

Requisição de exemplo
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