HTTP

The HTTP component is a generic component that allows users to make requests to external HTTP APIs. It can carry out the following tasks:

Release Stage

Alpha

Configuration

The component definition and tasks are defined in the definition.yaml and tasks.yaml files respectively.

Setup

In order to communicate with the external application, the following connection details need to be provided. You may specify them directly in a pipeline recipe as key-value pairs within the component's setup block, or you can create a Connection from the Integration Settings page and reference the whole setup as setup: ${connection.<my-connection-id>}.

FieldField IDTypeNote
Authentication (required)authenticationobjectAuthentication method to use for the REST API.
The authentication Object

Authentication

authentication must fulfill one of the following schemas:

No Auth
FieldField IDTypeNote
Auth Typeauth-typestringMust be "NO_AUTH"
Basic Auth
FieldField IDTypeNote
Auth Typeauth-typestringMust be "BASIC_AUTH"
PasswordpasswordstringPassword for Basic auth.
UsernameusernamestringUsername for Basic Auth.
API Key
FieldField IDTypeNote
Auth Locationauth-locationstringAdd the API key to the header or query params.
Enum values
  • header
  • query
Auth Typeauth-typestringMust be "API_KEY"
Key NamekeystringKey name for API key authentication.
Key ValuevaluestringKey value for API key authentication.
Bearer Token
FieldField IDTypeNote
Auth Typeauth-typestringMust be "BEARER_TOKEN"
TokentokenstringBearer token.

Supported Tasks

Get

Send a HTTP GET request.

InputField IDTypeDescription
Task ID (required)taskstringTASK_GET
Endpoint URL (required)endpoint-urlstringThe API endpoint URL. It must be a valid URI reference and point to an external IP address. If the URL resolves to an internal or private IP, the component will throw an error.
Bodyoutput-body-schemastringThe request body.
HeaderheaderjsonThe HTTP header of the response. It must be an object whose values are arrays of strings.
OutputField IDTypeDescription
Status Codestatus-codeintegerThe HTTP status code of the response.
BodybodyanyThe body of the response.
HeaderheaderjsonThe HTTP header of the response.

Post

Send a HTTP POST request.

InputField IDTypeDescription
Task ID (required)taskstringTASK_POST
Endpoint URL (required)endpoint-urlstringThe API endpoint URL. It must be a valid URI reference and point to an external IP address. If the URL resolves to an internal or private IP, the component will throw an error.
BodybodyanyThe request body.
Bodyoutput-body-schemastringThe JSON schema of output body.
HeaderheaderjsonThe HTTP header of the response. It must be an object whose values are arrays of strings.
OutputField IDTypeDescription
Status Codestatus-codeintegerThe HTTP status code of the response.
BodybodyanyThe body of the response.
HeaderheaderjsonThe HTTP header of the response.

Patch

Send a HTTP PATCH request.

InputField IDTypeDescription
Task ID (required)taskstringTASK_PATCH
Endpoint URL (required)endpoint-urlstringThe API endpoint URL. It must be a valid URI reference and point to an external IP address. If the URL resolves to an internal or private IP, the component will throw an error.
BodybodyanyThe request body.
Bodyoutput-body-schemastringThe JSON schema of output body.
HeaderheaderjsonThe HTTP header of the response. It must be an object whose values are arrays of strings.
OutputField IDTypeDescription
Status Codestatus-codeintegerThe HTTP status code of the response.
BodybodyanyThe body of the response.
HeaderheaderjsonThe HTTP header of the response.

Put

Send a HTTP PUT request.

InputField IDTypeDescription
Task ID (required)taskstringTASK_PUT
Endpoint URL (required)endpoint-urlstringThe API endpoint URL. It must be a valid URI reference and point to an external IP address. If the URL resolves to an internal or private IP, the component will throw an error.
BodybodyanyThe request body.
Bodyoutput-body-schemastringThe JSON schema of output body.
HeaderheaderjsonThe HTTP header of the response. It must be an object whose values are arrays of strings.
OutputField IDTypeDescription
Status Codestatus-codeintegerThe HTTP status code of the response.
BodybodyanyThe body of the response.
HeaderheaderjsonThe HTTP header of the response.

Delete

Send a HTTP DELETE request.

InputField IDTypeDescription
Task ID (required)taskstringTASK_DELETE
Endpoint URL (required)endpoint-urlstringThe API endpoint URL. It must be a valid URI reference and point to an external IP address. If the URL resolves to an internal or private IP, the component will throw an error.
BodybodyanyThe request body.
Bodyoutput-body-schemastringThe JSON schema of output body.
HeaderheaderjsonThe HTTP header of the response. It must be an object whose values are arrays of strings.
OutputField IDTypeDescription
Status Codestatus-codeintegerThe HTTP status code of the response.
BodybodyanyThe body of the response.
HeaderheaderjsonThe HTTP header of the response.

Head

Send a HTTP HEAD request.

InputField IDTypeDescription
Task ID (required)taskstringTASK_HEAD
Endpoint URL (required)endpoint-urlstringThe API endpoint URL. It must be a valid URI reference and point to an external IP address. If the URL resolves to an internal or private IP, the component will throw an error.
Bodyoutput-body-schemastringThe request body.
HeaderheaderjsonThe HTTP header of the response. It must be an object whose values are arrays of strings.
OutputField IDTypeDescription
Status Codestatus-codeintegerThe HTTP status code of the response.
BodybodyanyThe body of the response.
HeaderheaderjsonThe HTTP header of the response.

Options

Send a HTTP OPTIONS request.

InputField IDTypeDescription
Task ID (required)taskstringTASK_OPTIONS
Endpoint URL (required)endpoint-urlstringThe API endpoint URL. It must be a valid URI reference and point to an external IP address. If the URL resolves to an internal or private IP, the component will throw an error.
BodybodyanyThe request body.
Bodyoutput-body-schemastringThe JSON schema of output body.
HeaderheaderjsonThe HTTP header of the response. It must be an object whose values are arrays of strings.
OutputField IDTypeDescription
Status Codestatus-codeintegerThe HTTP status code of the response.
BodybodyanyThe body of the response.
HeaderheaderjsonThe HTTP header of the response.