Skip to content

Calling your systems

Use the HTTP request brick when your system has an HTTP(S) API that returns JSON; use the JavaScript brick when you need logic, several calls or a ready-made tool such as email or Google Sheets.

NeedUseWhy
Look up an order, a balance or a customer recordHTTP requestNo code: URL, method, headers and JSONPath mapping
Write a ticket or a lead to your CRMHTTP requestAny method, call variables in the URL and headers (how a request body is set is to confirm)
Combine several values, format dates, computeJavaScriptstorage.get and storage.set on scenario variables
Send an email or add a row to a Google SheetJavaScriptReady-made tools in the Brick API
Push the result after the call endsResult webhooksOne POST per finished call, no brick needed (Result webhooks)
WhatHow
RequestGET, POST, PUT, DELETE or PATCH to any URL; call variables are substituted into the URL and headers
AuthorisationBasic, Bearer or a custom header; optionally through a proxy
ResponseValues from the body (JSONPath) or headers go into variables, each with a default when the path is missing
Timeout1–30 s, default 10 s
ErrorsAn unreachable system or a 4xx/5xx status leaves through Error
TestingOpen test cases → Run tests sends a real request and shows curl, status, headers, body and the parsed variables

If your API already speaks HTTP(S) and returns JSON, no change is needed on your side.

HTTP request test: 200 OK and the parsed variable

The brick runs your async default export, reads and writes variables with storage, and can call ready-made tools listed under Brick API. Generate code writes the function from a plain-language description; Deploy and save stores and deploys it.

JavaScript editor

  • Always connect Error: tell the caller something went wrong and offer a person.
  • Set a default for every mapped field, so a missing value does not break the next brick.
  • Keep timeouts short. The caller hears silence while the request runs.
  • Never put secrets into text fields that are spoken or sent by SMS.

Full settings: HTTP request and JavaScript.