Webhooks

Push events to Slack, Teams, or any URL.

Events

Event
Trigger

budget.threshold_reached

Usage hits the configured alert percentage

budget.exceeded

Hard cap reached — requests are now blocked

budget.reset

Budget period reset (daily/monthly)

request.blocked

A request was blocked by the firewall

Configure

In the dashboard: Settings → Webhooks → Add endpoint

Or via API:

curl -X POST https://api.gatectr.com/v1/webhooks \
  -H "Authorization: Bearer $GATECTR_API_KEY" \
  -d '{
    "url": "https://your-app.com/webhooks/gatectr",
    "events": ["budget.threshold_reached", "budget.exceeded"],
    "project_id": "proj_123"
  }'

Payload

Verify webhook signature

Every request includes a X-GateCtr-Signature header. Verify it:

Slack integration

Point the webhook URL to a Slack Incoming Webhook:

GateCtr sends a formatted Slack message automatically for budget events.

Retries

Failed deliveries (non-2xx response) are retried up to 3 times with exponential backoff: 1s, 5s, 30s.

Available on

Pro plan and above.

Last updated

Was this helpful?