Back to Autogpt

Airtable Bases

docs/integrations/block-integrations/airtable/bases.md

0.6.443.1 KB
Original Source

Airtable Bases

<!-- MANUAL: file_description -->

Blocks for creating and managing Airtable bases, which are the top-level containers for tables, records, and data in Airtable.

<!-- END MANUAL -->

Airtable Create Base

What it is

Create or find a base in Airtable

How it works

<!-- MANUAL: how_it_works -->

This block creates a new Airtable base in a specified workspace, or finds an existing one with the same name. When creating, you can optionally define initial tables and their fields to set up the schema.

Enable find_existing to search for a base with the same name before creating a new one, preventing duplicates in your workspace.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
workspace_idThe workspace ID where the base will be createdstrYes
nameThe name of the new basestrYes
find_existingIf true, return existing base with same name instead of creating duplicateboolNo
tablesAt least one table and field must be specified. Array of table objects to create in the base. Each table should have 'name' and 'fields' propertiesList[Dict[str, Any]]No

Outputs

OutputDescriptionType
errorError message if the operation failedstr
base_idThe ID of the created or found basestr
tablesArray of table objectsList[Dict[str, Any]]
tableA single table objectDict[str, Any]
was_createdTrue if a new base was created, False if existing was foundbool

Possible use case

<!-- MANUAL: use_case -->

Project Setup: Automatically create new bases when projects start with predefined table structures.

Template Deployment: Deploy standardized base templates across teams or clients.

Multi-Tenant Apps: Create separate bases for each customer or project programmatically.

<!-- END MANUAL -->

Airtable List Bases

What it is

List all bases in Airtable

How it works

<!-- MANUAL: how_it_works -->

This block retrieves a list of all Airtable bases accessible to your connected account. It returns basic information about each base including ID, name, and permission level.

Results are paginated; use the offset output to retrieve additional pages if there are more bases than returned in a single call.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
triggerTrigger the block to run - value is ignoredstrNo
offsetPagination offset from previous requeststrNo

Outputs

OutputDescriptionType
errorError message if the operation failedstr
basesArray of base objectsList[Dict[str, Any]]
offsetOffset for next page (null if no more bases)str

Possible use case

<!-- MANUAL: use_case -->

Base Discovery: Find available bases for building dynamic dropdowns or navigation.

Inventory Management: List all bases in an organization for auditing or documentation.

Cross-Base Operations: Enumerate bases to perform operations across multiple databases.

<!-- END MANUAL -->