---
title: "Connect any API to Softr"
description: "Connect any REST API to Softr when a service has no integration: use it as a data source in your apps, call it from workflows, and receive data with webhooks."
canonical: "https://docs.softr.io/integrations/any-api"
updated: "2026-12-04"
---

# Connect any API to Softr

When a service has no integration in Softr, connect its REST API yourself. You connect it once for your workspace, and your credentials stay in the connection, never in an app's code.

Then your apps can show its data and your workflows can call it. Most services with a REST API work this way, such as Shopify, Stripe, your own backend, or a public API.

## Connect a REST API

You connect a REST API once per workspace. Then you can use it in all your apps.

1. In the Softr Studio dashboard, select **Integrations** in the left menu.

2. Select **Connect new**.

   ![The Integrations page of the dashboard, with the Connect new button](/data-sources/rest-api/integrations.webp)

3. In the **Select an integration** window, select **Add custom** next to **Custom connections**. If the service is in the **Custom connections** list, select it instead: Softr fills in its address and sign-in method.

   ![The Select an integration window, with the Custom connections section](/data-sources/rest-api/select-integration.webp)

4. In the **Connect your account** window, fill in these fields:
   - **Provider**: a name for the API, for example "Stripe". You see this name in your list of integrations.
   - **Authentication type**: **API key** or **OAuth**. The API's own documentation tells you which one it uses.
   - **Base URL**: the root address of the API, for example `https://api.stripe.com`. The base URL is optional. Softr AI needs it to call the API from your app.

5. Fill in the fields of your authentication type, as described below, then select **Continue**.

### Authenticate with an API key

- Select **Bearer token** when the API expects `Authorization: Bearer <key>`. Then paste the key in **API key**.
- Select **Custom header** when the API expects the key in another header. Enter the header name in **Header**, then paste the key in **API key**.

The blue box shows the exact header that Softr sends with every request.

![The Connect your account window for a Stripe API key](/data-sources/rest-api/connect-api-key.webp)

### Authenticate with OAuth

1. Copy the **OAuth Redirect URL** and add it to the OAuth app settings of the API.
2. Enter the **Authorization URL**, the **Access token URL**, the **Client ID**, the **Client secret**, and the **Scopes** from the API's documentation.
3. Select **Continue**, then sign in to the API in the window that opens.

![The Connect your account window with OAuth selected](/data-sources/rest-api/connect-oauth.webp)

### OAuth advanced settings

Some APIs need extra parameters in the OAuth requests. The API's documentation lists them. To add them, turn on **Advanced settings** before you select **Continue**. Then select **Add Parameter** in the group that the API names:

- **Authorize parameters**: Softr adds them to the authorization URL, where the person signs in.
- **Access token parameters**: Softr sends them when it gets the first access token.
- **Refresh token parameters**: Softr sends them when it refreshes an expired access token.

For example, Google returns a refresh token only when the authorization URL has `access_type=offline` and `prompt=consent`. Without a refresh token, the connection stops working when the first access token expires.

![OAuth advanced settings with the access\_type and prompt authorize parameters for Google](/data-sources/rest-api/oauth-advanced.webp)

> **Warning**
>
> Each API works differently. This page shows how Softr's REST API connection works. It is not a step-by-step guide for one specific API.
>
> If you need help with an API beyond the scope of this page, reach out to one of our [Certified Softr Experts](https://www.softr.io/softr-experts). They can guide you or build it for you.

## Add API resources

A resource is one API call that you save and reuse in your apps, for example "Invoices" or "Customers by email". Resources support the **GET** and **POST** methods.

1. On the **Integrations** page, select the **...** menu of your REST API integration.

2. Select **Edit resources**.

   ![The menu of a REST API integration, with Edit resources](/data-sources/rest-api/edit-resources.webp)

3. In the **Resources** window, select **Add**.

   ![The Resources window of the Stripe integration, with five resources](/data-sources/rest-api/resources.webp)

   > **Tip**
   >
   > You can also add a resource from a block. In the block's **Source** tab, open the **Resource** dropdown and select **Add resource**.

4. Fill in the resource:
   - **Name**: a name that helps you find the resource in the list.
   - **HTTP method**: **GET** for most endpoints. Select **POST** only when the API's documentation uses POST to return data. See [Body](#body).
   - **URL**: the endpoint that Softr calls, for example `https://api.stripe.com/v1/invoices`.

5. Select **Execute** to send a test request to the API.

   ![A new resource with its name, HTTP method, URL, and the Execute button](/data-sources/rest-api/resource-form.webp)

6. When the test request succeeds, select **Save**.

> **Info**
>
> Softr saves a resource only after a successful **Execute**. When you change the request (URL, headers, URL params, placeholders, body, or pagination), select **Execute** again.

You often need the optional sections and the schema too. Read the sections below before you save.

## Use cases

| Use case                            | What it does                                                              |
| ----------------------------------- | ------------------------------------------------------------------------- |
| **Listings from another platform**  | Show real estate listings, such as from Zillow, in a list block.          |
| **Store inventory**                 | Show inventory from a store platform, such as Shopify.                    |
| **Invoices from a payment service** | Show a customer's invoices from Stripe on their account page.             |
| **Public APIs**                     | Connect public APIs, for example from APIsList, Public APIs, or RapidAPI. |
| **New CRMs and productivity tools** | Connect a tool that has no Softr integration yet.                         |
| **Send data to a service**          | Call the API from a workflow or a block button to create or change data.  |

## Use a REST API as a data source

A connected API can feed your apps like a table. You describe each list of data as a resource: the request to send and the part of the response to keep.

Below the **Execute** button, the resource has more sections. Turn on a section with its toggle. Every API is different, so you may need all of these sections or none of them. Check the API's documentation.

### Headers

The **Headers** section always shows the authentication header of the integration. Select **Add** to add a header that only this resource needs.

![The Headers and URL params sections of a resource](/data-sources/rest-api/headers-url-params.webp)

### URL params

Use **URL params** to add query parameters to the URL. Add each parameter as a name and a value. You can also type them in the URL field, but this section keeps them easier to read and change.

Find the parameter names and values in the API's documentation. In the example above, the `customer` parameter tells the Stripe invoices endpoint to return the invoices of one customer:

![The customer parameter in the Stripe documentation for listing invoices](/data-sources/rest-api/stripe-invoices-docs.webp)

A parameter value can be static or dynamic. The customer changes with the person who is logged in. So the example uses the placeholder `{LOGGED_IN_USER:StripeID}`. Softr replaces it with the `StripeID` field of the logged-in user.

### Placeholders

Placeholders send dynamic data to the API, based on the logged-in user, the page, or the filters and search of a block. Write a placeholder in curly braces, for example `{placeholderName}`, in the URL, the URL params, or the body. Softr doesn't replace placeholders in headers.

You can use four kinds of dynamic placeholders:

- `{LOGGED_IN_USER:<FIELD NAME>}`: Sends a field of the logged-in user. `{LOGGED_IN_USER:EMAIL}` and `{LOGGED_IN_USER:NAME}` send the email and the name of the user.

- `{recordId}`: Sends the ID of the record that the page shows (the `recordId` in the page URL).

- `{URL_PARAM:<PARAMETER NAME>}`: Sends the value of a parameter in the page URL.

- `{filter.<FIELD NAME FROM API>}`: Sends the value of a search or filter in a block.

When a request has placeholders, the **Placeholders** section lists them. Enter a sample value for each one, so that **Execute** can test the request. Your live app doesn't use these sample values.

![The Placeholders section with a sample value for the logged-in user's Stripe ID](/data-sources/rest-api/placeholders.webp)

Use a `{filter.<FIELD NAME FROM API>}` placeholder to filter or search the API from a block. In the example below, the **Customers by email** resource sends the search text to Stripe in the `email` URL param. When the block has no search or filter value, Softr removes any URL param that contains only a filter placeholder. The API then returns all records.

![A resource that sends the filter.email placeholder in a URL param](/data-sources/rest-api/filter-placeholder.webp)

_Use the filter placeholder to filter by dynamic values against the API._

Then turn on the search bar of the block in its **Content** tab:

![The List block settings with the search bar turned on](/data-sources/rest-api/block-search.webp)

_Turn on the search bar of the block so that people can search the API._

> **Tip**
>
> Softr treats anything inside `{}` as a placeholder.
>
> `{LOGGED_IN_USER:<FIELD NAME>}` sends data of the logged-in user in the API request.\
>
> `{filter.<FIELD NAME FROM API>}` filters by a dynamic value, if the API supports it.\
>
> `{recordId}` sends the current record in the API request.\
>
> `{URL_PARAM:<PARAMETER NAME>}` sends a parameter of the page URL in the API request.

### Body

The **Body** section shows when the HTTP method is **POST**. Some APIs use POST to return data, for example search endpoints, GraphQL APIs, or previews. Write the body as JSON. Use the API's documentation to know which keys to send.

In this example, the **Upcoming invoice** resource gets a preview of the next Stripe invoice of the logged-in user:

![The Body section of a POST resource that previews the next Stripe invoice](/data-sources/rest-api/body.webp)

> **Warning**
>
> A REST API data source is read-only. Softr calls a resource each time a block loads its data, so never use a resource to create, change, or delete data. To send data to an API, use the [Call API](/classic/call-api-and-field-mapping#call-api) action on a block button, or the **Call API** action in [Softr Workflows](/workflows/overview).

### Pagination

Most APIs return a limited number of records per request. Use the **Pagination** section to tell Softr how to get the next page of results. Softr uses cursor pagination:

- **Response parameter - cursor**: Where the cursor of the next page is in the response (**Body** or **Header**), and its name. Turn on **Transformer function** if you need JavaScript to read the cursor.

- **Request parameter - cursor**: Where Softr sends the cursor in the next request, and the parameter name.

- **Request parameter - limit**: The parameter that sets the number of records per page, and its value.

In the Stripe example, Softr sends the ID of the last invoice as `starting_after`, and asks for 25 invoices per page with `limit`.

![The Pagination section with the cursor and limit parameters for Stripe](/data-sources/rest-api/pagination.webp)

### Transformer

Use the **Transformer** section to change the API response with JavaScript. A transformer can extract a nested list from the response, or calculate a new field. AI tools are good at writing these functions.

In the Stripe example, `return response.data;` keeps only the list of invoices in the `data` key of the response.

![The Transformer section with return response.data](/data-sources/rest-api/transformer.webp)

### Check the response

When you select **Execute** and the request succeeds, three tabs show below the sections: **Schema**, **Transformed JSON**, and **Raw JSON**. Scroll down to see them.

### Schema tab

The **Schema** tab lists the fields of the response. Softr Studio shows these fields when you set up a block. Each field has four settings:

1. **Key**: the name of the field in the response.
2. **Type**: how Softr shows and filters the field. The types are TEXT, NUMBER, BOOLEAN, DATE, DATETIME, TIMESTAMP, OBJECT, ARRAY, EMAIL, and URL.
3. **Enabled**: clear this checkbox to hide the field in Softr Studio.
4. **Is ID field**: turn on this toggle for the field that identifies each record. When no field is the ID field, Softr shows a warning.

![The Schema tab with the Key, Type, Enabled, and Is ID field settings](/data-sources/rest-api/schema.webp)

### Transformed JSON tab

The **Transformed JSON** tab shows the response after your transformer runs. The **Schema** tab is built from this JSON.

![The Transformed JSON tab with the list of Stripe invoices](/data-sources/rest-api/transformed-json.webp)

### Raw JSON tab

The **Raw JSON** tab shows the response exactly as the API sent it. Check this tab first, because it shows which transformer you need, if any. In the Stripe example, the invoices are in the `data` key, so the transformer returns `response.data`.

![The Raw JSON tab with the full Stripe response](/data-sources/rest-api/raw-json.webp)

## Call it from a workflow

The **Call API** step sends any request to the API, with the connection's credentials. Use it to push data to the service or to fetch data in the middle of a process. See [Steps](/workflows/steps#call-api).

## Call it from your app

Ask Softr AI to use the connected API in your app. For example: "Show each client's open Stripe invoices on their account page." The call runs on Softr's servers with the connection's credentials. Your app can only call URLs under the connection's **Base URL**.

The connection sends its key as a Bearer token or in a header of its own. An API that takes its key only in the query string, or that signs each request, is not supported yet in apps.

## Receive data with a webhook

To let a service send data to Softr when something happens, start a workflow with the **Webhook** trigger. The service calls the workflow's URL, and the workflow reads the data it receives. See [Triggers](/workflows/triggers).

## Keep credentials safe

- Store keys in the connection only. Never paste a key into a prompt, a page or a workflow's text.
- Use a key with the smallest access the job needs, such as a read-only key.
- When a key leaks, revoke it in the service, then update the connection.

## Limits

- The REST API connection is available on all plans, including Free.
- A REST API is not supported as a data source for the Users of your app.

## FAQ

**Can I use REST API to update data in Softr?**

No. A REST API data source is read-only: blocks can show its data, but the **Add record** and **Edit record** buttons aren't available. To send data to an API, use the [Call API](/classic/call-api-and-field-mapping#call-api) action on a block button, or the **Call API** action in [Softr Workflows](/workflows/overview).

**How do I add authentication for my API?**

Select **API key** or **OAuth** when you connect the API. Softr adds the authentication header to every request.

**Can I connect multiple APIs to one Softr app?**

Yes. You can add multiple REST API connections and use them across different blocks.

**Which plan do I need for a REST API?**

The REST API connection is available on all plans, including Free.

**Can I use a REST API as the data source for my app's users?**

No. A REST API is not supported as a data source for the Users of your app.
