Webhooks API Guide
Learn how to manage webhooks using the Wacht Rust SDK.Prerequisites
Before using any API methods, you must initialize the SDK:Webhook Apps
Webhook apps are containers for your webhook endpoints and event subscriptions.List Webhook Apps
Get all webhook apps in your deployment.Get Webhook App
Retrieve a specific webhook app by name.Create Webhook App
Create a new webhook app with event definitions.Update Webhook App
Modify an existing webhook app.Delete Webhook App
Remove a webhook app.Rotate Webhook Secret
Rotate the signing secret for a webhook app.Get Webhook Events
Get all events defined for a webhook app.Webhook Endpoints
Endpoints are URLs where webhook events are delivered.List Webhook Endpoints
Get all endpoints for a webhook app.Create Webhook Endpoint
Create a new endpoint for a webhook app.Update Webhook Endpoint
Modify an existing endpoint.Delete Webhook Endpoint
Remove a webhook endpoint.Reactivate Webhook Endpoint
Reactivate an auto-disabled endpoint.Test Webhook Endpoint
Test a webhook endpoint with a sample event.Triggering Events
Trigger Webhook Event
Manually trigger a webhook event for testing or integrations.Trigger Event with Filter Context
Webhook Deliveries
Monitor and manage webhook delivery history.List Webhook Deliveries
Get webhook delivery history for an app.Get Webhook Delivery Details
Retrieve full details including payload for a specific delivery.Replay Webhook Deliveries
Replay failed or filtered webhook deliveries.Webhook Analytics
Get Webhook Stats
Get statistics for a webhook app.Get Webhook Timeseries
Get time-series data for webhook metrics.Get Webhook Analytics
Get detailed analytics for webhook performance.Builder Methods
ListWebhookAppsBuilder
No additional methods beyondsend()
CreateWebhookAppBuilder
description(&str)- Set app descriptionis_active(bool)- Set active statusevents(Vec<WebhookEventDefinition>)- Set all eventsadd_event(WebhookEventDefinition)- Add a single event
UpdateWebhookAppBuilder
description(Option<String>)- Update descriptionis_active(Option<bool>)- Update active status
ListWebhookEndpointsBuilder
limit(i32)- Set maximum resultsoffset(i32)- Set offset for paginationinclude_inactive(bool)- Include inactive endpoints
CreateWebhookEndpointBuilder
description(Option<String>)- Set descriptionheaders(Option<Value>)- Set HTTP headerssubscriptions(Vec<EventSubscription>)- Set event subscriptionsmax_retries(i32)- Set maximum retry attemptstimeout_seconds(i32)- Set request timeout
TriggerWebhookEventBuilder
filter_context(Value)- Set filter context for event
ListWebhookDeliveriesBuilder
endpoint_id(Option<String>)- Filter by endpointevent_name(Option<String>)- Filter by event namestatus(Option<String>)- Filter by statuslimit(i32)- Set maximum resultsoffset(i32)- Set offset for paginationsince(Option<String>)- Filter by start dateuntil(Option<String>)- Filter by end date
ReplayWebhookDeliveriesBuilder
endpoint_id(Option<String>)- Filter by endpointevent_name(Option<String>)- Filter by event namestatus(Option<String>)- Filter by status
GetWebhookTimeseriesBuilder
endpoint_id(Option<i64>)- Filter by endpointstart_date(Option<String>)- Set start dateend_date(Option<String>)- Set end date
GetWebhookAnalyticsBuilder
endpoint_id(Option<i64>)- Filter by endpointstart_date(Option<String>)- Set start dateend_date(Option<String>)- Set end date
Error Handling
All SDK methods return aResult<T, Error>:
Related
- Installation - SDK setup
- Users Guide - User management events
- Organizations Guide - Organization events
- API Reference - Backend API - Full API docs
