Workflow step

HTTP Request

Call an API from a FastHook workflow and pass its response to the next step. Use HTTP Request to look up a record, send JSON, or upload a file. Start with a public HTTPS endpoint and the API's method, URL, and authentication requirements.

Set up HTTP Request

  1. In the workflow builder, choose Add step → HTTP Request on the route that should call the API.
  2. In Setup, choose the authentication required by the endpoint. Enter credentials in Authentication. Authenticated requests require HTTPS.
  3. Select Continue or open Configure. Set the method and URL before adding parameters, headers, or a body.
Choose how the step authenticates in Setup.
ModeWhen to choose it
NoneThe endpoint is public and requires no credentials.
Bearer TokenThe API expects Authorization: Bearer …. Paste the token itself in the Bearer token field.
API KeyThe API expects a key in a named request header. Enter the exact header name, such as X-API-Key, and the key value.
Basic AuthThe API expects an HTTP Basic username and password. FastHook constructs the Authorization header.

Keep credentials in Setup → Authentication. FastHook stores them encrypted. Reserve Headers for values such as Accept, Content-Type, or Idempotency-Key.

Configure the request

Method and URL

The method defaults to GET. Use GET for reads, HEAD for response metadata, and OPTIONS when the API calls for it. Use POST, PUT, PATCH, or DELETE according to the API's reference. A GET or HEAD request has no body.

In URL, enter the full endpoint, including https:// and the path. Use a public hostname on port 80 or 443. If the API includes a record ID in the path, insert that value from the trigger or an earlier step. Keep the hostname fixed when the input comes from an external event.

Query parameters and headers

Use Query Parameters for values the API expects after ?, such as customer_id, limit, or a pagination cursor. Add a named row and enter a fixed value or switch the row to data from the flow. FastHook URL-encodes the values. A row replaces the matching parameter already present in URL. In Edit JSON, an array produces repeated parameters, such as tag=trial&tag=active.

Use Headers for request metadata. For example, Accept: application/json asks the API for a JSON response. Use the body type the API expects so FastHook can supply its usual Content-Type.

Set the method and URL, then map a query value from the trigger.

Choose a body type

For methods that accept a body, match Body Type to the API's documentation.

TypeUse it when the API expects
NoneNo request body. Required for GET and HEAD.
JSONA JSON value, commonly an object. FastHook uses application/json by default.
TextPlain text or a string payload such as XML. Set the required Content-Type for formats other than plain text.
FormURL-encoded field values. Enter a JSON object of field names and values. FastHook sends application/x-www-form-urlencoded.
MultipartNamed text or file parts, such as description plus attachment. FastHook generates the multipart Content-Type and boundary.
BinaryThe file bytes as the entire body, such as a PUT upload. Use the file fields or map a file output.

File uploads from earlier steps. Map a FastHook File stored in R2 to send up to 25 MiB. With Binary, that is the file size. With Multipart, the 25 MiB includes every file, text field, and multipart framing.

Text and JSON requests. FastHook can send up to 4 MiB per body after resolving mappings. The same limit applies to form data and bodies with only inline files. Saved editor fields have a smaller limit, including Base64 saved by the local file picker. For larger files, map a stored File from an earlier step. Test step also has an 8 MiB limit for the full request sent from the editor, including settings and JSON encoding.

When mapping a value into a JSON body, use the editor's data picker and review Data in after testing. A mapped array, boolean, or number should reach the API as that type if the API expects it.

Test the request and map the response

  1. Open Test and select Test step. FastHook sends a real request using the workflow's current test data. For writes, use a sandbox endpoint or a disposable record.
  2. Inspect Data in for the resolved URL, parameters, and body. Open Data out to see what the API returned.
  3. In a subsequent step, open Insert data and select a field from the HTTP Request output. Retest after changing the sample, the endpoint, or the response shape. See Data mapping for help selecting the output.

The response includes:

  • status_code — the HTTP status from the API, such as 200 or 204.
  • headers — response headers such as content-type. Some sensitive headers, including set-cookie, are omitted.
  • body — parsed JSON when the response declares JSON and the payload is valid, text for other responses, or null when the API returns an empty body.
Open Data out to confirm the status and see which response fields you can map.

FastHook reads up to 4 MiB of an API response as JSON or text. Test step also has an 8 MiB limit on the serialized result it previews and saves. Text with many escaped characters can use more space when encoded as JSON. If the editor shortens the preview, use Download JSON to inspect the full test result. You can still map the full value into a later step.

A successful status can still carry an API-level error or no matching records. Use a Filter or Paths when later steps depend on a status or a value in the body. To fetch multiple pages, follow the API's pagination rules and design the workflow to make the additional requests explicitly.

Extra settings

Open Configure → Extra settings to adjust how the step waits and handles failures.

SettingDefaultBehavior
Timeout (seconds)301–60 seconds total, including redirects, retry delays, and reading the response.
Maximum retries0Up to 3 extra attempts for transient failures and HTTP 408, 429, or 5xx. Delays start at 1 second, then 2 and 4, within the timeout. A valid Retry-After can increase the delay.
Follow redirectsOffFollows up to 5 validated redirects. Use the final HTTPS URL if a redirect changes origin and the request includes credentials, custom headers, or a body.
Continue on HTTP errorOffPasses the returned HTTP status and body to later steps. Use this to handle expected responses such as 404. The step still fails if the request cannot be completed.
Review the request's timeout and retry settings before publishing.

To enable retries for POST, PUT, PATCH, or DELETE, add an Idempotency-Key header. Check that the API honors it and choose a key that is stable across attempts for one operation, such as the source event ID. A timeout or server error may occur after the API accepted a write. If FastHook reports the outcome as unknown, check the destination system before repeating the request.

Examples

Try a read-only request

Use these values with a sample trigger containing customer_id: "cus_123". The public echo service returns the query parameters it received.

  1. In Setup, choose None. In Configure, choose GET and enter https://httpbingo.org/get as the URL.
  2. Add a query parameter named customer_id. Choose the trigger's customer ID as its value, or enter cus_123 as a fixed value.
  3. Select Test step. In Data out, look for status 200 and body.args.customer_id, which contains the echoed value as an array.

Use only sample values with a public echo service. For a live lookup, replace the URL and authentication with those of your API. Map fields from a fresh test of that endpoint.

Send a JSON update

In a sandbox, choose the method required by the API, such as PATCH, and point the URL at a test record. Select JSON under Body Type and enter an object like this:

JSON
{
  "status": "approved",
  "notify": false
}

Replace the fixed values with mapped fields if the workflow supplies them. After testing, check both Data out and the record in the receiving system.

Upload a file from an earlier step

If the API accepts a named attachment, choose Multipart, add a file field using the API's expected name, and map the file from an earlier step. Add any required text fields as separate rows. For an API that expects only file bytes, choose Binary and map the file as the body.

Troubleshoot a request

What you seeWhat to check
401 or 403Check the auth mode, token scope, key header name, and permissions on the target resource. If the site requires a browser challenge, use its supported API.
404Confirm the path, API version, and mapped record ID. Use Continue on HTTP error with a Filter or Path if a missing record is expected.
400, 415, or 422Check the API's required fields, body type, content type, and resolved values in Data in. Read the API's response body when available.
429 or 5xxCheck rate limits and the API's status. Use retries for requests that are safe to repeat. Verify the remote result if a write may have completed.
200 with text or 204 with an empty bodyCheck the Content-Type and whether the API promises a payload. A text body has no nested JSON fields to map.
Timeout or body too largeUse pagination, smaller responses, or smaller uploads. For a slow endpoint, review the overall timeout budget and retries together.

Use Run history and Error handling to investigate failed live runs. For reusable outbound delivery settings, see Destination.

For APIs that finish jobs asynchronously, add Wait for Webhook and pass its callback URL in the job request.