Skip to content

HTTP request

HTTP request calls your CRM, order system or any API during the call and turns the response into scenario variables.

The method, the URL, the body, the headers, the form fields, the authentication, the proxy URL, and the path and default of a response mapping take variables and contact fields, such as {{contact.first_name}}. See Variables.

HTTP request settings

Look up an order, a balance or a customer; create a ticket or a lead; check a code the caller typed. If your API speaks HTTP(S) and returns JSON, nothing needs to change on your side.

SettingWhat it doesDefault
Target URLThe address to call; variables allowed—
MethodGET, POST, PUT, DELETE or PATCH—
BodyOptional request body: choose the data type (JSON, form values or text) and enter the DataOff
Authentication, HeadersBasic, Bearer or custom headers—
ProxySends the request through a proxy—
Attach call metadataAdds the call’s metadata to the request—
Skip certificate verificationLike curl --insecure; a security risk—
Timeout1–30 s10 s
Response data mappingPer variable: Response source (Header or Body), a JSONPath Path definition such as $.args.status, and Value if the path is not found—

The whole body, the error and the status code are always in {{last_webhook.body}}, {{last_webhook.error}} and {{last_webhook.http_status_code}}.

Open test cases → Run tests sends a real request and shows the curl command, status, headers, body and the parsed variables. Click a field in the response to copy its path.

HTTP request test: 200 OK and the parsed variable

OutputWhen
SuccessThe API answered with 2xx (3xx: see questions below)
Error4xx or 5xx, a timeout or an unreachable system

GET https://httpbin.org/anything?status=shipped, mapping {{order_status}} from Body, path $.args.status, default unknown. The test shows {"order_status": "shipped"}.

  • Set Value if the path is not found for every mapped field.
  • Always connect Error to a polite path, such as a transfer to a person.
  • Keep the timeout short; the caller hears silence while the request runs.
SymptomFix
Path is required, or the variable stays emptyRun a test case and click the field in the response to copy its path
Always ErrorRead the status and body in the test case: wrong URL, method or authorisation

JavaScript, Conditions, Calling your systems