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.
| Kind | Use it for | Searchable |
|---|---|---|
| Text | Plain text, such as OCR output | Yes |
| Markdown | Formatted notes | Yes |
| JSON | Structured data | No |
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:
| Choice | Result |
|---|---|
| Replace it (default) | The new text replaces the old attachment. |
| Keep the existing one | Nothing changes. |
| Add with a new name | Saved as Name (2), Name (3) and so on. |
| Fail | The step or request fails with attachment_exists. |
Limits
| Limit | Value |
|---|---|
| Size of one attachment | 1 MiB |
| Attachments per file | 50 |
| Name length | 100 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.