ByteChef LogoByteChef

Request

Send an HTTP request from your application to a designated integration and workflow, with the option to receive a synchronous response.

Categories: Helpers

Type: request/v1


Triggers

Auto Respond

Name: autoRespondWithHTTP200

The request trigger replies immediately to any incoming workflow request and then runs the workflow. By default the reply is an empty HTTP 200 response; it can also be a redirect, JSON, raw text or no data. The request is not validated.

Type: STATIC_WEBHOOK

Properties

NameLabelTypeDescriptionRequired
responseTypeResponse TypeSTRING
Options DEFAULT, REDIRECT, JSON, RAW, NO_DATA
The response sent to the caller right away, before the workflow runs. Default sends an empty HTTP 200 response.false
redirectUrlRedirect URLSTRINGThe http or https URL the caller is redirected to, on any host. It can use workflow inputs, but not the incoming request.true
bodyBodyOBJECT
Properties {}
The JSON body of the response.true
bodyBodySTRINGThe body of the response. Set a Content-Type header to send HTML.true
headersHeadersOBJECT
Properties {}
The headers of the response. Location and Set-Cookie are not allowed.false
statusCodeStatus CodeINTEGERThe status code of the response. Redirect status codes (3xx) are not allowed.false

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.

JSON Example

{
  "label" : "Auto Respond",
  "name" : "autoRespondWithHTTP200",
  "parameters" : {
    "responseType" : "",
    "redirectUrl" : "",
    "body" : "",
    "headers" : { },
    "statusCode" : 1
  },
  "type" : "request/v1/autoRespondWithHTTP200"
}

Await Workflow and Respond

Name: awaitWorkflowAndRespond

You have the flexibility to set up your preferred response. After a workflow request is received, the request trigger enters a waiting state for the workflow's response.

Type: STATIC_WEBHOOK

Properties

NameLabelTypeDescriptionRequired
timeoutTimeout (ms)INTEGERThe incoming request will time out after the specified number of milliseconds. The max wait time before a timeout is 5 minutes.false

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.

JSON Example

{
  "label" : "Await Workflow and Respond",
  "name" : "awaitWorkflowAndRespond",
  "parameters" : {
    "timeout" : 1
  },
  "type" : "request/v1/awaitWorkflowAndRespond"
}

How is this guide?

Last updated on

On this page