<aside> <img src="/icons/map-pin_blue.svg" alt="/icons/map-pin_blue.svg" width="40px" />
</aside>
Este endpoint permite registrar uma nova URL de Webhook associada à sua organização. Uma vez registrada, todas as mudanças de status das requisições de antecipação serão notificadas para o endpoint configurado.
https://{BASE_URL}/webhook/register_webhook
Content-Type: application/jsonVersion: v1.2Request:
curl --location 'https://{BASE_URL}/webhook/register_webhook' \\
--header 'Version: v1.2' \\
--header 'Content-Type: application/json' \\
--header 'Authorization: Bearer {JWT_TOKEN}' \\
--data '{
"webhook_url": "<https://meuservidor.com/webhook>"
}'
Em caso de sucesso, será retornado um JSON confirmando o cadastro da webhook:
Response OK:
{
"message": "Webhook registered successfully"
}