Webhooks allow you to receive real-time HTTP notifications when events occur in Formbricks, such as new survey responses.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/formbricks/formbricks/llms.txt
Use this file to discover all available pages before exploring further.
The Webhook Object
Attributes
Unique identifier for the webhook
ISO 8601 timestamp of when the webhook was created
ISO 8601 timestamp of when the webhook was last updated
The environment this webhook belongs to
The URL where webhook events will be sent
Array of event types that trigger this webhook
Optional array of survey IDs to filter events (empty = all surveys)
Optional friendly name for the webhook
Source of the webhook (e.g., “user”, “zapier”)
List Webhooks
Retrieve all webhooks for your environments.Response
Retrieve a Webhook
Get a specific webhook by ID.Path Parameters
The ID of the webhook to retrieve
Create a Webhook
Create a new webhook to receive event notifications.Body Parameters
The environment ID for this webhook
The URL where webhook events will be sent (must be HTTPS)
Array of event types:
responseCreated, responseUpdated, responseFinishedFriendly name for the webhook
Optional array of survey IDs to filter events. Empty array means all surveys.
Source identifier (e.g., “user”, “zapier”, “make”)
Response
Returns the created webhook object.Delete a Webhook
Delete a webhook to stop receiving notifications.Path Parameters
The ID of the webhook to delete
Webhook Events
Available Triggers
Event Payload
When an event occurs, Formbricks sends a POST request to your webhook URL:Webhook Endpoint Requirements
HTTPS Only
Webhook URLs must use HTTPS (except for localhost during development).Response Time
Your endpoint should respond within 5 seconds. Long-running operations should be queued.Status Codes
Return a2xx status code to acknowledge receipt. Any other status code will be treated as a failure.
Example Endpoint
Retry Logic
Formbricks implements automatic retries for failed webhook deliveries:- Retries with exponential backoff
- Up to 3 retry attempts
- Webhooks are marked as failed after all retries are exhausted
Security
Verify Webhook Source
To verify webhooks are from Formbricks:- IP Allowlist: Restrict webhook endpoint to Formbricks IP addresses
- Shared Secret: Include a secret token in the webhook URL query string
- Validate Payload: Verify the payload structure matches expected format
Example with Secret Token
Testing Webhooks
Use tools like ngrok or webhook.site to test webhooks during development:Filtering by Survey
To receive events only for specific surveys, set thesurveyIds array:
surveyIds empty or omit it to receive events for all surveys.