# Airtable

Run Airtable record operations from a workflow: list, get, create, update and delete records in a base's table.

## Auth and Access

- Select an `airtable` connection.
- Requests go to `https://api.airtable.com/v0/<base_id>/<table_name>` with the connection's credential.

## Inputs

- `trigger` - required. Runs the node.

## Configuration

- `connection` - required Airtable connection ID.
- `operation` - tagged operation object with `op`. Default `list_records`.
- `retry` - whether each Airtable request is sent again after a failure that passes: a rate limit, a busy server, a dropped connection. Off by default; see [Retries](http_get.md#retries). `list_records` and `get_record` are reads, sent again freely. `delete_record` is a `DELETE`, also sent again freely; a repeated delete may answer not found because the first attempt worked. `create_record` (`POST`) and `update_record` (`PATCH`) are writes, sent again only when Airtable refused them before acting: the connection never opened, or Airtable answered 425 or 429.

## Operations

Every operation takes:

- `base_id` - the Airtable base ID.
- `table_name` - the table name or ID.

### `list_records`

Lists records in the table.

- `view` - optional view name to filter by. Blank is omitted.
- `max_records` - optional maximum number of records to return.

Returns one Airtable response; the node does not follow Airtable's `offset` to fetch further pages.

### `get_record`

Gets one record.

- `record_id` - the record ID.

### `create_record`

Creates a record.

- `fields` - JSON object of field values, sent as `{"fields": ...}`. Default `{}`.

Fields example:

```json
{
  "Name": "Incident follow-up",
  "Status": "Open"
}
```

### `update_record`

Updates a record with `PATCH`, changing only the fields given.

- `record_id` - the record ID.
- `fields` - JSON object of field values to update. Default `{}`.

### `delete_record`

Deletes a record.

- `record_id` - the record ID.

## Outputs

- `result` - the raw Airtable JSON response, which varies by operation.

A non-success answer from Airtable fails the step with `Airtable API error <status>: <body>`.
