ByteChef LogoByteChef
Components

HTTP Client

Makes an HTTP request and returns the response data.

Categories: Helpers

Type: httpClient/v1


Connections

Version: 1

API Key

Properties

NameLabelTypeDescriptionRequired
keyKeySTRINGtrue
valueValueSTRINGtrue
addToAdd toSTRING
Options HEADER, QUERY_PARAMETERS
true

Bearer Token

Properties

NameLabelTypeDescriptionRequired
tokenTokenSTRINGtrue

Basic Auth

Properties

NameLabelTypeDescriptionRequired
usernameUsernameSTRINGtrue
passwordPasswordSTRINGtrue

Digest Auth

Properties

NameLabelTypeDescriptionRequired
usernameUsernameSTRINGtrue
passwordPasswordSTRINGtrue

OAuth2 Authorization Code

Properties

NameLabelTypeDescriptionRequired
authorizationUrlAuthorization URLSTRINGtrue
tokenUrlToken URLSTRINGtrue
clientIdClient IdSTRINGtrue
clientSecretClient SecretSTRINGtrue
headerPrefixHeader PrefixSTRINGnull
scopesScopesSTRINGOptional comma-delimited list of scopesfalse

OAuth2 Implicit Code

Properties

NameLabelTypeDescriptionRequired
authorizationUrlAuthorization URLSTRINGtrue
clientIdClient IdSTRINGtrue
clientSecretClient SecretSTRINGtrue
headerPrefixHeader PrefixSTRINGnull
scopesScopesSTRINGOptional comma-delimited list of scopesfalse

OAuth2 Client Credentials

Properties

NameLabelTypeDescriptionRequired
tokenUrlToken URLSTRINGtrue
clientIdClient IdSTRINGtrue
clientSecretClient SecretSTRINGtrue
headerPrefixHeader PrefixSTRINGnull
scopesScopesSTRINGOptional comma-delimited list of scopesfalse

Actions

GET

Name: get

The request method to use.

Properties

NameLabelTypeDescriptionRequired
uriURISTRINGThe URI to make the request to. If HTTP Client Connection defines Base URI, then this value is appended to it.true
allowUnauthorizedCertsAllow Unauthorized CertsBOOLEAN
Options true, false
Download the response even if SSL certificate validation is not possible.false
responseTypeResponse FormatSTRING
Options JSON, XML, TEXT, BINARY
The format in which the data gets returned from the URL.false
responseFilenameResponse FilenameSTRINGThe name of the file if the response is returned as a file object.false
headersHeadersOBJECT
Properties {}
Headers to send.false
queryParametersQuery ParametersOBJECT
Properties {}
Query parameters to send.false
fullResponseFull ResponseBOOLEAN
Options true, false
Returns the full response data instead of only the body.false
followAllRedirectsFollow All RedirectsBOOLEAN
Options true, false
Follow non-GET HTTP 3xx redirects.false
followRedirectFollow GET RedirectBOOLEAN
Options true, false
Follow GET HTTP 3xx redirects.false
ignoreResponseCodeIgnore Response CodeBOOLEAN
Options true, false
Succeeds also when the status code is not 2xx.false
proxyProxySTRINGHTTP proxy to use.false
timeoutTimeoutINTEGERTime in ms to wait for the server to send a response before aborting the request.false

Example JSON Structure

{
  "label" : "GET",
  "name" : "get",
  "parameters" : {
    "uri" : "",
    "allowUnauthorizedCerts" : false,
    "responseType" : "",
    "responseFilename" : "",
    "headers" : { },
    "queryParameters" : { },
    "fullResponse" : false,
    "followAllRedirects" : false,
    "followRedirect" : false,
    "ignoreResponseCode" : false,
    "proxy" : "",
    "timeout" : 1
  },
  "type" : "httpClient/v1/get"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

POST

Name: post

The request method to use.

Properties

NameLabelTypeDescriptionRequired
uriURISTRINGThe URI to make the request to. If HTTP Client Connection defines Base URI, then this value is appended to it.true
allowUnauthorizedCertsAllow Unauthorized CertsBOOLEAN
Options true, false
Download the response even if SSL certificate validation is not possible.false
responseTypeResponse FormatSTRING
Options JSON, XML, TEXT, BINARY
The format in which the data gets returned from the URL.false
responseFilenameResponse FilenameSTRINGThe name of the file if the response is returned as a file object.false
headersHeadersOBJECT
Properties {}
Headers to send.false
queryParametersQuery ParametersOBJECT
Properties {}
Query parameters to send.false
bodyBodyOBJECT
Properties {STRING(bodyContentType), {}(bodyContent), {}(bodyContent), {}(bodyContent), {}(bodyContent), STRING(bodyContent), FILE_ENTRY(bodyContent), STRING(bodyContentMimeType), STRING(bodyContentMimeType)}
The body of the request.false
fullResponseFull ResponseBOOLEAN
Options true, false
Returns the full response data instead of only the body.false
followAllRedirectsFollow All RedirectsBOOLEAN
Options true, false
Follow non-GET HTTP 3xx redirects.false
followRedirectFollow GET RedirectBOOLEAN
Options true, false
Follow GET HTTP 3xx redirects.false
ignoreResponseCodeIgnore Response CodeBOOLEAN
Options true, false
Succeeds also when the status code is not 2xx.false
proxyProxySTRINGHTTP proxy to use.false
timeoutTimeoutINTEGERTime in ms to wait for the server to send a response before aborting the request.false

Example JSON Structure

{
  "label" : "POST",
  "name" : "post",
  "parameters" : {
    "uri" : "",
    "allowUnauthorizedCerts" : false,
    "responseType" : "",
    "responseFilename" : "",
    "headers" : { },
    "queryParameters" : { },
    "body" : {
      "bodyContentType" : "",
      "bodyContent" : {
        "extension" : "",
        "mimeType" : "",
        "name" : "",
        "url" : ""
      },
      "bodyContentMimeType" : ""
    },
    "fullResponse" : false,
    "followAllRedirects" : false,
    "followRedirect" : false,
    "ignoreResponseCode" : false,
    "proxy" : "",
    "timeout" : 1
  },
  "type" : "httpClient/v1/post"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

PUT

Name: put

The request method to use.

Properties

NameLabelTypeDescriptionRequired
uriURISTRINGThe URI to make the request to. If HTTP Client Connection defines Base URI, then this value is appended to it.true
allowUnauthorizedCertsAllow Unauthorized CertsBOOLEAN
Options true, false
Download the response even if SSL certificate validation is not possible.false
responseTypeResponse FormatSTRING
Options JSON, XML, TEXT, BINARY
The format in which the data gets returned from the URL.false
responseFilenameResponse FilenameSTRINGThe name of the file if the response is returned as a file object.false
headersHeadersOBJECT
Properties {}
Headers to send.false
queryParametersQuery ParametersOBJECT
Properties {}
Query parameters to send.false
bodyBodyOBJECT
Properties {STRING(bodyContentType), {}(bodyContent), {}(bodyContent), {}(bodyContent), {}(bodyContent), STRING(bodyContent), FILE_ENTRY(bodyContent), STRING(bodyContentMimeType), STRING(bodyContentMimeType)}
The body of the request.false
fullResponseFull ResponseBOOLEAN
Options true, false
Returns the full response data instead of only the body.false
followAllRedirectsFollow All RedirectsBOOLEAN
Options true, false
Follow non-GET HTTP 3xx redirects.false
followRedirectFollow GET RedirectBOOLEAN
Options true, false
Follow GET HTTP 3xx redirects.false
ignoreResponseCodeIgnore Response CodeBOOLEAN
Options true, false
Succeeds also when the status code is not 2xx.false
proxyProxySTRINGHTTP proxy to use.false
timeoutTimeoutINTEGERTime in ms to wait for the server to send a response before aborting the request.false

Example JSON Structure

{
  "label" : "PUT",
  "name" : "put",
  "parameters" : {
    "uri" : "",
    "allowUnauthorizedCerts" : false,
    "responseType" : "",
    "responseFilename" : "",
    "headers" : { },
    "queryParameters" : { },
    "body" : {
      "bodyContentType" : "",
      "bodyContent" : {
        "extension" : "",
        "mimeType" : "",
        "name" : "",
        "url" : ""
      },
      "bodyContentMimeType" : ""
    },
    "fullResponse" : false,
    "followAllRedirects" : false,
    "followRedirect" : false,
    "ignoreResponseCode" : false,
    "proxy" : "",
    "timeout" : 1
  },
  "type" : "httpClient/v1/put"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

PATCH

Name: patch

The request method to use.

Properties

NameLabelTypeDescriptionRequired
uriURISTRINGThe URI to make the request to. If HTTP Client Connection defines Base URI, then this value is appended to it.true
allowUnauthorizedCertsAllow Unauthorized CertsBOOLEAN
Options true, false
Download the response even if SSL certificate validation is not possible.false
responseTypeResponse FormatSTRING
Options JSON, XML, TEXT, BINARY
The format in which the data gets returned from the URL.false
responseFilenameResponse FilenameSTRINGThe name of the file if the response is returned as a file object.false
headersHeadersOBJECT
Properties {}
Headers to send.false
queryParametersQuery ParametersOBJECT
Properties {}
Query parameters to send.false
bodyBodyOBJECT
Properties {STRING(bodyContentType), {}(bodyContent), {}(bodyContent), {}(bodyContent), {}(bodyContent), STRING(bodyContent), FILE_ENTRY(bodyContent), STRING(bodyContentMimeType), STRING(bodyContentMimeType)}
The body of the request.false
fullResponseFull ResponseBOOLEAN
Options true, false
Returns the full response data instead of only the body.false
followAllRedirectsFollow All RedirectsBOOLEAN
Options true, false
Follow non-GET HTTP 3xx redirects.false
followRedirectFollow GET RedirectBOOLEAN
Options true, false
Follow GET HTTP 3xx redirects.false
ignoreResponseCodeIgnore Response CodeBOOLEAN
Options true, false
Succeeds also when the status code is not 2xx.false
proxyProxySTRINGHTTP proxy to use.false
timeoutTimeoutINTEGERTime in ms to wait for the server to send a response before aborting the request.false

Example JSON Structure

{
  "label" : "PATCH",
  "name" : "patch",
  "parameters" : {
    "uri" : "",
    "allowUnauthorizedCerts" : false,
    "responseType" : "",
    "responseFilename" : "",
    "headers" : { },
    "queryParameters" : { },
    "body" : {
      "bodyContentType" : "",
      "bodyContent" : {
        "extension" : "",
        "mimeType" : "",
        "name" : "",
        "url" : ""
      },
      "bodyContentMimeType" : ""
    },
    "fullResponse" : false,
    "followAllRedirects" : false,
    "followRedirect" : false,
    "ignoreResponseCode" : false,
    "proxy" : "",
    "timeout" : 1
  },
  "type" : "httpClient/v1/patch"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

DELETE

Name: delete

The request method to use.

Properties

NameLabelTypeDescriptionRequired
uriURISTRINGThe URI to make the request to. If HTTP Client Connection defines Base URI, then this value is appended to it.true
allowUnauthorizedCertsAllow Unauthorized CertsBOOLEAN
Options true, false
Download the response even if SSL certificate validation is not possible.false
responseTypeResponse FormatSTRING
Options JSON, XML, TEXT, BINARY
The format in which the data gets returned from the URL.false
responseFilenameResponse FilenameSTRINGThe name of the file if the response is returned as a file object.false
headersHeadersOBJECT
Properties {}
Headers to send.false
queryParametersQuery ParametersOBJECT
Properties {}
Query parameters to send.false
fullResponseFull ResponseBOOLEAN
Options true, false
Returns the full response data instead of only the body.false
followAllRedirectsFollow All RedirectsBOOLEAN
Options true, false
Follow non-GET HTTP 3xx redirects.false
followRedirectFollow GET RedirectBOOLEAN
Options true, false
Follow GET HTTP 3xx redirects.false
ignoreResponseCodeIgnore Response CodeBOOLEAN
Options true, false
Succeeds also when the status code is not 2xx.false
proxyProxySTRINGHTTP proxy to use.false
timeoutTimeoutINTEGERTime in ms to wait for the server to send a response before aborting the request.false

Example JSON Structure

{
  "label" : "DELETE",
  "name" : "delete",
  "parameters" : {
    "uri" : "",
    "allowUnauthorizedCerts" : false,
    "responseType" : "",
    "responseFilename" : "",
    "headers" : { },
    "queryParameters" : { },
    "fullResponse" : false,
    "followAllRedirects" : false,
    "followRedirect" : false,
    "ignoreResponseCode" : false,
    "proxy" : "",
    "timeout" : 1
  },
  "type" : "httpClient/v1/delete"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

Name: head

The request method to use.

Properties

NameLabelTypeDescriptionRequired
uriURISTRINGThe URI to make the request to. If HTTP Client Connection defines Base URI, then this value is appended to it.true
allowUnauthorizedCertsAllow Unauthorized CertsBOOLEAN
Options true, false
Download the response even if SSL certificate validation is not possible.false
responseTypeResponse FormatSTRING
Options JSON, XML, TEXT, BINARY
The format in which the data gets returned from the URL.false
responseFilenameResponse FilenameSTRINGThe name of the file if the response is returned as a file object.false
headersHeadersOBJECT
Properties {}
Headers to send.false
queryParametersQuery ParametersOBJECT
Properties {}
Query parameters to send.false
fullResponseFull ResponseBOOLEAN
Options true, false
Returns the full response data instead of only the body.false
followAllRedirectsFollow All RedirectsBOOLEAN
Options true, false
Follow non-GET HTTP 3xx redirects.false
followRedirectFollow GET RedirectBOOLEAN
Options true, false
Follow GET HTTP 3xx redirects.false
ignoreResponseCodeIgnore Response CodeBOOLEAN
Options true, false
Succeeds also when the status code is not 2xx.false
proxyProxySTRINGHTTP proxy to use.false
timeoutTimeoutINTEGERTime in ms to wait for the server to send a response before aborting the request.false

Example JSON Structure

{
  "label" : "HEAD",
  "name" : "head",
  "parameters" : {
    "uri" : "",
    "allowUnauthorizedCerts" : false,
    "responseType" : "",
    "responseFilename" : "",
    "headers" : { },
    "queryParameters" : { },
    "fullResponse" : false,
    "followAllRedirects" : false,
    "followRedirect" : false,
    "ignoreResponseCode" : false,
    "proxy" : "",
    "timeout" : 1
  },
  "type" : "httpClient/v1/head"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.