GET
/webhookswebhooks:manage
Listar webhooks
curl -X GET "https://crm.vdgestaobranding.com/api/v1/webhooks" \
-H "Authorization: Bearer $VDCRM_API_KEY"https://crm.vdgestaobranding.com/api/v1A documentação fica em developers.vdgestaobranding.com, mas todas as chamadas vão para crm.vdgestaobranding.com/api/v1.
/webhookscurl -X GET "https://crm.vdgestaobranding.com/api/v1/webhooks" \
-H "Authorization: Bearer $VDCRM_API_KEY"/webhooksO segredo de assinatura (secret) é exibido só nesta resposta.
curl -X POST "https://crm.vdgestaobranding.com/api/v1/webhooks" \
-H "Authorization: Bearer $VDCRM_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"url": "https://minha-api.com/vdcrm",
"events": [
"message.received",
"message.status"
]
}'{
"id": "w1…",
"url": "https://minha-api.com/vdcrm",
"events": [
"message.received",
"message.status"
],
"secret": "whsec_…"
}/webhooks/{id}curl -X PATCH "https://crm.vdgestaobranding.com/api/v1/webhooks/{id}" \
-H "Authorization: Bearer $VDCRM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"active": false
}'/webhooks/{id}curl -X DELETE "https://crm.vdgestaobranding.com/api/v1/webhooks/{id}" \
-H "Authorization: Bearer $VDCRM_API_KEY"/webhooks/{id}/testcurl -X POST "https://crm.vdgestaobranding.com/api/v1/webhooks/{id}/test" \
-H "Authorization: Bearer $VDCRM_API_KEY"{
"delivery_id": "d1…",
"delivered": true,
"status_code": 200
}/webhooks/{id}/deliverieslimit — Itens por página (1–100, padrão 25).cursor — Valor de next_cursor da página anterior.curl -X GET "https://crm.vdgestaobranding.com/api/v1/webhooks/{id}/deliveries" \
-H "Authorization: Bearer $VDCRM_API_KEY"/webhook-deliveries/{id}/redelivercurl -X POST "https://crm.vdgestaobranding.com/api/v1/webhook-deliveries/{id}/redeliver" \
-H "Authorization: Bearer $VDCRM_API_KEY"