> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get record

> Get one Airtable record by its stable record ID.

`getRecord` loads one record and all field values visible to the connected
account.

## Example

```ts automations/get-airtable-record.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { getRecord } from "automate.ax/airtable"

export default automation("Get an Airtable lead", () => {
  onHttpRequest({ scope: "automation" })
  getRecord({ base: "CRM", table: "Leads", recordId: "rec123" })
})
```

## Inputs

| Input                   | Type                                                | Required | Default         | Description                                             |
| ----------------------- | --------------------------------------------------- | -------- | --------------- | ------------------------------------------------------- |
| `base`                  | `string`                                            | Yes      | —               | Exact base name or stable base ID.                      |
| `table`                 | `string`                                            | Yes      | —               | Table name or stable table ID.                          |
| `recordId`              | `string`                                            | Yes      | —               | Stable Airtable record ID.                              |
| `returnFieldsByFieldId` | `boolean`                                           | No       | `false`         | Key `fields` by stable field ID rather than field name. |
| `account`               | `string \| IntegrationAccountReference<"airtable">` | No       | Project default | Connected Airtable account.                             |

## Output

Returns an `AirtableRecord` with `id: string`, `createdTime: Date`, and
`fields: Record<string, JsonValue>`.

Keep `id` for update and delete actions. Airtable omits fields with empty values
from many API responses, so do not assume every table field is present.
