---
url: https://kit.kambium.net/docs/connect-airtable.md
---
# Add an Airtable connection

<span id="connect-airtable"></span>

Connect an engine to a dedicated Airtable test base. To try the generated
Airtable → Slack engine with simulated accounts, follow the
[Airtable simulator walkthrough](https://kit.kambium.net/docs/airtable-simulator.md).

The generated Airtable → Slack engine already declares an Airtable connection.
For a real account, use your hosted app or run the backend locally against
[hosted development services](https://kit.kambium.net/docs/local-development.md#development-with-hosted-services).

<span id="_1-declare-the-engine-connection"></span>
<span id="1-declare-the-engine-connection"></span>

::: details Declare Airtable on your own engine

In the engine's browser-safe runtime declaration, add an Airtable connection:

```ts
connections: {
  airtable: { provider: "airtable" },
},
```

Add the matching binding to the backend `defineEngine` definition, preserving
its tasks and lifecycle hooks. The generated app already defines both for
Airtable → Slack. Its backend imports `airtableConnection` from
`engines/connections.ts` and adds a managed webhook and handler. For a custom
engine, an OAuth binding can look like this:

```ts
connections: {
  airtable: {
    oauth: {
      clientId: env.AIRTABLE_CLIENT_ID,
      clientSecret: env.AIRTABLE_CLIENT_SECRET,
      scopes: ["schema.bases:read", "data.records:read", "webhook:manage"],
      redirectUri: new URL("/api/connect-callback-airtable", frontendUrl).href,
    },
  },
},
```

Here `env` contains backend settings and `frontendUrl` is the dashboard origin.
These scopes cover reading base metadata and records and managing webhooks.
Choose scopes for your engine's actions and keep secrets in the backend binding.
See [engine connection contracts](https://kit.kambium.net/docs/engines.md#connections).

:::

## Configure the OAuth app

<span id="_1-configure-your-oauth-app"></span>
<span id="1-configure-your-oauth-app"></span>
<span id="_2-configure-the-oauth-app"></span>
<span id="2-configure-the-oauth-app"></span>

In [Airtable's integration settings](https://airtable.com/create/oauth), create or
open the OAuth integration your engine will use. Enable the scopes declared in
that engine's `connections.airtable.oauth.scopes`.

### Callback URL

Register your dashboard origin followed by `/api/connect-callback-airtable`.
For a backend running on your workstation against hosted development services,
the default dashboard callback is:

```text
http://127.0.0.1:5173/api/connect-callback-airtable
```

## Save the app credentials

<span id="_2-supply-the-app-credentials"></span>
<span id="2-supply-the-app-credentials"></span>
<span id="_3-supply-credentials-for-this-engine"></span>
<span id="3-supply-credentials-for-this-engine"></span>

Save the client ID and client secret in **Cloud → Configuration → Airtable**
for the environment running the backend. The generated app declares them as
`AIRTABLE_CLIENT_ID` and `AIRTABLE_CLIENT_SECRET`. Restart your development
backend or deploy the hosted backend to load the new credentials.

## Connect an engine instance

<span id="_3-connect-a-test-base"></span>
<span id="3-connect-a-test-base"></span>
<span id="_4-connect-an-engine-instance"></span>
<span id="4-connect-an-engine-instance"></span>

Sign in through your dashboard. For the generated Airtable → Slack sample, use
**Add engine**, connect a development Airtable account and select a dedicated
test base. For a custom engine, first register its page and connection setup.
[Dashboard integration](https://kit.kambium.net/docs/dashboard.md#engine-pages)

![New Airtable to Slack engine with Connect Airtable above the base picker](https://kit.kambium.net/docs/assets/connect-airtable-2026-11-28-1376x642.B33qTR2U.webp)

To verify the Airtable → Slack sample, also configure Slack credentials, connect
a Slack test workspace and choose a channel. Activate the engine, edit an
existing record in the selected base and check for a Slack notification.
When the backend runs on your workstation, set up
[local webhooks](https://kit.kambium.net/docs/local-webhooks.md) before activation.
