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:

  1. In your flow: add Webhook trigger and select POST action
  2. Declare the additional data that to be passed to the flow via an HTTP request
  3. Add and config other steps, save and enable the flow.
  4. 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.

curl -H "Content-Type: application/json" -H "apiKey: phEq76s5+O4uFDNvdg/kOm/bWvE=" -d {\"videoId\":\"654321\",\"videoUrl\":\"https://s3.amazonaws.com/vunguyen.avlow.io-bucket/source-videos/%081Min-1.mov\",\"userId\":\"123456\"} -X POST https://g6auwie460.execute-api.us-east-1.amazonaws.com/staging/webhookTrigger/54960580-8df3-4a9d-95b5-a9c30fe660ac