Skip to content

Attachments

Text kept with a file, such as OCR results or notes, that you can read, download and search.

An attachment is a piece of text stored with a file: the text a workflow read from a scan, notes, or structured data. The file itself never changes.

KindUse it forSearchable
TextPlain text, such as OCR outputYes
MarkdownFormatted notesYes
JSONStructured dataNo

Viewing attachments

A file's details panel lists its attachments under Attachments. Click one to read it, then Copy text or Download. Attachments are always shown as plain text, never rendered, so a Markdown or HTML attachment can't run anything in your browser. The trash button deletes an attachment for good.

Attachments are private: they're never shown on share pages.

Names

Each attachment on a file has a unique name, ignoring case. When something adds an attachment whose name is taken, it can:

ChoiceResult
Replace it (default)The new text replaces the old attachment.
Keep the existing oneNothing changes.
Add with a new nameSaved as Name (2), Name (3) and so on.
FailThe step or request fails with attachment_exists.

Limits

LimitValue
Size of one attachment1 MiB
Attachments per file50
Name length100 characters

Adding attachments

Workflows add them with Add attachment or Save file. With an API token that can write files:

curl -X POST https://files.example.com/api/v1/files/<file id>/attachments \
  -H "Authorization: Bearer <token>" -H "Content-Type: application/json" \
  -d '{ "name": "Notes", "kind": "markdown", "text": "# Receipt\nPaid in full.", "onConflict": "rename" }'

onConflict takes replace, keep-existing, rename or fail.