Upload file
Reserve a direct upload slot for a local file that is too large for MCP base64.
← All Files endpoints · Capability overview
/v1/files/upload-filehttps://api.vee3.io/v1/files/upload-file
Reserve a direct upload slot for a local file that is too large for MCP base64.
Authorization
Send your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
MCP
The same capability is available as an MCP tool on Vee3 hosted MCP.
Tool name
files.upload_fileParameters2 fields
file_namestringRequiredDesired file name or path for the uploaded file. Use folder/subfolder/.../file_name to organize files in folders. Extension is optional and is replaced based on detected file type. Do not use '..' or absolute paths.
max length 255
retention_daysintegerOptionalHow many days to keep the file after upload completes. Default 7. Billing uses size and this retention.
Default: 7 · min 1, max 90
Response8 fields
upload_codestringShort code to pass to the @vee3/upload CLI.
upload_idstringStable identifier for the reserved upload.
expires_atstringISO 8601 timestamp when the upload code can no longer be resolved (60 minutes after reserve).
max_bytesintegerMaximum allowed file size in bytes.
retention_daysintegerDays the file will be retained after upload completes.
install_commandstringOne-time command to install the Vee3 CLI (`npm install -g @vee3/cli`). On networks that inspect HTTPS, install may require Node 22.15+ with NODE_OPTIONS=--use-system-ca.
commandstringSuggested terminal command for uploading the local file.
troubleshootingstringWhat to do if installation or uploading fails: re-read this tool's description via meta-tools.describe for setup and troubleshooting steps.
HTTP errors: unauthorized, payment_required, validation_error, upload_file_name_in_use