Lodol Docs

Airtable

API actions for the Airtable integration.

Airtable

Work with Airtable bases, tables, and records.


Create record

Create a new record in an Airtable table.

Parameters

ParameterTypeRequiredDescription
base_idstringYesThe Airtable base to use.
table_namestringYesThe table to use.
fieldsobjectYesThe value to set for each field in the table.

Response

{
  "createdTime": "2024-01-15T10:30:00Z",
  "fields": {
    "Email": "john@example.com",
    "Name": "John Smith",
    "Status": "Active"
  },
  "id": "rec9K3L2mN4P5Q6R"
}

Delete record

Delete a record from an Airtable table.

Parameters

ParameterTypeRequiredDescription
base_idstringYesThe Airtable base to use.
table_namestringYesThe table to use.
record_idstringYesThe record to use.

Response

{
  "deleted": true
}

Get record

Retrieve a single record by ID.

Parameters

ParameterTypeRequiredDescription
base_idstringYesThe Airtable base to use.
table_namestringYesThe table to use.
record_idstringYesThe record to use.

Response

{
  "createdTime": "2024-01-15T10:30:00Z",
  "fields": {
    "Email": "john@example.com",
    "Name": "John Smith",
    "Status": "Active"
  },
  "id": "rec9K3L2mN4P5Q6R"
}

List bases

Retrieve all accessible Airtable bases.

Response

{
  "bases": [
    {
      "id": "appaBc123DeFg456",
      "name": "Marketing Campaigns",
      "permissionLevel": "create"
    }
  ]
}

List records

Retrieve records from an Airtable table.

Parameters

ParameterTypeRequiredDescription
base_idstringYesThe Airtable base to use.
table_namestringYesThe table to use.
max_recordsnumberNoMaximum number of records to return.
filter_formulastringNoAn Airtable filter formula that limits which records are returned, for example {Status} = 'Active'.

Response

{
  "records": [
    {
      "createdTime": "2024-01-15T10:30:00Z",
      "fields": {
        "Email": "john@example.com",
        "Name": "John Smith",
        "Status": "Active"
      },
      "id": "rec9K3L2mN4P5Q6R"
    }
  ]
}

List tables in a base

Fetch all tables for a specific Airtable base.

Parameters

ParameterTypeRequiredDescription
base_idstringYesThe Airtable base to use.

Response

{
  "tables": [
    {
      "id": "tblXyz789AbC123",
      "name": "Contacts",
      "primaryFieldId": "fldPqR456StU789"
    }
  ]
}

Update record

Update fields on an existing Airtable record.

Parameters

ParameterTypeRequiredDescription
base_idstringYesThe Airtable base to use.
table_namestringYesThe table to use.
record_idstringYesThe record to use.
fieldsobjectYesThe value to set for each field in the table.

Response

{
  "createdTime": "2024-01-15T10:30:00Z",
  "fields": {
    "Email": "john@example.com",
    "Name": "John Smith",
    "Status": "Inactive"
  },
  "id": "rec9K3L2mN4P5Q6R"
}

On this page