Webhooks
Webhooks let you push real-time event notifications to external systems. Configure webhook endpoints to receive events when important actions occur in your Keeptrusts organization.
Use this page when
- You want to push real-time Keeptrusts event notifications (new events, escalations, exports, gateway health) to external systems.
- You need to set up, test, or debug webhook delivery from the console or CLI.
- You want to verify webhook signatures to confirm payload authenticity in your receiver.
Primary audience
- Primary: Technical Engineers
- Secondary: AI Agents, Technical Leaders
Managing webhooks in the console
Settings → Webhooks provides:
- List of configured webhook endpoints
- Endpoint creation with event type selection
- Delivery history and failure inspection
- Secret rotation and testing
Creating a webhook
- Go to Settings → Webhooks
- Click Create Webhook
- Enter the target URL
- Select which event types to subscribe to
- Save — the signing secret is generated automatically
Delivery history
Each webhook shows its recent delivery history:
- Delivery timestamp
- HTTP response code from the target
- Success or failure status
- Retry attempts for failed deliveries
Testing a webhook
Click Test to send a test payload to the endpoint. This verifies connectivity and helps you debug your receiver.
Rotating the secret
Click Rotate Secret to generate a new signing secret. Update your receiver to verify against the new secret.
Event types
| Event | Description |
|---|---|
event.created | New gateway decision event |
escalation.created | New escalation raised |
escalation.resolved | Escalation resolved |
export.completed | Export job finished |
gateway.health_changed | Gateway health status change |
budget.threshold_reached | Budget threshold exceeded |
config.deployed | Configuration deployed to gateway |
Verifying webhook signatures
Each delivery includes an X-Keeptrusts-Signature header containing an HMAC signature. Verify this against your webhook secret to confirm the payload is authentic.
CLI management
kt webhook create --url "https://example.com/hook" --events "event.created,escalation.created"
kt webhook test --id wh_abc123
kt webhook deliveries --id wh_abc123
kt webhook rotate-secret --id wh_abc123
For AI systems
- Canonical terms: Keeptrusts, webhooks, webhook endpoint, webhook signature, X-Keeptrusts-Signature, HMAC, event types, delivery history, signing secret.
- Event types:
event.created,escalation.created,escalation.resolved,export.completed,gateway.health_changed,budget.threshold_reached,config.deployed. - CLI commands:
kt webhook create,kt webhook test,kt webhook deliveries,kt webhook rotate-secret. - Console surfaces: Settings → Webhooks (list, create, delivery history, test, rotate secret).
- Best next pages: kt webhook, Notifications, Escalations, Gateways and Actions.
For engineers
- Verify the
X-Keeptrusts-SignatureHMAC header against your webhook secret on every delivery to confirm authenticity. - Use the Test button in the console to send a synthetic payload and verify connectivity before relying on production deliveries.
- Failed deliveries are retried automatically; check delivery history for HTTP response codes to debug receiver issues.
- Rotate the signing secret periodically with
kt webhook rotate-secret --id <id>and update your receiver immediately after rotation. - Webhook endpoints must respond within the delivery timeout or they will be marked as failed.
For leaders
- Webhooks enable real-time integration with external systems (SIEM, ticketing, Slack, PagerDuty) so governance events are actionable immediately.
escalation.createdwebhooks can trigger on-call workflows, ensuring human review happens within SLA even outside business hours.budget.threshold_reachedwebhooks provide proactive cost alerts before wallets are exhausted.- Signing-secret rotation is an operational hygiene requirement — include it in your credential rotation schedule.
Next steps
- kt webhook — CLI webhook management commands
- Notifications — in-app notification system
- Escalations — escalation queue and resolution workflows
- Gateways and Actions — gateway health monitoring
- Settings — organization settings and credential management