Webhook events API — inspect and replay deliveries
List, inspect, and replay webhook deliveries and normalized events. Covers forensics via webhook-rejections, audit log entries, and the runtime snapshot endpoint.
Switchbord records every webhook delivery it receives, regardless of signature validity or parsing outcome. The webhook events API gives the operator application full visibility into that history: you can filter deliveries by type or status, inspect raw headers and body hashes, replay failed or rejected deliveries, and review the operator audit trail. These are internal endpoints intended for operator tooling and incident response.
All /internal/* endpoints are intended for the operator application and should be placed behind an authenticated session in production. Workspace scoping is enforced at the data layer.
Replay a webhook delivery. Switchbord creates a new processing attempt from the original raw body without mutating the original record. The replay is workspace-scoped and logged to the audit trail.
# Replay a failed webhook deliverycurl -X POST https://api.your-switchbord.example.com/internal/webhooks/evt_01hx.../replay \ -H "Content-Type: application/json"
Replay creates a new attempt record rather than mutating the original delivery. Deduplication keys are explicit, so replaying a delivery that was previously processed successfully will create a new outbox job with a distinct key.
Replay a specific normalized webhook event. Similar to the webhook replay endpoint but operates on the normalized event record rather than the raw delivery.
curl -X POST https://api.your-switchbord.example.com/internal/webhook-events/del_01hx.../replay \ -H "Content-Type: application/json"
List rejected or failed webhook deliveries. Use this endpoint for forensics when you need to understand why a delivery was not processed — for example, invalid signatures, parse failures, or payloads that did not match the expected envelope shape.
List operator audit log entries. Audit logs record actions taken through the operator application — including replays, message sends, and configuration changes.
Returns a full runtime snapshot: queue depths, recent outbox jobs, active campaigns, journey definitions, recent webhook events, and provider constraints. Use this for dashboards and incident triage.