Upload File
upload_fileUpload a PDF file to Formify. Returns a fileId for use with create_document or create_draft. Three input paths, in order of preference: (1) url — a PDF reachable over HTTPS. Works in every client; use it whenever a URL is available. (2) uploadId — for a file attached to the conversation, when you can execute shell commands: call request_file_upload_url first, run its curlCommand, then pass the uploadId here. (3) file — base64 content, for an attached file when you cannot execute shell commands. IMPORTANT: Do NOT use base64 unless you can guarantee you are passing the complete, untruncated file content. AI assistants routinely truncate large strings, which silently corrupts the file and causes upload failures. If you cannot verify the base64 string is complete and unmodified, use uploadId or url instead. Max size: 50 MB. The PDF must not be password-protected or contain digital signatures from other services.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public URL to the PDF file (must be directly downloadable). | |
| file | No | Base64-encoded PDF file content. WARNING: Only use this if you can guarantee the value is the complete, untruncated file. AI assistants often truncate large strings — a truncated base64 value will produce a corrupt, unusable file. Prefer uploadId or url. | |
| fileName | No | Filename with extension (e.g. 'contract.pdf'). Required when using base64. When using URL, derived from the URL if omitted. | |
| uploadId | No | Upload ID from request_file_upload_url. Use this for files attached to the conversation. |