Download file
Reserve a direct download for a previously uploaded file.
← All Files endpoints · Capability overview
/v1/files/download-filehttps://api.vee3.io/v1/files/download-file
Reserve a direct download for a previously uploaded file.
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.download_fileParameters1 field
file_namestringRequiredRelative file name or path to download. Use files.list_uploaded_files to see available names.
max length 255
Response9 fields
download_codestringShort code to pass to the @vee3/get-file CLI.
download_idstringStable identifier for the reserved download.
expires_atstringISO 8601 timestamp when the download code can no longer be resolved (60 minutes after reserve).
file_namestringStored file name.
size_bytesintegerObject size in bytes when known.
content_typestringMIME type on the stored object when known.
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 downloading to a local path.
troubleshootingstringWhat to do if installation or downloading fails: re-read this tool's description via meta-tools.describe for setup and troubleshooting steps.
HTTP errors: unauthorized, payment_required, validation_error, uploaded_file_not_found