Webhooks
Listar Webhooks
GET
/v1/users/webhooksBase URL Produção:
https://api.validapay.com.brBase URL Sandbox:
https://sandbox.validapay.com.brAutenticação
bearerAuthorizationstring · header · obrigatório
Envie no header:
Authorization: Bearer {{token}}Lista todos os endereços de notificação cadastrados na conta.
Listar webhooks
const url = 'https://sandbox.validapay.com.br/v1/users/webhooks';
const options = {
method: 'GET',
headers: {
'Authorization': 'Bearer {{token}}'
},
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Response Examples
200200
[
{
"webhookId": "wh_xxx",
"url": "https://meusite.com/webhook",
"events": [],
"status": "active"
}
]