# How do I call an outside API from a workflow?

> Send record data with Trigger Webhook. To shape the request and use the reply, call the API from a Run Custom Code step and pass the result on.

Source: https://tadabase.com/docs/faq/how-do-i-call-an-outside-api  
Status: Verified Nov 22, 2026. Checked against the current product

To send data to another system, add a **Trigger Webhook** step: it posts the record as JSON to the URLs you enter. To choose the method, headers and body yourself and use the reply in later steps, call the API from a **Run Custom Code** step with `fetch` and pass the values on with `returnData`.

## Which step to use

| You want to | Use |
| --- | --- |
| Tell another system about a record (Zapier, Make, your own service) | **Trigger Webhook**. It sends a `POST` with a JSON body and reports only whether it worked, not the reply. |
| Send your own request and use the response | **Run Custom Code**. Keep API keys in **App Secrets** and read them with `getAppSecret`. See [Run custom JavaScript in a workflow](https://tadabase.com/docs/workflows/running-custom-javascript). |
| Read rows from Stripe, Airtable, HubSpot and other connected sources | **Get Records from an External Source** (Business Pro and Business Elite, in the Tadabase AI builder). See [Get records from an external data source](https://tadabase.com/docs/workflows/get-records-from-an-external-source). |
| Change the shape of a JSON reply before saving it | **Transform JSON**. See [Reshape JSON with Transform JSON](https://tadabase.com/docs/workflows/reshape-json-with-transform-json). |

## What about Pipes?

The **Trigger Pipe** step still runs pipes an app already has, but pipes are the older way to call an API and are not recommended for new work.
