Skip to main content

HTTP Component

Make HTTP requests to URLs such as REST APIs, Webhooks, etc

Component key: http

Description

The HTTP component allows you to make requests to an HTTP-based API or endpoint.

Common HTTP verbs like GET, POST, PUT, PATCH, and DELETE are supported. For all actions, you can specify:

  • A URL to send a request to
  • A response type (like application/json)
  • A list of request headers
  • A list of query parameters

In addition, the POST, PUT, and PATCH actions allow you to specify data to send as part of the request. data can be a reference to a binary file, a string literal, or any structured data that is expected in the body of the request.

This component can be configured to use optional Basic Auth (username/password), API Key, or OAuth 2.0 Connections to authenticate the request. For other non-standard authentication schemes, you will either need to supply your own Authorization as a header as an input to the HTTP component, or you can create your own custom component to interact with an HTTP-based API.

Connections

API Key

If an API Key Connection is supplied, an Authorization: Basic ${APIKEY} header is used in the HTTP request.

On-prem enabled: this connection can be configured to connect to an on-prem resource on a private network. Learn more.

InputNotesExample
API Key

API Key

Authentication SchemeBasic
Host

The address of your on-prem server. This should be an IP address or hostname.

server.example.io
Port

The port of your on-prem server

8080

OAuth 2.0 Authorization Code

If an OAuth 2.0 Connection is supplied, an Authorization: Bearer ${KEY} header is used in the HTTP request, where KEY is the client key that is fetched from the OAuth provider.

InputNotesExample
Authorize URL

The OAuth 2.0 Authorization URL for the API

Client ID

Client Identifier of your app for the API

Client Secret

Client Secret of your app for the API

Headers

Additional header to supply to authorization requests

Refresh URL

The OAuth 2.0 Refresh URL for the API

Scopes

Space separated OAuth 2.0 permission scopes for the API

Token URL

The OAuth 2.0 Token URL for the API

Basic Username/Password

If a Basic Auth Connection is supplied, an Authorization: Basic ${base64(USERNAME:PASSWORD)} header is used in the HTTP request.

On-prem enabled: this connection can be configured to connect to an on-prem resource on a private network. Learn more.

InputNotesExample
Host

The address of your On-Prem server. This should be an IP address or hostname.

server.example.io
Password

Password

Port

The port of your On-Prem server.

8080
Username

Username

OAuth 2.0 Client Credentials

InputNotesExample
Client ID

Client Identifier of your app for the API

Client Secret

Client Secret of your app for the API

Headers

Additional header to supply to token requests

Scopes

Space separated OAuth 2.0 permission scopes for the API

Token URL

The OAuth 2.0 Token URL for the API

Actions

DELETE request

Issue a HTTP DELETE request | key: httpDelete

InputNotesExample
Connection
Debug Request

Enabling this flag will log out the current request.

false
Header

A list of headers to send with the request.

User-Agent: curl/7.64.1
Ignore SSL Errors (Not Recommended)

When this flag is enabled, SSL certificate errors will be ignored. Use this flag with caution - ignoring SSL errors presents security issues. This should only be used for testing purposes.

false
Include Full Response

Enabling this flag will include the full response instead of only the returned data.

false
Max Retry Count

The maximum number of retries to attempt.

0
Query Parameter

A list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.

Response Type

The type of data you expect in the response. You can request json, text, or binary data.

binary
Retry Delay (ms)

The delay in milliseconds between retries.

0
Retry On All Errors

If true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.

false
Timeout

The maximum time that a client will await a response to its request

2000
URL

This is the URL to call.

https://api.company.com/endpoint
Use Exponential Backoff

Specifies whether to use a pre-defined exponential backoff strategy for retries. If this is set to true, 'Retry Delay (ms)' is ignored.

false

{
"data": null,
"contentType": "application/json"
}

GET Request

Issue a HTTP GET request | key: httpGet

InputNotesExample
Connection
Debug Request

Enabling this flag will log out the current request.

false
Header

A list of headers to send with the request.

User-Agent: curl/7.64.1
Ignore SSL Errors (Not Recommended)

When this flag is enabled, SSL certificate errors will be ignored. Use this flag with caution - ignoring SSL errors presents security issues. This should only be used for testing purposes.

false
Include Full Response

Enabling this flag will include the full response instead of only the returned data.

false
Max Retry Count

The maximum number of retries to attempt.

0
Query Parameter

A list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.

Response Type

The type of data you expect in the response. You can request json, text, or binary data.

binary
Retry Delay (ms)

The delay in milliseconds between retries.

0
Retry On All Errors

If true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.

false
Timeout

The maximum time that a client will await a response to its request

2000
URL

This is the URL to call.

https://api.company.com/endpoint
Use Exponential Backoff

Specifies whether to use a pre-defined exponential backoff strategy for retries. If this is set to true, 'Retry Delay (ms)' is ignored.

false

{
"data": null,
"contentType": "application/json"
}

PATCH request

Issue a HTTP PATCH request | key: httpPatch

InputNotesExample
Connection
Data

The HTTP body payload to send to the URL. Must be a string or a reference to output from a previous step.

{"exampleKey": "Example Data"}
Debug Request

Enabling this flag will log out the current request.

false
Header

A list of headers to send with the request.

User-Agent: curl/7.64.1
Ignore SSL Errors (Not Recommended)

When this flag is enabled, SSL certificate errors will be ignored. Use this flag with caution - ignoring SSL errors presents security issues. This should only be used for testing purposes.

false
Include Full Response

Enabling this flag will include the full response instead of only the returned data.

false
Max Retry Count

The maximum number of retries to attempt.

0
Query Parameter

A list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.

Response Type

The type of data you expect in the response. You can request json, text, or binary data.

binary
Retry Delay (ms)

The delay in milliseconds between retries.

0
Retry On All Errors

If true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.

false
Timeout

The maximum time that a client will await a response to its request

2000
URL

This is the URL to call.

https://api.company.com/endpoint
Use Exponential Backoff

Specifies whether to use a pre-defined exponential backoff strategy for retries. If this is set to true, 'Retry Delay (ms)' is ignored.

false

{
"data": null,
"contentType": "application/json"
}

POST Request

Issue a HTTP POST request | key: httpPost

InputNotesExample
Connection
Data

The HTTP body payload to send to the URL. Must be a string or a reference to output from a previous step.

{"exampleKey": "Example Data"}
Debug Request

Enabling this flag will log out the current request.

false
Header

A list of headers to send with the request.

User-Agent: curl/7.64.1
Ignore SSL Errors (Not Recommended)

When this flag is enabled, SSL certificate errors will be ignored. Use this flag with caution - ignoring SSL errors presents security issues. This should only be used for testing purposes.

false
Include Full Response

Enabling this flag will include the full response instead of only the returned data.

false
Max Retry Count

The maximum number of retries to attempt.

0
Query Parameter

A list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.

Response Type

The type of data you expect in the response. You can request json, text, or binary data.

binary
Retry Delay (ms)

The delay in milliseconds between retries.

0
Retry On All Errors

If true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.

false
Timeout

The maximum time that a client will await a response to its request

2000
URL

This is the URL to call.

https://api.company.com/endpoint
Use Exponential Backoff

Specifies whether to use a pre-defined exponential backoff strategy for retries. If this is set to true, 'Retry Delay (ms)' is ignored.

false

{
"data": null,
"contentType": "application/json"
}

POST/PUT Form Data Request

POST/PUT data as multipart/form-data. Often useful for uploading binary data. | key: httpPostFormData

InputNotesExample
Connection
Debug Request

Enabling this flag will log out the current request.

false
File Data

File Data to be sent as a multipart form upload.

[{key: "example.txt", value: "My File Contents"}]
File Data File Names

File names to apply to the file data inputs. Keys must match the file data keys above.

Form Data

The Form Data to be sent as a multipart form upload.

[{"key": "Example Key", "value": new Buffer("Hello World")}]
Header

A list of headers to send with the request.

User-Agent: curl/7.64.1
HTTP Methodpost
Ignore SSL Errors (Not Recommended)

When this flag is enabled, SSL certificate errors will be ignored. Use this flag with caution - ignoring SSL errors presents security issues. This should only be used for testing purposes.

false
Include Full Response

Enabling this flag will include the full response instead of only the returned data.

false
Max Retry Count

The maximum number of retries to attempt.

0
Query Parameter

A list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.

Response Type

The type of data you expect in the response. You can request json, text, or binary data.

binary
Retry Delay (ms)

The delay in milliseconds between retries.

0
Retry On All Errors

If true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.

false
Timeout

The maximum time that a client will await a response to its request

2000
URL

This is the URL to call.

https://api.company.com/endpoint
Use Exponential Backoff

Specifies whether to use a pre-defined exponential backoff strategy for retries. If this is set to true, 'Retry Delay (ms)' is ignored.

false

The Post Form Data Action takes two possible inputs for data to be uploaded to an endpoint.

  • Form Data are key/value pairs. For example, "username"/"Groucho" and "accountnum"/12345. Values are turned into strings if they are not already. For more information see https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects
  • File Data is similar to form data but allows you to upload file contents. A filename property is automatically generated from the key. This should be used to upload files only. All other types of data should go through the Form Data Input.

PUT request

Issue a HTTP PUT request | key: httpPut

InputNotesExample
Connection
Data

The HTTP body payload to send to the URL. Must be a string or a reference to output from a previous step.

{"exampleKey": "Example Data"}
Debug Request

Enabling this flag will log out the current request.

false
Header

A list of headers to send with the request.

User-Agent: curl/7.64.1
Ignore SSL Errors (Not Recommended)

When this flag is enabled, SSL certificate errors will be ignored. Use this flag with caution - ignoring SSL errors presents security issues. This should only be used for testing purposes.

false
Include Full Response

Enabling this flag will include the full response instead of only the returned data.

false
Max Retry Count

The maximum number of retries to attempt.

0
Query Parameter

A list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.

Response Type

The type of data you expect in the response. You can request json, text, or binary data.

binary
Retry Delay (ms)

The delay in milliseconds between retries.

0
Retry On All Errors

If true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.

false
Timeout

The maximum time that a client will await a response to its request

2000
URL

This is the URL to call.

https://api.company.com/endpoint
Use Exponential Backoff

Specifies whether to use a pre-defined exponential backoff strategy for retries. If this is set to true, 'Retry Delay (ms)' is ignored.

false

{
"data": null,
"contentType": "application/json"
}