# Airtable API tokens: find, store, rotate, and use them safely with AI agents

Source: https://botpassword.com/keys/airtable
Last checked: 2026-11-08

Airtable personal access tokens are created in the developer hub at airtable.com/create/tokens, where you choose scopes and the bases or workspaces each token can reach. An Airtable token acts as your user account, is sent as a Bearer token, never expires by default, and can be regenerated or deleted from the **…** menu next to it.

## Key types

| Type | Prefix | Secret | Scope | Expiry |
|---|---|---|---|---|
| Personal access token | — | Yes | The scopes you choose, limited to the bases and workspaces you select and to what your own user can do | Does not expire unless deleted, regenerated or modified; Enterprise admins can set a maximum lifetime |

## How to create a Airtable key

1. Sign in to Airtable and open the developer hub at [airtable.com/create/tokens](https://airtable.com/create/tokens).
2. Click **Create token** and give the token a name.
3. Click **+ Add a scope** and add only the scopes the integration needs, for example `data.records:read`.
4. Click **+ Add a base** to pick specific bases, or **+ Add all resources** for broad access.
5. Create the token and copy it into a secrets vault; the secret part is shown only once.

## Limiting what the key can do

Scopes control which endpoints an Airtable token can call, and resources control which bases or workspaces it can touch. Pick a narrow scope list and named bases rather than **+ Add all resources**. A token can never do more than the user who created it, and `enterprise.` scopes are limited to Enterprise Scale plans.

## How to rotate a Airtable key

1. Open the developer hub at [airtable.com/create/tokens](https://airtable.com/create/tokens).
2. Click **…** next to the token, then **Regenerate token** and confirm the warning.
3. Copy the new value and update every service that used the token.

## How to revoke a Airtable key

1. Open the developer hub at [airtable.com/create/tokens](https://airtable.com/create/tokens).
2. Click **…** next to the token, then **Delete token**. Services using it stop working.

## If the key leaked

1. Regenerate or delete the exposed token from the developer hub.
2. Update every service that used it with a new token.
3. Review the bases the token could reach for records, fields or tables changed unexpectedly.
4. When sharing a token for support, redact everything after the period; Airtable says to regenerate any token whose secret was shared.
5. GitHub push protection blocks commits containing Airtable personal access tokens when it is enabled on the repository.

## Gotchas

- Send the token as a Bearer header. The legacy `api_key` URL parameter is not supported.
- The token acts as you, so a broad token can reach everything you can.
- Regenerating a token invalidates the old value immediately; there is no overlap.
- Personal access tokens cannot write to synced tables or be limited to a single interface or view.

## Using this key with AI agents (BotPassword)

- `run_with`: Runs a command with the key injected as an environment variable or a 0600 temporary file, never on the command line, and redacts the key from the output.
- `http_request`: Makes an authenticated API call after checking the destination against the hosts this key may be sent to. The response comes back with credential-shaped values redacted, and one that holds the key itself is refused.
- `rotate`: Partly built: creates a new key, stores it as pending, verifies it, promotes it, then revokes the old key after a grace period. Today it works for Cloudflare tokens and AWS IAM keys you have set up, and an agent can start it only under a grant with autopilot; other providers cannot be rotated through their API yet.
- `store_secret`: Saves a value the agent already holds as a new vault item.

## FAQ

### Where do I get an Airtable API key?

Airtable now uses personal access tokens, created at airtable.com/create/tokens. Choose scopes and bases when you create one.

### How do I send an Airtable token in a request?

Put it in the `Authorization` header as `Bearer` followed by the token.

### Do Airtable personal access tokens expire?

No. An Airtable personal access token stays active until it is deleted, regenerated or modified, unless an Enterprise admin sets a maximum lifetime.

### How do I regenerate an Airtable token?

In the developer hub, click **…** next to the token and choose **Regenerate token**, then update every service with the new value.

### Why do I get INVALID_PERMISSIONS_OR_MODEL_NOT_FOUND?

Either the token or your user cannot access the base or table, or it does not exist. Check the token's scopes and base access.

### Can an AI agent use my Airtable key without seeing it?

Yes, if the key never enters the agent's context. Instead of pasting the key into a chat or leaving it in a `.env` file the agent can read, keep it in a credential broker that injects it into the command or request on the agent's behalf. BotPassword does this with `run_with`, `http_request`, `store_secret`, so the agent gets the result and never the value.

## Sources

- https://airtable.com/developers/web/api/authentication
- https://airtable.com/developers/web/api/errors
- https://support.airtable.com/docs/creating-personal-access-tokens
- https://airtable.com/developers/agents/mcp/getting-started
- https://docs.github.com/en/code-security/secret-scanning/introduction/supported-secret-scanning-patterns
