Setup
Configure a webhook URL in the Console under Settings > Webhook Notifications. Membrane sends a POST request to your URL whenever a matching event occurs.Event Types
Connection Events
| Event | When it fires |
|---|---|
connection.created | A new connection is established (OAuth completed, API key saved) |
connection.disconnected | A connection lost access (token expired, credentials revoked) |
connection.reconnected | A previously disconnected connection is restored |
connection.deleted | A connection is archived |
Flow Run Events
| Event | When it fires |
|---|---|
flowRun.queued | A flow run is queued for execution |
flowRun.started | A flow run begins executing |
flowRun.completed | A flow run finishes successfully |
flowRun.failed | A flow run fails with an error |
flowRun.stopped | A flow run is manually stopped |
Alert Events
| Event | When it fires |
|---|---|
alert.created | An alert is created or becomes ongoing |
Payloads
Each webhook POST body contains aneventType field and a data object. The shape of data depends on the event category.
Connection events
Flow run events
flowRun.failed event includes an errors array on the flow run object with details about what went wrong.
Alert events
Handling Webhooks
Example Express.js endpoint:Retry Behavior
If your endpoint returns a non-2xx status code, Membrane retries with exponential backoff.See Also
- Connections — connection lifecycle and management
- Events — data events from external apps (distinct from webhook notifications)