Available event types
The following event types are available for webhook subscriptions:workflow.started- A workflow has started executionworkflow.completed- A workflow has completed successfullyworkflow.failed- A workflow has failedworkflow.step.started- A workflow step has startedworkflow.step.completed- A workflow step has completedworkflow.step.failed- A workflow step has failed
Webhook payload
When an event occurs, your webhook URL will receive a POST request with the following payload structure:Security
If you provide asecret when creating a webhook, all requests will include an X-Webhook-Signature header containing an HMAC-SHA256 signature of the request body. Verify this signature to ensure requests are authentic.
The webhook subscription model
The webhook subscription model contains information about a webhook configuration.Properties
Unique identifier for the webhook subscription.
Human-readable name for the webhook.
The target URL where webhook payloads will be delivered.
List of event types this webhook is subscribed to.
Whether the webhook is currently active.
When the webhook subscription was created.
When the webhook subscription was last updated.
Create webhook subscription
POST /webhooks
This endpoint allows you to create a new webhook subscription for your organization.
Required attributes
A human-readable name for the webhook (max 255 characters).
The target URL for webhook delivery (max 2048 characters). Must be HTTPS.
List of event types to subscribe to.
Optional attributes
A secret key for HMAC-SHA256 signature verification (max 255 characters).
Custom headers to include in webhook requests.
Organization identifier (header). If not provided, uses your default organization.
Response
List webhook subscriptions
GET /webhooks
This endpoint returns all webhook subscriptions for your organization.
Optional attributes
Organization identifier (header). If not provided, uses your default organization.
Response
Get webhook subscription
GET /webhooks/:subscription_id
This endpoint returns details of a specific webhook subscription.
Required attributes
The unique identifier for the webhook subscription.
Optional attributes
Organization identifier (header). If not provided, uses your default organization.
Response
Update webhook subscription
PATCH /webhooks/:subscription_id
This endpoint allows you to update an existing webhook subscription. All fields are optional - only provided fields will be updated.
Required attributes
The unique identifier for the webhook subscription.
Optional attributes
A new name for the webhook.
A new target URL for webhook delivery.
Updated list of event types to subscribe to.
A new secret key for signature verification.
Updated custom headers.
Enable or disable the webhook.
Organization identifier (header). If not provided, uses your default organization.
Response
Delete webhook subscription
DELETE /webhooks/:subscription_id
This endpoint deletes a webhook subscription. This action cannot be undone.
Required attributes
The unique identifier for the webhook subscription to delete.
Optional attributes
Organization identifier (header). If not provided, uses your default organization.
Response
List webhook delivery logs
GET /webhooks/:subscription_id/logs
This endpoint returns delivery logs for a specific webhook subscription, showing all delivery attempts including retries.
Required attributes
The unique identifier for the webhook subscription.
Optional attributes
Maximum number of logs to return (default: 50).
Number of logs to skip for pagination (default: 0).
Organization identifier (header). If not provided, uses your default organization.
Response
List all delivery logs
GET /webhooks/logs/all
This endpoint returns all webhook delivery logs for your organization, optionally filtered by event type.
Optional attributes
Filter logs by event type.
Maximum number of logs to return (default: 50).
Number of logs to skip for pagination (default: 0).
Organization identifier (header). If not provided, uses your default organization.
Response
Test webhook
POST /webhooks/:subscription_id/test
This endpoint sends a test event to a webhook subscription to verify your configuration. A test workflow.completed event will be sent, and the delivery will appear in the subscription’s logs.
Required attributes
The unique identifier for the webhook subscription to test.
Optional attributes
Organization identifier (header). If not provided, uses your default organization.
Response