Airtable

Create, find, update, and delete records in Airtable bases.

ProductivityAPI key15 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (15)
  4. airtable_create_record
  5. airtable_delete_record
  6. airtable_find_record
  7. airtable_update_record
  8. airtable_add_comment_to_record
  9. airtable_clean_record
  10. airtable_create_base
  11. airtable_create_table
  12. airtable_find_base
  13. airtable_find_table
  14. airtable_find_table_by_id
  15. airtable_get_base_schema
  16. airtable_get_record_by_id
  17. airtable_upload_file_to_column
  18. custom_api_call
  19. Details

Connect

Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("airtable", action, input) resolves with the provider's answer and rejects when Airtable isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "airtable"} says whether yours can call it.

Workflow
// workflows/notify.ts: call Airtable when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellAirtable = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when Airtable isn't connected.
  const output = await step.run("Airtable", () =>
    step.ctx.integrations.invoke("airtable", "airtable_create_record", {
      "base": "<base>",
      "tableId": "<tableId>",
      "fields": {}
    }),
  );
  step.ctx.log("Airtable answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "airtable",
    "piece_action": "airtable_create_record",
    "input": {
      "base": "<base>",
      "tableId": "<tableId>",
      "fields": {}
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/airtable/airtable_create_record" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"base":"<base>","tableId":"<tableId>","fields":{}}}'

Actions

airtable_create_record

Create Airtable Record. Adds a record into an airtable

Also accepted as create_record.

InputTypeDescription
baserequiredid (picked from your account)Base
tableIdrequiredid (picked from your account)Table
fieldsrequiredobject (depends on other props)Table

airtable_delete_record

Delete Airtable Record. Deletes a record in airtable

Also accepted as delete_record.

InputTypeDescription
baserequiredid (picked from your account)Base
tableIdrequiredid (picked from your account)Table
recordIdrequiredtextThe ID of the record.

airtable_find_record

Find Airtable Record. Find a record in airtable

Also accepted as find_record.

InputTypeDescription
baserequiredid (picked from your account)Base
tableIdrequiredid (picked from your account)Table
searchFieldrequiredid (picked from your account)Search Field
searchValuerequiredtextSearch Value
limitToViewoptionalid (picked from your account)View

airtable_update_record

Update Airtable Record. Update a record in airtable

Also accepted as update_record.

InputTypeDescription
baserequiredid (picked from your account)Base
tableIdrequiredid (picked from your account)Table
recordIdrequiredtextThe ID of the record.
fieldsrequiredobject (depends on other props)Table

airtable_add_comment_to_record

Add Comment to Record. Adds a comment to an existing record.

InputTypeDescription
baserequiredid (picked from your account)Base
tableIdrequiredid (picked from your account)Table
recordIdrequiredtextThe ID of the record.
textrequiredlong textThe content of the comment. To mention a user, use the format `@[userId]` or `@[userEmail]`.
parentCommentIdoptionaltextOptional. The ID of a parent comment to create a threaded reply.

airtable_clean_record

Clean Record. Clears fields in a record. Empty values will clear the corresponding fields.

InputTypeDescription
baserequiredid (picked from your account)Base
tableIdrequiredid (picked from your account)Table
recordIdrequiredtextThe ID of the record.
fieldsrequiredobject (depends on other props)Table

airtable_create_base

Create Base. Create a new base with a specified table structure.

InputTypeDescription
workspaceIdrequiredid (picked from your account)Workspace
namerequiredtextThe name for the new base.
tablesrequiredJSONDefine the tables for the new base. Use the default value as a template. The first field for each table will be its primary field.

airtable_create_table

Create Table. Create a new table in an existing base.

InputTypeDescription
baserequiredid (picked from your account)Base
namerequiredtextThe name for the new table.
descriptionoptionallong textAn optional description for the new table.
fieldsrequiredJSONA JSON array of fields for the new table. The first field in the array will become the primary field.

airtable_find_base

Find Base. Find a base by its name or a keyword.

InputTypeDescription
baseNamerequiredtextThe name or keyword to search for within your base names.

airtable_find_table

Find Table. Find a table in a given base by its name.

InputTypeDescription
baserequiredid (picked from your account)Base
tableNamerequiredtextThe exact name of the table you want to find.

airtable_find_table_by_id

Find Table by ID. Get a table's details and schema using its ID.

InputTypeDescription
baserequiredid (picked from your account)Base
tableIdrequiredid (picked from your account)Table

airtable_get_base_schema

Get Base Schema. Retrieve the schema for a specific base, including all its tables and fields.

InputTypeDescription
baserequiredid (picked from your account)Base

airtable_get_record_by_id

Get Record by ID. Retrieve a single record from a table by its unique ID.

InputTypeDescription
baserequiredid (picked from your account)Base
tableIdrequiredid (picked from your account)Table
recordIdrequiredid (picked from your account)Record

airtable_upload_file_to_column

Upload File to Column. Uploads a file to attachment type column.

InputTypeDescription
baserequiredid (picked from your account)Base
tableIdrequiredid (picked from your account)Table
attachment_columnrequiredid (picked from your account)Attachment Column
recordIdrequiredtextThe ID of the record to which you want to upload the file.
filerequiredfileThe file to be uploaded, which can be provided either as a public file URL or in Base64 encoded format.
file_content_typerequiredtextSpecifies the MIME type of the file being uploaded (e.g., 'image/png', 'application/pdf').
filenameoptionaltextThe name of the file as it should appear after upload.

custom_api_call

Custom API Call. Make a custom API call to a specific endpoint

InputTypeDescription
urlrequiredobject (depends on other props)url
methodrequiredone of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD"Method
headersrequiredobjectAuthorization headers are injected automatically from your connection.
queryParamsrequiredobjectQuery Parameters
body_typeoptionalone of "none" | "json" | "form_data" | "raw"Body Type
bodyoptionalobject (depends on other props)Body
response_is_binaryoptionalbooleanEnable for files like PDFs, images, etc.
failsafeoptionalbooleanNo Error on Failure
timeoutoptionalnumberTimeout (in seconds)
followRedirectsoptionalbooleanFollow redirects

Details

Id
airtable
Category
Productivity
Tags
database, spreadsheet, nocode, records
Package
@activepieces/piece-airtable@0.6.6
Runs
Through the integration runner