How to use the Webhook trigger
A webhook trigger allows you to trigger a flow on AVflow.io programmatically from your Backend or Frontend via an HTTP POST request.
Here's how to use it:
- In your flow: add Webhook trigger and select POST action
- Declare the additional data that to be passed to the flow via an HTTP request
- Add and config other steps, save and enable the flow.
- Send HTTP POST request to Webhook endpoint to trigger the flow. AVflow APIKey is required. (See this article for more detail about API Key and how to get the key.)
Example: Posting a video to Twitter by using the parameters (videoId, videoUrl, userId) passed from the HTTP request to the flow.
Add Webhook trigger and select POST action
Declare the additional data that to be passed to the flow via an HTTP request
Send an HTTP request to trigger the flow as the sample below: You should change the apiKey value and the webhook endpoint URL accordingly.