Airtables

Airtable API key is gone: create a personal access token instead

Airtable API keys stopped working on 1 February 2024. Create a personal access token with only the scopes and bases a script needs, send it as a Bearer header, confirm it with whoami, see when OAuth or a service account fits better, and plan token rotation or revoke a leaked token.

Open key cabinet with separately tagged brass keys and one key ring on a pull-out ledge.

Open Airtable's personal access tokens page, create a token with the scopes and base your script needs, and copy the complete secret when it appears. This replaces an Airtable API key: legacy keys stopped working on 1 February 2024. Send the new value in an Authorization: Bearer header. For an app such as Zapier, use its Airtable OAuth connection instead.

I'd give each integration its own token, because one replacement should not interrupt unrelated scripts. For a report that only reads an Orders table, start with data.records:read and that one base. Prove the credential works, then prove it can read the intended base before changing a running integration.

PATs are available on every plan. The calls still use the base's workspace allowance: 1,000 API calls per month on Free and 100,000 on Team; Business and Enterprise Scale have no monthly call cap. The separate rate limit is 5 requests per second per base.

Create a personal access token

Use the developer hub in the browser, Mac app or Windows app. Have a secure place ready for the secret, such as your deployment's secret store or a password manager: Airtable shows the full token only once.

  1. Open Developer hub → Personal access tokens. The direct token-page link above opens the same area. Sign in to the account whose permissions the integration should use.
  2. Click Create token. The developer reference calls this Create new token; both lead to the token form.
  3. Name the integration. For the example report, use Orders nightly export. The token's name appears in record revision history, so choose a name the next maintainer can recognize.
  4. Click + Add a scope. Select data.records:read for this read-only example. Add further scopes only for operations the script performs, using the mapping below.
  5. Click + Add a base. Select the Order tracking base, checking its ID if names are similar. Confirm it appears under Access. A scope without a resource does not grant access to that base.
  6. Create the token and copy its complete value. Store it immediately. The value includes an ID, a period and a secret; the Token ID left on the list afterward is not enough to authenticate a request.
Airtable token form: Name Orders nightly export, data.records:read added, and the Add a scope picker filtered to schema.bases:read and schema.bases:write
Add each scope the script needs, such as the ones for reading records and base structure; the token also needs access to the chosen bases and the user's permissions.
Access section of the Airtable token form with the Order tracking base under OPERATIONS, + Add a base below, and the Cancel and Create token buttons
For a script that uses one base, choose + Add a base and pick that base; it should be listed on the form before you create the token.

The token Help guide documents searching resources by name or ID. If you don't know which base your integration calls, find the base ID before granting access to several similarly named bases.

Airtable developer hub Personal access tokens list showing the Orders nightly export token with its Token ID patXXXXXXXXXXXXXX
The Token ID before the period stays on the list; the secret after it is shown once, and requests need both parts.

If you missed the secret, create a new token or regenerate the existing one. There is no reveal-secret button on the token list. Keep the value as an opaque string: Airtable's developer guide warns against validating tokens by a fixed length or format.

Choose the scopes and base access

Three permissions must line up: the token's scope, the base or workspace added under Access, and the account's own permission level. Adding a write scope cannot promote a read-only user. Airtable's authentication rules require Editor access to update records; creating a field requires Creator access and schema.bases:write.

Choose scopes from the script's operations, rather than selecting the entire list. These scope definitions cover the common cases:

What the integration doesScopes to select
Read records from a known base and tabledata.records:read
Read and create, update or delete recordsdata.records:read and data.records:write
Discover tables or fields through base metadataAdd schema.bases:read
Create or change tables and fieldsAdd schema.bases:write, with Creator access

A write-only operation needs its write scope; reading first needs the read scope too. Comments, webhooks and account-email lookup have separate scopes in the same reference. Don't grant them just to make the picker look complete. Scopes beginning with enterprise. require Enterprise Scale, rather than Business.

For one integration using one base, I'd add that base explicitly. Workspace access is useful when a job must automatically reach bases created later, but it also reaches bases moved into that workspace. Airtable checks workspace membership each time the token is used: moving a base out removes that workspace-based access. You don't have to own the workspace to add it; your role still limits operations within each base.

Neither an interface nor a view is a token security boundary. A PAT cannot be restricted to either. A token with record-read access can reach the tables in its authorized base; adding a view parameter merely filters a request. In fact, List records returns fields hidden in that view unless the request explicitly selects fields.

Field and table editing permissions, available on Team and above, can restrict API writes, but don't hide the data from readers. If a service must never receive other tables' data, put the permitted data in a separate base and authorize that base. The broader Airtable permissions guide separates base access, editing and interface access.

Check the token, then the base

Store the secret as AIRTABLE_TOKEN in the environment used by the script. The following shell commands are request examples; replace the base and table placeholders with your own IDs. Keep the token out of source files, browser-delivered JavaScript, URLs, logs and screenshots.

1. Confirm authentication without requesting records

Get user info requires authentication but no scopes. Use -i to include the HTTP response headers:

curl -i "https://api.airtable.com/v0/meta/whoami" \
  -H "Authorization: Bearer $AIRTABLE_TOKEN"

A successful response identifies the token's account. Email is included only with user.email:read, and the scopes list is returned for OAuth access tokens, not PATs. A 401 means the credential was not accepted. Adding another base or scope won't fix authentication.

2. Confirm access to the actual table

Next use a List records request limited to one record. It needs data.records:read, the base added to the token and an account that can read that base:

curl -i --get \
  "https://api.airtable.com/v0/YOUR_BASE_ID/YOUR_TABLE_ID" \
  --data-urlencode "maxRecords=1" \
  -H "Authorization: Bearer $AIRTABLE_TOKEN"

HTTP 200 and a JSON records array confirm this read request succeeded. An empty array can be a valid result for an empty table. A successful whoami request followed by a 403 here points toward base access, scope or permissions. It does not mean you need a new secret.

A read proves no write permission. If the integration also updates records, back up the table or export the relevant data, then validate its intended write on a disposable sample record. Inspect that record and any dependent automations before enabling the production job. Paging, field IDs and request bodies are covered in the Web API walkthrough.

Migrate an old API-key connection

There is no working legacy key to recover from the account page. Even Airtable's older API overview still refers to generating an API key; use the current PAT procedure instead. The underlying base and table IDs can stay the same.

Find every consumer of the old credential: local scripts, scheduled jobs, server deployments and connectors. Record the account owner, required scopes, bases, secret-storage location and person responsible for changing it. Keep the secret itself out of that inventory.

Migration has two different code paths:

  • The old request already uses a Bearer header. Replace the credential value with the complete PAT and check its scopes and resources.
  • The old request uses ?api_key=... in the URL. Remove that parameter and send the PAT in the Authorization header. Tokens in the legacy URL parameter are unsupported; replacing only the value won't migrate this request.

The official JavaScript client keeps the option name apiKey and the environment variable AIRTABLE_API_KEY. Both now take a PAT or OAuth access-token value. For an existing Node.js integration using that variable, update its stored value and retain the expected name:

Airtable.configure({
  apiKey: process.env.AIRTABLE_API_KEY
});

Reload or restart each consumer using its deployment's normal method. Changing a variable in one terminal doesn't update an already running service. Repeat the authentication check and the service's ordinary base request from the environment that will run the job.

Check webhook lifetime separately

Legacy webhooks created with user API keys do not expire, although new ones cannot be created with those keys. Their continued delivery doesn't show that the key can still authenticate API calls. Fetch payloads using a supported PAT or OAuth credential.

A webhook created with a PAT or OAuth expires after seven days. To keep it active, call Refresh webhook or List webhook payloads before it expires. Airtable makes its metadata and past payloads available for seven more days after expiry. Track the webhook’s renewal separately from the token’s lifetime.

Choose the right connection for a third-party app

A PAT suits an integration for yourself, your company or a client under your control. Airtable says integrations where other people grant an app access to their accounts should use OAuth. The PAT-versus-OAuth comparison explains that choice without changing the scope of this migration.

Zapier
Zapier's Airtable app uses OAuth and does not accept PATs. Reconnect the Airtable account from Zapier's Apps page. Enterprise Scale organizations must allowlist Zapier.
Make
Make offers Airtable OAuth and Airtable Token or Key connections. The latter has a Personal Access Token option; its guide recommends data.records:read, data.records:write and schema.bases:read for commonly used modules. I'd choose OAuth where offered, because Airtable advises keeping personal tokens out of third-party services.
A connector still labeled API key
Check its current documentation for PAT support. The label can be old while the connection supports tokens, but a connector that still sends api_key in the URL needs an update or a supported replacement.
An integration that must survive staff changes
Enterprise Scale service accounts can hold PATs or authorize OAuth independently of one employee. Admins create them in Admin Panel → Users → Service accounts. They aren't billed users and can't sign in to the UI. On other plans, document the real account owner and handover process.

When the new token is still refused

Read the response body as well as the HTTP status. Airtable's API troubleshooting guide distinguishes missing credentials, invalid credentials and resource restrictions. A tool's generic connection-failed message can hide those differences.

401: no accepted credential

AUTHENTICATION_REQUIRED indicates a missing or incorrectly passed credential; UNAUTHORIZED with “Invalid authentication token” indicates a rejected value. Check that the request sends Bearer authentication, the entire secret and no added whitespace or line breaks. Sending only the Token ID is a documented cause of authentication failure.

If the secret was regenerated or deleted, replace the stored value. For a previously working enterprise token, ask whether an admin's maximum-lifetime policy has expired it. The PAT troubleshooting steps also describe the WWW-Authenticate response header: error="invalid_token" means Airtable recognized a PAT and rejected it during validation. Its absence is not evidence that the token has correct permissions.

403: the request exceeds access or permissions

For INVALID_PERMISSIONS_OR_MODEL_NOT_FOUND, check the scope, the base resource, your role, the base ID and whether that base still exists. Then inspect field/table editing permissions. An enterprise admin setting, Block API access to organization-owned bases and workspaces, can require the account or service account to be on an API allowlist.

When reads work but record writes fail, check the account's license too. Airtable's troubleshooting guide says Viewer (Restricted) users cannot create, update or delete records through the API; an admin must assign an eligible Editor-or-higher license for those writes. A more powerful PAT does not change that license.

404 or 406: inspect the route and security response

List records uses /v0/{baseId}/{tableIdOrName}. There is no trailing /records; that undefined route returns 404. A resource that no longer exists can also return 404. HTTP 406 “Blocked” is a security-layer response: confirm the request targets api.airtable.com, review headers, and send the request details to Airtable support if the block appears erroneous.

A synced-table write fails

A PAT cannot create or delete records in a synced table or edit its synced fields. Fields added locally remain writable within normal permissions. A linked-record update can fail indirectly if it would create a new record in a synced target table.

Two-way sync does not enable API edits. Its supported Update record automation action is a separate route; custom Run script actions are also excluded. Make an API write to the source or to a suitable ordinary staging table instead of expanding token scopes.

Separate rate limits from monthly caps

A 429 does not prove the token is invalid. The API rate reference sets 5 requests per second per base and 50 per second across all PAT traffic from one user or service account. Creating more PATs for the same account doesn't multiply that second allowance. After exceeding these rates, wait 30 seconds before retrying; airtable.js includes back-off and retry logic.

For low-rate 429s, check the workspace containing the base the integration calls. API call allowances include base metadata requests and connected tools. They are shared workspace limits, rather than a fresh allowance for every token.

Free has a one-time 30-day grace period when its allowance is exceeded; afterward over-limit calls are blocked until the monthly reset. Team traffic slows to 2 requests per second after 100,000 calls. The counter resets on the first day of the calendar month in UTC. On Free, a workspace owner can open Workspace settings: Summary shows Public API calls, while Usage includes base-level and public API details. Reduce polling and use batching before choosing a higher plan.

Rotate, regenerate or delete a token

PATs have no default expiry, but enterprise admins can set a maximum lifetime. Review who owns each token and where its consumers load the secret before making a change. The token-management rules distinguish three operations:

  • Edit token: change its name, scopes or base/workspace access, then Save changes. This fixes a missing resource or scope without replacing the secret. Removing access can break consumers immediately.
  • Regenerate token: replace its secret while retaining its name and permissions. Requests using the old value are rejected; every consumer needs the new value.
  • Delete token: revoke it. Requests using that token are rejected.

For planned rotation, I'd create a second token and move consumers individually, because that preserves a working credential while each deployment is updated. Give the replacement only the scopes and resources still needed. Store it, reload one consumer, check authentication and its normal read/write operation, and continue through the inventory. Delete the old token after every consumer has moved, then confirm its old value is refused.

A leaked secret needs immediate revocation: regenerate or delete it before waiting for a handover window. Never paste the full token into a support ticket or chat; redact everything after the period. After issuing the replacement, reload the affected services and check their actual base operations. Authentication alone leaves the scope and resource checks unfinished.