The HTTP Request step enables you to interact with external APIs and web services by sending HTTP requests. This step provides a flexible interface to configure all aspects of your request, including:

  • HTTP method (GET, POST, etc.)
  • Target URL endpoint
  • Request headers
  • Request body payload

Request Method

Select the HTTP method for your request (GET, POST, PUT, DELETE).

To select the method:

  1. Click on the method name in the step
  2. Select the desired method from the dropdown menu

URL

Enter the complete URL for the API endpoint you want to call.

Headers

Add any required HTTP headers for your request, such as authentication tokens or content type specifications.

Request Body

For POST/PUT requests, specify the request body in JSON format.

Output

The step returns the following outputs that can be used in subsequent steps:

  • ok - A boolean value that is true if the response status code is in the 2xx range, false otherwise
  • status - The HTTP status code of the response
  • headers - Response headers as key-value pairs
  • body - The response body content

Security Considerations

When using the HTTP Request step, keep these security best practices in mind:

  • Never Expose Sensitive Data: Avoid hardcoding sensitive information like API keys, tokens, or passwords directly in the URL or headers. Instead, use Variables to store and reference sensitive data securely.