Ir al contenido
Won.dev
DocumentaciónReferencia de la API
API de correo en frío

Eliminar un webhook

Deja de enviar eventos a un webhook. Gratis.

Deja de enviar eventos a un webhook y lo elimina, junto con las entregas que seguían en espera. Los eventos en sí se siguen pudiendo leer con GET /events. Gratis.

  • Cobro: Gratis.

Una clave de prueba (won_test_...) ejecuta esto en el sandbox: no se envía ni se cobra nada.

DELETE
/webhooks/{id}

Autenticación

apiKey
headerAuthorizationBearer <clave de API>

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

Parámetros de ruta

id*string

Webhook ID, such as whk_2m9x7p1q8w3e5r4k.

Longitudlength <= 40

Parámetros de encabezado

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.

Longitudlength <= 255

Cuerpo de la respuesta

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.

Solicitud de ejemplo
curl -X DELETE 'https://api.won.dev/v1/webhooks/whk_2m9x7p1q8w3e5r4k'
Respuesta de ejemplo
{  "data": {    "id": "whk_2m9x7p1q8w3e5r4k",    "deleted": true  },  "notice": null,  "usage": {    "cost": 0,    "balance": 48.08,    "replayed": false  }}

Última actualización: