Configurar o endpoint de webhook
curl --request PUT \
--url https://api.validator.blubash.io/v1/webhook-endpoint \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://exemplo.com.br/webhooks/validacao",
"enabled": true
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://exemplo.com.br/webhooks/validacao', enabled: true})
};
fetch('https://api.validator.blubash.io/v1/webhook-endpoint', 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-endpoint"
payload = {
"url": "https://exemplo.com.br/webhooks/validacao",
"enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"created_at": "2026-12-01T12:00:00.000Z",
"enabled": true,
"url": "https://exemplo.com.br/webhooks/validacao",
"secret": "whsec_xY9…"
}Webhooks
Configurar o endpoint de webhook
Cria ou atualiza o endpoint (um por workspace). Na criação, a resposta traz secret (whsec_…), o segredo de assinatura, UMA única vez: guarde-o. Atualizações mudam url e, se enviado, enabled, e mantêm o segredo (que não volta na resposta).
Escopo exigido: webhooks. Bloqueada para workspace suspenso (403 workspace_suspended).
PUT
/
v1
/
webhook-endpoint
Configurar o endpoint de webhook
curl --request PUT \
--url https://api.validator.blubash.io/v1/webhook-endpoint \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://exemplo.com.br/webhooks/validacao",
"enabled": true
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://exemplo.com.br/webhooks/validacao', enabled: true})
};
fetch('https://api.validator.blubash.io/v1/webhook-endpoint', 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-endpoint"
payload = {
"url": "https://exemplo.com.br/webhooks/validacao",
"enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"created_at": "2026-12-01T12:00:00.000Z",
"enabled": true,
"url": "https://exemplo.com.br/webhooks/validacao",
"secret": "whsec_xY9…"
}Authorizations
Body
application/json
Response
O endpoint; com secret só quando acabou de ser criado.