> ## 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 base schema

> Read the tables, fields, and views configured in an Airtable base.

`getBaseSchema` returns the complete visible schema for a base. Use it to
discover table, field, and view IDs or validate dynamic mappings.

## Example

```ts automations/read-airtable-schema.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { getBaseSchema } from "automate.ax/airtable"

export default automation("Read the CRM schema", () => {
  onHttpRequest({ scope: "automation" })
  getBaseSchema({ base: "CRM" })
})
```

## Inputs

| Input     | Type                                                | Required | Default         | Description                        |
| --------- | --------------------------------------------------- | -------- | --------------- | ---------------------------------- |
| `base`    | `string`                                            | Yes      | —               | Exact base name or stable base ID. |
| `account` | `string \| IntegrationAccountReference<"airtable">` | No       | Project default | Connected Airtable account.        |

## Output

Returns `{ tables: AirtableTable[] }`. Each table includes `id`, `name`,
`description?`, `primaryFieldId`, `fields`, and `views`. A field includes
`id`, `name`, `type`, `description?`, and provider-specific `options?`; a view
includes `id`, `name`, and `type`.

The connection needs `schema.bases:read`. Base-name matching is exact; use the
ID returned by [List bases](/reference/integrations/airtable/actions/list-bases)
when names may collide or change.
