Reenviar um evento
curl --request POST \
--url https://api.validator.blubash.io/v1/webhook-events/{id}/redeliver \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.validator.blubash.io/v1/webhook-events/{id}/redeliver', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.validator.blubash.io/v1/webhook-events/{id}/redeliver"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"event_id": "evt_01JF3W0N2Q4S6V8X0Z2B4D6F8H",
"id": "whd_01JF3X2Q4S6T8W0Y2A4C6E8G0J",
"status": "pending"
}Webhooks
Reenviar um evento
Coloca na fila uma nova entrega do evento, para agora. Se já existe uma entrega pendente do evento, devolve essa. Exige um endpoint habilitado (senão 409 webhook_endpoint_disabled). Uma reentrega pode chegar depois de eventos mais novos: trate pelo id do evento.
Escopo exigido: webhooks. Bloqueada para workspace suspenso (403 workspace_suspended).
POST
/
v1
/
webhook-events
/
{id}
/
redeliver
Reenviar um evento
curl --request POST \
--url https://api.validator.blubash.io/v1/webhook-events/{id}/redeliver \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.validator.blubash.io/v1/webhook-events/{id}/redeliver', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.validator.blubash.io/v1/webhook-events/{id}/redeliver"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"event_id": "evt_01JF3W0N2Q4S6V8X0Z2B4D6F8H",
"id": "whd_01JF3X2Q4S6T8W0Y2A4C6E8G0J",
"status": "pending"
}