Upload Attachment
upload_attachmentUpload a file (up to 5 MB) as base64 to an existing Airtable record's attachment field; for larger files, use a public URL.
Instructions
Upload a file directly to an attachment field on an existing record using Airtable's upload API. Supports files up to 5 MB. For larger files, use create_record or update_records with a public URL. The record must already exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Raw base64-encoded file content (no data URL prefix) | |
| baseId | Yes | The ID of the base | |
| filename | Yes | Filename for the attachment (e.g. "image.jpg") | |
| recordId | Yes | The ID of the existing record (e.g. recXXXXXXXXXXXXXX) | |
| contentType | Yes | MIME type of the file (e.g. "image/jpeg", "image/png", "application/pdf") | |
| attachmentFieldIdOrName | Yes | The ID or name of the attachment field (e.g. fldXXXXXXXXXXXXXX or "Images") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| fields | Yes |