Skip to main content

Airtable Connector

Airtable Airtable is a spreadsheet-database hybrid, with the features of a database but applied to a spreadsheet. This component allows listing, creating, deleting, and updating records in an Airtable Base.

API Documentation

This component was built using the Airtable Web API.

Connections

API Key and Base ID (Deprecated)

Authenticate requests to Airtable using an API key and base ID. This connection is deprecated as of February 1, 2024.

Deprecation Notice

Airtable API keys have been deprecated as of February 1, 2024.

Use OAuth 2.0 or personal access tokens instead for all new integrations.

InputCommentsDefault
Airtable Base IDVisit https://airtable.com/api and select your workspace. The ID of your base will be printed for you in green.
API KeyYou can generate an API key from https://airtable.com/account.

OAuth 2.0

Authenticate requests to Airtable using OAuth 2.0.

To create an Airtable OAuth 2.0 connection, an OAuth integration must be registered in Airtable.

Prerequisites

  • An Airtable account with permissions to create OAuth integrations

Setup Steps

  1. Log in to Airtable and navigate to airtable.com/create/oauth.
  2. Click Register new OAuth integration.
  3. Fill in the required fields:
    • App name: A descriptive name for the integration
    • App description: Brief description of the integration's purpose
    • Redirect URLs: Enter https://oauth2.integrations.acme.com/callback as the OAuth redirect URL
  4. Under Scopes, select the scopes required for the integration. Refer to Airtable's OAuth scopes documentation for details on available scopes.
    • Common scopes include:
      • data.records:read - Read records from bases
      • data.records:write - Create, edit, and delete records
      • schema.bases:read - Read base schema information
      • schema.bases:write - Create and modify base schema
      • webhook:manage - Create and manage webhooks
  5. Click Save to create the integration.
  6. Copy the Client ID and Client secret values displayed on the integration details page.

Configure the Connection

  • Enter the Client ID and Client Secret from the OAuth integration.
  • For Scopes, enter the selected scopes as a space-separated list. For example:
    data.records:read data.records:write schema.bases:read webhook:manage
  • The default scopes include common permissions for reading, writing, and managing webhooks. Adjust the scopes based on the specific requirements of the integration.

The connection is now ready to authenticate with Airtable.

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
ScopesA space-delimited set of one or more scopes to get the user's permission to access.data.records:read data.records:write data.recordComments:read data.recordComments:write schema.bases:read schema.bases:write webhook:manage
Client IDProvide the Client ID you received from https://airtable.com/create/oauth.
Client SecretProvide the Client Secret you received from https://airtable.com/create/oauth.

Personal Access Token

Authenticate requests to Airtable using a personal access token.

A personal access token provides user-specific access to Airtable bases and can be used for testing integrations or for user-scoped operations.

Personal Access Tokens vs OAuth 2.0

Personal access tokens are user-scoped and suitable for testing or personal automations. For production integrations where users need to authenticate with their own credentials, OAuth 2.0 is recommended.

Prerequisites

  • An Airtable account with access to the bases that will be accessed

Setup Steps

To generate a personal access token:

  1. Log in to Airtable and navigate to airtable.com/create/tokens.
  2. Click Create new token.
  3. Enter a descriptive Token name to identify the token's purpose.
  4. Under Scopes, select the permissions required for the integration. Refer to Airtable's scopes documentation for details on available scopes.
    • Common scopes include:
      • data.records:read - Read records from bases
      • data.records:write - Create, edit, and delete records
      • schema.bases:read - Read base schema information
      • schema.bases:write - Create and modify base schema
  5. Under Access, select the specific bases the token should have access to, or select All current and future bases in all current and future workspaces for broader access.
  6. Click Create token.
  7. Copy the token value immediately. The token will not be shown again after leaving the page.

The token format will look similar to: patAbCdEfGh1234567.1234567890abcdefghijklmnopqr

Configure the Connection

  • Enter the personal access token into the API Key field of the connection configuration.
Token Security

Store the token securely. Personal access tokens do not expire but can be revoked at any time from the token management page.

InputCommentsDefault
API KeyYou can generate an API key from https://airtable.com/create/tokens

Triggers

Base Change Notifications

Receive base change notifications from Airtable. Automatically creates and manages a webhook subscription when the instance is deployed, and removes the subscription when the instance is deleted.

InputCommentsDefault
ConnectionThe Airtable connection to use.
Base IDThe ID of the base to interact with.
Data TypesTypes of changes to monitor.["tableData"]
Record Change ScopeOptional table ID or view ID to limit webhook to specific table/view. Leave empty to monitor all tables in base.

New and Updated Records

Checks an Airtable table for new and updated records on a configured schedule, using LAST_MODIFIED_TIME() as the server-side filter. Records are partitioned by createdTime versus lastPolledAt: records whose createdTime is after lastPolledAt go to the created bucket, while older records modified since lastPolledAt go to the updated bucket.

InputCommentsDefault
ConnectionThe Airtable connection to use.
Base IDThe ID of the base containing the table to poll.
Table NameThe name of the table to access.
ViewOptional view (name or ID) to scope the poll to. When set, only records in that view are considered.
Additional Filter FormulaOptional Airtable formula combined (AND) with the modification-time filter applied by the trigger.
Show New RecordsWhen true, records with a createdTime after the last poll are included in the trigger results.true
Show Updated RecordsWhen true, records modified after the last poll (but created earlier) are included in the trigger results.true

Webhook

Receive and validate webhook requests from Airtable for manually configured webhook subscriptions.

Actions

Create Record

Create a new record in the specified table.

InputCommentsDefault
ConnectionThe Airtable connection to use.
Base IDThe ID of the base to interact with. Required if you use an OAuth connection, and optional if you specify base ID with a legacy API Key connection.
Table NameThe name of the table to access.
Record FieldsThe key-value pairs to set on the record. Each key maps to a column name in the table.
Dynamic FieldsA JSON array of key-value pairs that can be configured at deploy time with a key-value config variable. When provided, the default 'Record Fields' input is ignored.

Create Webhook

Create a new webhook subscription for a base.

InputCommentsDefault
ConnectionThe Airtable connection to use.
Base IDThe ID of the base to interact with. Required if you use an OAuth connection, and optional if you specify base ID with a legacy API Key connection.
Notification URLThe URL that receives notification pings when the webhook fires.
SpecificationA JSON object describing the types of changes the webhook listens for.

Delete Record

Delete a record from the specified table.

InputCommentsDefault
ConnectionThe Airtable connection to use.
Base IDThe ID of the base to interact with. Required if you use an OAuth connection, and optional if you specify base ID with a legacy API Key connection.
Table NameThe name of the table to access.
Record IDThe unique identifier for the record. Functions as the primary key for the row in the table.

Delete Webhook

Delete a webhook subscription from a base.

InputCommentsDefault
ConnectionThe Airtable connection to use.
Base IDThe ID of the base to interact with. Required if you use an OAuth connection, and optional if you specify base ID with a legacy API Key connection.
Webhook IDThe unique identifier for the webhook.

Get Base Schema

Retrieve the schema of all tables within a base.

InputCommentsDefault
ConnectionThe Airtable connection to use.
Base IDThe ID of the base to interact with. Required if you use an OAuth connection, and optional if you specify base ID with a legacy API Key connection.

Get Current User

Retrieve the user ID and OAuth scopes for the current user.

InputCommentsDefault
ConnectionThe Airtable connection to use.

Get Record

Retrieve a record by ID from the specified table.

InputCommentsDefault
ConnectionThe Airtable connection to use.
Base IDThe ID of the base to interact with. Required if you use an OAuth connection, and optional if you specify base ID with a legacy API Key connection.
Table NameThe name of the table to access.
Record IDThe unique identifier for the record. Functions as the primary key for the row in the table.

List Bases

List all bases within the Airtable account.

InputCommentsDefault
ConnectionThe Airtable connection to use.

List Records

List all records within the specified table.

InputCommentsDefault
ConnectionThe Airtable connection to use.
Base IDThe ID of the base to interact with. Required if you use an OAuth connection, and optional if you specify base ID with a legacy API Key connection.
Table NameThe name of the table to access.
ViewThe name or ID of a view in the table. When set, only records in that view are returned, sorted in the order defined by the view.
FieldsThe names (or IDs) of the fields to return. When omitted, all fields are returned.
Filter By FormulaAn Airtable formula used to limit results to records matching specific criteria.

List Webhooks

List all webhook subscriptions registered for a base.

InputCommentsDefault
ConnectionThe Airtable connection to use.
Base IDThe ID of the base to interact with. Required if you use an OAuth connection, and optional if you specify base ID with a legacy API Key connection.

Raw Request

Send a raw HTTP request to Airtable.

InputCommentsDefault
ConnectionThe Airtable connection to use.
URLThe request path only (e.g., /v0/meta/bases/{BASE_ID}/tables). The base URL https://api.airtable.com is already included. For example, to call https://api.airtable.com/v0/meta/bases/{BASE_ID}/tables, enter only /v0/meta/bases/{BASE_ID}/tables in this field.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false

Refresh Webhook

Extend the expiration of an existing webhook subscription.

InputCommentsDefault
ConnectionThe Airtable connection to use.
Base IDThe ID of the base to interact with. Required if you use an OAuth connection, and optional if you specify base ID with a legacy API Key connection.
Webhook IDThe unique identifier for the webhook.

Update Record

Update the field values of a record in the specified table.

InputCommentsDefault
ConnectionThe Airtable connection to use.
Base IDThe ID of the base to interact with. Required if you use an OAuth connection, and optional if you specify base ID with a legacy API Key connection.
Table NameThe name of the table to access.
Record IDThe unique identifier for the record. Functions as the primary key for the row in the table.
Record FieldsThe key-value pairs to set on the record. Each key maps to a column name in the table.
Dynamic FieldsA JSON array of key-value pairs that can be configured at deploy time with a key-value config variable. When provided, the default 'Record Fields' input is ignored.