Webhooks
Webhooks allow you to receive real-time notifications when specific events occur in SwipeFlow.
How webhooks work
Section titled “How webhooks work”Webhooks are callbacks triggered by events in SwipeFlow. When an event occurs, SwipeFlow sends an HTTP POST request to your webhook URL.
- Event. Something happens in SwipeFlow, such as an item being approved or rejected.
- Request. SwipeFlow sends an HTTP
POSTrequest to the webhook URL. - Handling. Your server processes the payload and acts on it.
Setting up a webhook
Section titled “Setting up a webhook”- Go to Settings. Click on the Settings tab in the main navigation.
- Open Webhooks. Select the Webhooks tab.
- Add a webhook. Click Add New Webhook.
- Enter the URL where you want to receive the requests.
- Select events that should trigger the webhook.
- Save the webhook.
Events
Section titled “Events”| Event | When |
|---|---|
item.created | An item was submitted for review |
item.updated | An item's content or details changed |
item.deleted | An item was deleted |
item.approved | A reviewer approved an item |
item.rejected | A reviewer rejected an item |
item.change_requested | A reviewer requested changes to an item |
item.processed | The requester marked an item's decision as processed |
project.trigger | A project trigger fired |