The HTTP module enables you to send the results of your Workflow to any endpoint you choose.
What It Does
Sends Data: Transmits all inputs and outputs from every module within your Workflow.
Example Workflow
Consider a Workflow that includes the following modules:
Webhook Trigger
Render Template Module
HTTP Module
Input
This module takes three parameters:
Url: The endpoint where you want to send the data
Method: The HTTP method you want to use (fixed to
POST
)Content Type: The content type you want to set (fixed to
application/json
)
Output
When this Workflow runs, the HTTP module will send a JSON payload containing all the inputs and outputs from these modules. For instance:
{
"video": "https://shotstack-assets.s3.amazonaws.com/footage/night-sky.mp4",
"SHOTSTACK_VIDEO_URL_1": "https://shotstack-api-v1-output.s3-ap-southeast-2.amazonaws.com/wzr6y0wtti/718d0336-8126-4e25-8a39-1d25d69858a7.mp4"
}
Important Notes
Request Method: Currently, the HTTP module only supports POST requests.
Adding Extra Data: To include additional information in your payload, make sure to declare these fields in your Trigger module.