Airtables

The Airtable Web API: tokens, base IDs, requests and call limits

Start with scopes and base access, discover the IDs, then build the first read and write requests within Airtable's separate page, batch, rate and monthly limits.

An open blank folio lies between wire document trays, beside a stack of closed kraft folders.

The Airtable Web API lets an external app read and change records over HTTPS, with JSON responses and a personal access token or OAuth access token in the request header. Start by granting the operation and base your integration needs, then use the base and table IDs to make a read request. I’d get that read working before enabling writes: it establishes which records and field values the integration will receive.

Each request consumes an API call. A read page contains up to 100 records, ordinary create/update batches contain up to 10, and the shared rate limit is 5 requests per second per base. Monthly allowances are separate: Free includes 1,000 calls per workspace and Team includes 100,000; Business and Enterprise Scale have no monthly call cap.

Set the scopes and base access before creating a token

For a private script, use a personal access token (PAT). For an integration that other Airtable users authorize, use OAuth. An existing service’s supported OAuth connection can handle that authorization for you; registering an OAuth app is a different task. The OAuth versus PAT guide covers that choice and credential maintenance.

What the integration doesScope it needsOther access required
Read record valuesdata.records:readAccess to the base; a user who can read it
Create or update recordsdata.records:writeBase Editor or higher, subject to table and field editing permissions
List available bases or inspect their schemaschema.bases:readAccess to the relevant resources and a user who can read them

These are separate permissions in Airtable’s scope definitions. Record write permission also covers deletion; it does not grant record reads. Schema read is useful for discovering tables and fields, but you do not need schema write to change values in existing records.

Select the required base under the token’s resource access. The token cannot exceed its user’s permissions, and a correct scope alone does not grant access to a base. Follow the PAT creation steps if you need the token setup itself. Legacy user API keys are no longer a current authentication route.

Keep the secret in a server-side secret store or protected environment configuration. Never put it in a public page, browser bundle, shared code snippet or URL. The examples below assume that AIRTABLE_TOKEN is already configured securely; all displayed IDs are fake placeholders.

Personal access token configuration lists the one base it can access
Choose the base under Access as well as the scopes the request needs. View full size.

Find the base, table and field IDs

A base ID starts with app, a table ID with tbl, a field ID with fld and a record ID with rec. Use table IDs in maintained integrations: renaming a table then does not require changing the endpoint. The base ID guide explains the URL route.

To discover resources programmatically, List Bases uses GET /v0/meta/bases. It returns up to 1,000 bases per page; follow its offset if present. For the tables and fields inside one base, use Get Base Schema:

export AIRTABLE_BASE_ID='appXXXXXXXXXXXXXX'
export AIRTABLE_TABLE_ID='tblXXXXXXXXXXXXXX'

curl --get \
  "https://api.airtable.com/v0/meta/bases/${AIRTABLE_BASE_ID}/tables" \
  --header "Authorization: Bearer ${AIRTABLE_TOKEN}"

The schema response identifies tables, fields, their types and options, and views. Match the intended table and keep its ID. Airtable returns the whole base’s schema; there is no separate GET endpoint for one table’s schema. Cache that response and select the table locally instead of requesting it before every record read.

For an integration that must survive field renames, use the schema’s fld IDs where the endpoint accepts field keys. In List Records, fields[] accepts names or IDs, while returnFieldsByFieldId=true makes the returned fields object use IDs as keys. The update endpoint also accepts field IDs. Keep that ID-to-name mapping with the schema; changing the response keys means changing the code that reads them.

If List Bases returns {"bases":[]}, check both selected resources and user access. An organization’s API restriction can also produce an empty successful response. A new token with the same permissions will not remove that policy.

Airtable API documentation displays the app identifier for the Orders base
Check the base name beside its ID before copying it into a request. View full size.

Make the first List Records request

Say the example table is Orders, with Order number as text, Status as a single select and Paid as a checkbox. Replace the fake IDs above with your own before using this read request:

curl --get \
  "https://api.airtable.com/v0/${AIRTABLE_BASE_ID}/${AIRTABLE_TABLE_ID}" \
  --header "Authorization: Bearer ${AIRTABLE_TOKEN}" \
  --data-urlencode 'pageSize=3' \
  --data-urlencode 'fields[]=Order number' \
  --data-urlencode 'fields[]=Status' \
  --data-urlencode 'fields[]=Paid'

--data-urlencode encodes values such as Order number. pageSize=3 sets the number of records per page. Use maxRecords for a total across pages, as shown in Airtable’s List Records reference.

A shortened example response looks like this; the values and offset here are illustrative:

{
  "records": [
    {
      "id": "recXXXXXXXXXXXXXX",
      "createdTime": "2026-01-01T12:00:00.000Z",
      "fields": {
        "Order number": "ORD-101",
        "Status": "Ready"
      }
    }
  ],
  "offset": "OPAQUE_OFFSET_FROM_RESPONSE"
}

The missing Paid key does not prove the field was deleted. Airtable omits empty values, including unchecked checkbox values (false), empty strings and empty arrays. Use the schema to establish the field’s existence; interpret an omitted value using its field type.

In Postman, use the same URL and query parameters, choose Bearer Token authorization, and keep the secret in a private variable. For the write requests below, send a raw JSON body and Content-Type: application/json. Do not paste a read response, including its id and createdTime, back as a create payload.

Filter the result without confusing selection with permission

Add these parameters to the read request to select ready orders and sort them by order number:

curl --get \
  "https://api.airtable.com/v0/${AIRTABLE_BASE_ID}/${AIRTABLE_TABLE_ID}" \
  --header "Authorization: Bearer ${AIRTABLE_TOKEN}" \
  --data-urlencode 'filterByFormula={Status}="Ready"' \
  --data-urlencode 'sort[0][field]=Order number' \
  --data-urlencode 'sort[0][direction]=asc'

This request follows the same pagination rules. A view parameter selects that view’s records and order; an explicit sort overrides the view’s sort. Combining a view and formula returns records that satisfy both. Without a view or sort, record order is arbitrary.

A view is not a security boundary. Fields hidden in a view are still returned by the API. The fields[] parameter reduces this response, but someone holding the same token can change that parameter. Enforce any narrower customer-facing access in your application.

For long formulas or field selections, Airtable requires a URL shorter than 16,000 characters. The same reference provides POST /v0/{baseId}/{tableIdOrName}/listRecords for sending list parameters in the body instead; that POST lists records rather than creating them.

Read every page using the returned offset

Airtable’s default and maximum read page size is 100. Continue with the exact returned offset, preserving the other query parameters, until a response has no offset. Do not invent page numbers or calculate an offset from the record count.

This complete Python example uses the standard library and the same three environment variables as the curl examples. It collects records by ID and prints only after the entire read succeeds. It reads data; it does not create or update records.

import json
import os
import time
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import Request, urlopen

token = os.environ["AIRTABLE_TOKEN"]
base = os.environ["AIRTABLE_BASE_ID"]
table = os.environ["AIRTABLE_TABLE_ID"]
url = f"https://api.airtable.com/v0/{base}/{table}"
records_by_id = {}
offset = None

while True:
    params = {"pageSize": 100}
    if offset:
        params["offset"] = offset
    request = Request(
        url + "?" + urlencode(params),
        headers={"Authorization": f"Bearer {token}"},
    )

    for attempt in range(4):
        try:
            with urlopen(request, timeout=30) as response:
                page = json.load(response)
            break
        except HTTPError as error:
            if (error.code == 429 or 500 <= error.code < 600) and attempt < 3:
                time.sleep(30 if error.code == 429 else 2 ** attempt)
                continue
            raise SystemExit(f"Read stopped: HTTP {error.code}") from None

    for record in page["records"]:
        records_by_id[record["id"]] = record
    offset = page.get("offset")
    if not offset:
        break
    time.sleep(0.25)

print(json.dumps(list(records_by_id.values()), indent=2))

The pause keeps this one loop below the normal base rate limit; other integrations still share that allowance. If you add filters, a view or field selections, keep them in params on every iteration. Remove a temporary maxRecords cap when the task is to retrieve all matching records.

The loop retries rate-limit and server errors a limited number of times, then stops. A network failure also stops the read instead of printing a partial dataset. Inspect the response’s error type when diagnosing failure. In particular, LIST_RECORDS_ITERATOR_NOT_AVAILABLE means the iterator is no longer usable; begin a fresh read rather than reusing that offset indefinitely.

Deduplication by record ID prevents repeated IDs in this output, but it does not turn a changing table into a point-in-time snapshot. For a controlled export, avoid concurrent changes during the read. If restarting a job that already wrote to another system, reconcile by a stable key before writing again.

An Airtable API response includes records and an offset for the next List records request
Pass the returned offset unchanged on the next request. The final page has no offset. View full size.

Create and update records with the right payload

Before enabling writes, save a backup of the affected table and try one known record. Add data.records:write only for the base that needs it, and confirm the user can edit the target fields. The examples use the Orders fields introduced above; Ready must already be an allowed Status option.

Create: POST to the table

curl --request POST \
  "https://api.airtable.com/v0/${AIRTABLE_BASE_ID}/${AIRTABLE_TABLE_ID}" \
  --header "Authorization: Bearer ${AIRTABLE_TOKEN}" \
  --header 'Content-Type: application/json' \
  --data '{"records":[{"fields":{
    "Order number":"ORD-102","Status":"Ready","Paid":false
  }}]}'

This Create Records request uses a records array, so the response has a records array containing each new ID and returned fields. Keep those IDs for subsequent updates. Do not blindly repeat a create request after an ambiguous timeout: the first request may have created the record.

Update: PATCH a known record

export AIRTABLE_RECORD_ID='recXXXXXXXXXXXXXX'

curl --request PATCH \
  "https://api.airtable.com/v0/${AIRTABLE_BASE_ID}/${AIRTABLE_TABLE_ID}/${AIRTABLE_RECORD_ID}" \
  --header "Authorization: Bearer ${AIRTABLE_TOKEN}" \
  --header 'Content-Type: application/json' \
  --data '{"fields":{"Paid":true}}'

This single-record PATCH changes Paid while preserving Order number and Status. Its response is one record object, without a surrounding records array. A PUT clears cell values omitted from the request; use PATCH when your intention is to change selected fields.

For a batch update, PATCH the table URL instead and send a records array with an id and fields for each record. Keep ordinary create and update batches within the documented 10-record limit. These are different payloads, not interchangeable wrappers.

For example, the body below belongs on the table-level PATCH endpoint. Both record IDs are placeholders; substitute IDs returned for this Orders table.

{
  "records": [
    {"id":"recXXXXXXXXXXXXXX","fields":{"Paid":true}},
    {"id":"recYYYYYYYYYYYYYY","fields":{"Paid":true}}
  ]
}

When an external system has its own stable order ID, performUpsert can match, update or create in one request. Configure fieldsToMergeOn with eligible non-computed fields that identify one record. For records sent without an Airtable id, no match creates, one match updates and multiple matches fail. A supplied id bypasses this matching; if that ID does not exist, the request fails instead of creating a record. Do not use a customer’s display name as an order’s unique key.

Check table membership deliberately. The Get Record endpoint can search the rest of the base if it does not find the ID in the named table. A successful lookup alone therefore does not confirm the intended table. Retain record IDs from List Records for that table, together with the base and table IDs, before building write requests.

Match the field’s API value, not its appearance

FieldValue to sendConsequence to check
Checkboxtrue or falseUnchecked values are omitted on reads
Single selectAn existing option name, such as "Ready"A misspelling is not a new option by default
Link to another recordAn array of linked record IDsSend IDs from the linked table, not copied display names
Multiple selectAn array of option namesThe submitted array replaces the current selection
Date and timeAn ISO 8601 value with an explicit offset or ZAvoid an ambiguous local time
Formula, lookup or rollupChange the underlying input fieldsThe computed output is read-only

The field model gives the exact formats. Web API and webhook formats can differ. Linked records normally arrive as IDs; attachments contain objects, and their download URLs expire after two hours. Store an attachment file through an authorized download workflow rather than treating that URL as a permanent file address.

For attachments, retaining existing items during an update requires their IDs in the submitted list. Check the returned details too: record responses can report attachment upload problems or permission-related redaction. HTTP success does not mean every attachment finished uploading. typecast=true enables best-effort conversion and can create select options. Creating new select options through typecast requires Creator permissions. Keep the schema controlled and validate the input.

Budget pages, write batches and call limits separately

LimitWhat it governsWhat to change
100 records per read pageOne List Records responseFollow offsets for the rest
10 records per ordinary write batchOne create or update requestSplit the payload into supported batches
5 requests/second/baseTraffic sharing that baseCoordinate jobs and back off on 429
50 requests/second/PAT user or service accountCombined PAT traffic for that identityBudget across tokens and bases; each base still has its own limit
Monthly workspace allowanceCalls across that workspace, including connected servicesCache reads, avoid unchanged writes and unnecessary polling

With 100-record pages, an illustrative 205-record read takes three record-list calls: 100, 100 and 5. Updating those 205 records in batches of at most 10 takes at least 21 write calls. Those counts exclude metadata requests, retries and any other integrations. Selecting fewer fields reduces response data, not the number of records that fit on a page.

On rate-limit 429 responses, Airtable’s rate-limit policy requires waiting 30 seconds before subsequent requests succeed. A monthly overage is different. Free has a one-time 30-day grace period; afterward, over-limit requests are blocked until the calendar-month reset. Team slows to 2 requests per second after 100,000 calls until that reset. Paid plans still have the per-base limit.

All Web API calls, including schema requests, count toward the applicable monthly allowance. A Free workspace owner can inspect Workspace settings → Usage; check the workspace that contains the requested base. The detailed call-limit guidance documents the overage behavior and explains why repeated retries do not fix an exhausted allowance.

How much latency should an integration allow?

In Zite’s published API benchmark, the Airtable read operations below had median request latencies of roughly half a second. The run used Airtable Free with 1,000 records and six seeded fields, a single macOS client and 10 requests per latency cell on 4 August 2026.

Read operationPublished median latency
One record437.6 ms
First page555.8 ms
Filtered query518.1 ms
Sorted query546.6 ms

These are four operation medians from one competing vendor’s benchmark, not a multi-source average or an Airtable service guarantee; the page does not give a latency range for each cell. I’d cache repeated reads and avoid making every screen load wait for a complete table scan. Pagination makes that scan sequential, and the rate allowance does not promise that each request completes in one fifth of a second.

Diagnose the response before changing the token

ResponseCheck next
400JSON syntax, URL encoding and Content-Type
401Missing, invalid, revoked or replaced Bearer credential
403Scope, selected base, user role, field/table editing limits, organization policy and correct IDs
404Route spelling and whether the resource still exists
422The specific error type: field value, select choice, formula or expired iterator
429Shared request rate versus monthly usage in the base’s workspace
5xxServer failure; use bounded backoff, and reconcile ambiguous writes before repeating them

Read the JSON error type and message alongside the status. Airtable’s error reference explains that INVALID_PERMISSIONS_OR_MODEL_NOT_FOUND can cover either missing access or an incorrect model ID. Record the method, endpoint shape, status and sanitized error; exclude the token and private record values from shared diagnostics.

A slow query can time out even below the rate limit. Reduce page size or simplify a costly formula before assuming authentication failed. After a successful write, inspect the returned record ID, changed values and any details, then verify the intended record in the intended table. When retiring the integration, disable its dependent jobs and revoke the unused PAT or OAuth authorization.