Skip to main content
All CollectionsOther
Workflows: HTTP Module
Workflows: HTTP Module

How to use the Workflows HTTP module

Derk Zomer avatar
Written by Derk Zomer
Updated this week

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:

  1. Webhook Trigger

  2. Render Template Module

  3. HTTP Module

Input

This module takes three parameters:

  1. Url: The endpoint where you want to send the data

  2. Method: The HTTP method you want to use (fixed to POST)

  3. 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.

Did this answer your question?