Upload a file and get a public link
upload_fileUploads a SMALL file (under ~100 KB) sent as base64 and returns a permanent public link. Use it when a direct upload via create_upload_link failed or isn't possible and the file is small. For documents you write, use publish_document. Never use base64 for files over ~100 KB (it must be written out in full and is very slow): give the user the create_upload_link page instead. Allowed types: pdf, png, jpg, gif, webp, zip, epub, docx, xlsx, pptx, mp4, m4v, mov, webm, mp3, m4a, wav, txt, md, csv; the real type is detected from the content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Pro plan only: tags for the file, e.g. ['invoice', 'client-dupont']. | |
| folder | No | Pro plan only: folder path to file it in, e.g. 'Clients/Dupont' (missing folders are created). Omit to keep it at the top level. | |
| file_name | Yes | File name including extension, e.g. 'guide.pdf'. | |
| content_base64 | Yes | The file content, base64-encoded. |