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

# Setting Up Airtable OAuth App

> Complete guide to creating and configuring a Airtable OAuth application

## Prerequisites

* Airtable Account

## Step 1: Create Airtable OAuth Integration

1. Visit [https://airtable.com/create/oauth](https://airtable.com/create/oauth)
2. Click **"Register new OAuth Integration"**

<img src="https://mintcdn.com/klavisai/ojd5sBgaQMqaHcSS/images/knowledge-base/airtable_oauth_app/airtable_step1_oauth.png?fit=max&auto=format&n=ojd5sBgaQMqaHcSS&q=85&s=28053d4e9b4a7216f92cf84560dcf48b" alt="OAuth Integration Creation" width="1303" height="703" data-path="images/knowledge-base/airtable_oauth_app/airtable_step1_oauth.png" />

## Step 2: Register an Integration

1. Enter **"Name"**
2. Add redirect URLs: `https://api.klavis.ai/oauth/airtable/callback`
3. Click **"Register Integration"**

Here is an example of Klavis AI OAuth app configuration:

<img src="https://mintcdn.com/klavisai/ojd5sBgaQMqaHcSS/images/knowledge-base/airtable_oauth_app/airtable_step2_redirect.png?fit=max&auto=format&n=ojd5sBgaQMqaHcSS&q=85&s=fd7a95235615464204a45f3e5bfdc6e1" alt="OAuth Settings Configuration" width="1303" height="703" data-path="images/knowledge-base/airtable_oauth_app/airtable_step2_redirect.png" />

Once registered, Airtable will generate your Client ID and Client Secret. You’ll need these for connecting Klavis AI.

## Step 3: Request Scopes

<Note>
  Klavis Airtable MCP Server uses the following OAuth scopes: `data.records:read, data.records:write, data.recordComments:read, data.recordComments:write, schema.bases:read, schema.bases:write, user.email:read`
</Note>

1. After registration, add required scopes.

<img src="https://mintcdn.com/klavisai/2FN45VVIW760Qvl2/images/knowledge-base/airtable_oauth_app/airtable_step3_scopes.png?fit=max&auto=format&n=2FN45VVIW760Qvl2&q=85&s=30817c7c87dfa882e4ab6d229e52d22d" alt="Product Access and Credentials" width="1303" height="703" data-path="images/knowledge-base/airtable_oauth_app/airtable_step3_scopes.png" />

2. Enter Required Info, Then click **"Save Changes"**

<Check>
  You have successfully created an Airtable OAuth application! You now have your Client ID and Client Secret ready for integration with Klavis AI.
</Check>

## (Optional) Step 4: White Labeling

<Note>
  White labeling allows you to customize the OAuth experience with your own branding instead of Klavis AI's.
</Note>

If you want to use your own Airtable OAuth application with custom branding:

1. **Configure White Labeling**: Go to [https://www.klavis.ai/home/white-label](https://www.klavis.ai/home/white-label)
2. **Add Your Credentials**: Enter your Airtable **Client ID** and **Client Secret** from Step 3
3. **Set Redirect URI**: Use `https://api.klavis.ai/oauth/airtable/callback` or your custom callback URL
4. **Initiate OAuth**: Use your client ID when starting the OAuth flow:

   <CodeGroup>
     ```javascript without SDK theme={null}
     // Example: Initiating Airtable OAuth with white-label
     const authUrl = `https://api.klavis.ai/oauth/airtable/authorize?instance_id=${instanceId}&client_id=${yourClientId}`;
     window.location.href = authUrl;
     ```

     ```typescript TypeScript SDK theme={null}
     import { Klavis } from "@klavis/sdk";

     const klavis = new Klavis({
       apiKey: "YOUR_API_KEY"
     });

     // Example: Initiating Airtable OAuth with white-label
     const oauthUrl = await klavis.mcpServer.getOAuthUrl({
       serverName: Klavis.McpServerName.Airtable,
       instanceId: instanceId,
       clientId: yourClientId,
       // redirectUri: YOUR_REDIRECT_URI,
       // scope: "YOUR_SCOPES", 
     });

     window.location.href = oauthUrl;
     ```

     ```python Python SDK theme={null}
     import webbrowser
     from klavis import Klavis
     from klavis.types import McpServerName

     klavis = Klavis(api_key="YOUR_API_KEY")

     # Example: Initiating Airtable OAuth with white-label
     oauth_url = klavis.mcp_server.get_oauth_url(
         server_name=McpServerName.AIRTABLE,
         instance_id=instance_id,
         client_id=your_client_id,
         # redirect_uri="YOUR_REDIRECT_URI",
         # scope="YOUR_SCOPES"
     )

     # Open OAuth URL in user's default browser
     webbrowser.open(oauth_url)
     ```
   </CodeGroup>

<Tip>
  For detailed white labeling implementation and code examples, see our [OAuth & White Labeling guide](/auth/white-label).
</Tip>

## Resources

* [Airtable OAuth Documentation](https://airtable.com/developers/web/guides/oauth-integrations)
* [Klavis OAuth & White Labeling Guide](/auth/white-label)
* [Klavis White Label Dashboard](https://www.klavis.ai/home/white-label)
