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
apiKeyheader
AuthorizationBearer <clave de API>Authorization: Bearer won_live_..., a key from the console.
id*stringWebhook ID, such as whk_2m9x7p1q8w3e5r4k.
Longitud
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.
Longitud
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'Respuesta de ejemplo
{ "data": { "id": "whk_2m9x7p1q8w3e5r4k", "deleted": true }, "notice": null, "usage": { "cost": 0, "balance": 48.08, "replayed": false }}Última actualización: