> ## Documentation Index
> Fetch the complete documentation index at: https://docs.base44.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connecting Airtable to your app

> Show, add, and update Airtable records in your app, and run workflows when your bases change, using one shared account or each person's own.

Connect your app to Airtable to show records from your bases, add new ones, and keep them up to date as people use your app. You can also run workflows when records change in a base. Use one shared account for your whole app, or let each person connect their own Airtable account.

> [!NOTE]
>
> If your app already connects to Airtable with a personal access token saved as secrets, it keeps working. To connect Airtable now, use the Airtable connector.

***

## What you can do

Bring your Airtable bases into your app.

> [card] Show records
>
> Pull records from an Airtable table into a dashboard, list, or custom view in your app.

> [card] Add records
>
> Create an Airtable record when someone submits a form or takes an action in your app.

> [card] Update records
>
> Change Airtable fields when something happens in your app, such as an order shipping.

> [card] Browse bases
>
> See the bases and tables your app can reach, and their fields, so the AI chat builds on your real data.

> [card] [Run workflows](#running-workflows)
>
> Start a workflow when something changes in a base, such as a new record.

**Example prompts**

Describe the base or table, what your app should do with it, and when, in the AI chat. For example:

```text wrap theme={null}
Pull data from Airtable into my app dashboard.
```

```text wrap theme={null}
Display Airtable records in a custom view.
```

```text wrap theme={null}
When someone submits the booking form, add a record to the Bookings table in my Airtable base.
```

```text wrap theme={null}
Update Airtable fields based on app events.
```

***

## Connecting Airtable

Choose how people connect: one shared account for your whole app, or each person's own account.

* **Shared connector:** Best for a team base that everyone using your app works from, like a shared inventory or project tracker.
* **App user connector:** Best when each person works with their own bases, like a dashboard of each person's own records.

> [tab] Shared connector
>
> Connect one Airtable account. The bases you pick when you sign in to Airtable are the ones every app using this connection works with, for everyone who uses those apps.
>
> **To add a shared Airtable connector:**
>
> 1. Click **Connectors** in your workspace sidebar.
> 2. Search for **Airtable** and click it.
> 3. Select **Shared connector**, then click **Next**.
> 4. Enter a **Connection name**.
> 5. Choose where the connection can be used under **Who can access**:
>    * **Apps and Super agent:** Your apps and your Superagent can both use it. This is the default.
>    * **Apps only:** Only your apps can use it.
>    * **Super agent only:** Only your Superagent can use it.
> 6. Choose what your app can do under **Permissions**:
>    * **Read-only:** Your app can view your bases, tables, and records. This is the default.
>    * **Read & write:** Your app can also create, update, and delete records.
>    * **Custom:** Choose exactly which permissions the connection gets.
> 7. Click **Add connector**.
> 8. Sign in to Airtable, choose the bases your app can use, and allow access.
> 9. Open your app in the app editor.
> 10. Ask the AI chat to use your Airtable data, such as showing records from a table.

> [tab] App user connector
>
> Each person connects their own Airtable account, so your app works with the bases they choose to share.
>
> > [!WARNING]
> >
> > Only workspace owners and admins can set this up.
>
> > [!TIP]
> >
> > **Before you set this up:** You need an Airtable account you can register an OAuth integration in. An OAuth integration is how Airtable knows your app is allowed to ask people to sign in and share their bases. You create the integration during these steps, using Airtable's guide to [OAuth integrations](https://airtable.com/developers/web/guides/oauth-integrations).
>
> **To add an app user Airtable connector:**
>
> 1. Click **Connectors** in your workspace sidebar.
>
> 2. Search for **Airtable** and click it.
>
> 3. Select **App user connector**, then click **Next**.
>
> 4. Copy the **Callback URL**.
>
> 5. [Register an OAuth integration](https://airtable.com/create/oauth) in Airtable, or open an existing one.
>
> 6. Enter the Callback URL as the redirect URL in your Airtable OAuth integration.
>
> 7. Select these scopes in your Airtable OAuth integration: `user.email:read`, `data.records:read`, `data.records:write`, `schema.bases:read`, and `webhook:manage`.
>
> 8. Fill in the **Add Airtable Connection** form:
>    * **Connector name:** A name you'll recognize later.
>    * **Client ID** and **Client Secret:** Copy these from your Airtable OAuth integration.
>
> 9. (Optional) Change the scopes under **Scopes** and **Additional scopes**. [Scopes and permissions](#scopes-and-permissions) says what each one does.
>
>    > [!NOTE]
>    >
>    > If you add a scope here, select it in your Airtable OAuth integration too.
>
> 10. Click **Add Connector**.
>
> 11. Open your app in the app editor.
>
> 12. Ask the AI chat to add a way for people to connect their own Airtable account. For example:
>
>     ```text wrap theme={null}
>     Add a Connect Airtable button to the settings page so each person can connect their own Airtable account and see records from their bases.
>     ```
>
>     People who use your app then click the button you added, sign in to Airtable, and choose the bases to share.

***

## Scopes and permissions

Scopes control what your app can do in Airtable. You choose them when you set up a connector.

> [card]
>
> **1. Base44 adds**
>
> This is always included, so it shows as a locked scope under **Custom** for a shared connector or under **Scopes** for an app user connector.
>
> * `user.email:read`: Identify the Airtable account that connects
>
> **2. You configure**
>
> For a shared connector, **Read-only** gives your app `data.records:read` and `schema.bases:read`, and **Read & write** also gives it `data.records:write`.
>
> Choose **Custom** to select scopes yourself.
>
> To [run workflows](#running-workflows), a shared connection also needs `webhook:manage`. It isn't in the list under **Custom**, so the AI chat asks you to allow it while it builds an Airtable workflow.
>
> For an app user connector, these scopes are selected under **Scopes** at first. Remove any your app doesn't need:
>
> * `data.records:read`: Read records in the bases you can access
> * `data.records:write`: Create, update, or delete records in the bases you can access
> * `schema.bases:read`: Read the structure of the bases you can access, such as their tables and fields
>
> You can also select these under **Scopes**:
>
> * `data.recordComments:read`: Read comments on records
> * `data.recordComments:write`: Create, edit, or delete comments on records
> * `schema.bases:write`: Change the structure of bases, such as their tables and fields
>
> **Additional scopes** starts with `webhook:manage`. Make sure your Airtable OAuth integration allows every scope the connector asks for.
>
> **Access:** Your app works with the bases chosen when someone signs in to Airtable. That's you for a shared connector, and each person for an app user connector.

***

## Running workflows

Run a [connector workflow](https://docs.base44.com/Building-your-app/Creating-workflows.md#connectors) when something changes in an Airtable base. A workflow can start when:

* **A record changes:** A record is added or deleted, or the values in it change, such as a Status moving to Done.
* **A field changes:** A field is added, changed, or deleted, including when it's renamed.
* **A table changes:** A table is added, renamed, or deleted.

> [!WARNING]
>
> **What you need to run workflows:**
>
> * **Permission:** The connection needs `webhook:manage`. The AI chat asks you to allow it while it builds the workflow.
> * **Base access:** The Airtable account that connected needs Creator access to the base in Airtable, and that account must have chosen the base when it signed in to Airtable.

Each workflow watches one base. To run it for one table or one field only, ask the AI chat to add a condition.

Describe the trigger and what should happen in the AI chat. For example:

```text wrap theme={null}
When a record's Status changes to Done in the Projects table in my Airtable base, email the project owner.
```

***

## Using backend functions

Once Airtable is connected, your backend functions can retrieve an access token and call the Airtable API directly. Base44 handles sign-in for you.

* For a shared connection, use `getConnection()` to retrieve the token.
* For an app user connection, use `getCurrentAppUserConnection()` so each request uses the signed-in person's token.

Call the Airtable API at `api.airtable.com` and pass the token in the `Authorization` header. Look up bases and tables by their IDs, which you get from the base and table lists:

```javascript theme={null}
// Shared connection: one account the whole app uses
const { accessToken } = await base44.asServiceRole.connectors.getConnection("airtable");
const headers = { Authorization: `Bearer ${accessToken}` };

const { bases } = await fetch("https://api.airtable.com/v0/meta/bases", { headers }).then((r) => r.json());
const baseId = bases[0].id;

const { tables } = await fetch(`https://api.airtable.com/v0/meta/bases/${baseId}/tables`, { headers }).then((r) => r.json());

const response = await fetch(`https://api.airtable.com/v0/${baseId}/${tables[0].id}?pageSize=100`, { headers });
const { records } = await response.json();
```

> [card] [Shared connectors](https://docs.base44.com/developers/backend/resources/connectors/shared-connectors.md)
>
> Configure, deploy, and call a shared connection from a backend function.

> [card] [App user connectors](https://docs.base44.com/developers/backend/resources/connectors/app-user-connectors.md)
>
> Retrieve a per-user token and call the API as the signed-in person.

***

## Troubleshooting

Check the connection, its permissions, and the bases it can see if Airtable stops working in your app.

> [accordion] The connection needs to be reconnected
>
> If your app loses access to Airtable or its sign-in expires, the connection shows a **Reconnect this connection** section.
>
> * **Shared connector:** [Reconnect it](https://docs.base44.com/Integrations/Connectors.md#managing-your-connectors) and sign in with the same Airtable account. Every app that uses it works again.
> * **App user connector:** Each person reconnects their own Airtable account from inside your app.

> [accordion] My app can't find a base
>
> Your app only sees the bases chosen when someone signed in to Airtable.
>
> * **Shared connector:** Add another shared Airtable connector from **Connectors**, choose the base when Airtable asks which bases to share, then ask the AI chat to use the new connection.
> * **App user connector:** Each person connects their Airtable account again from inside your app and chooses the base.

> [accordion] A workflow doesn't start when my base changes
>
> Check the connection's permission, its access to the base, and how many apps already watch the base.
>
> * **Permission:** If you didn't allow `webhook:manage` when the AI chat asked, ask the AI chat to fix the workflow and allow it this time.
> * **Base access:** Make sure the Airtable account that connected has Creator access to the base in Airtable. If your app can't reach the base, add it the way **My app can't find a base** describes.
> * **Too many apps on one base:** For a shared connector, Airtable lets up to 2 Base44 apps run workflows from the same base, including apps other people built. Turn off the Airtable workflow in another app that watches this base, then try again.

> [accordion] My app can show records but can't change them
>
> The connection needs the `data.records:write` permission to add, update, or delete records.
>
> * **Shared connector:** Approve the new access when the AI chat asks you to connect Airtable, or add a shared connector with **Read & write** selected.
> * **App user connector:** A workspace owner or admin [edits the connector](https://docs.base44.com/Integrations/Connectors.md#managing-workspace-connectors), selects `data.records:write` under **Scopes**, and clicks **Save Changes**. Your Airtable OAuth integration must allow the same scope. People who already connected keep their old access until they connect their Airtable account again.


## Related topics

- [Connecting Slack to your app](https://docs.base44.com/Integrations/slack-connectors.md)
- [Connecting Calendly to your app](https://docs.base44.com/Integrations/calendly-connector.md)
- [Connecting Wix to your app](https://docs.base44.com/Integrations/wix-connector.md)
- [Connecting Notion to your app](https://docs.base44.com/Integrations/notion-connector.md)
- [Connecting Outlook to your app](https://docs.base44.com/Integrations/outlook-connector.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.