Upload files
Step 1 of putting files from the user's machine on a canvas, for agents that run commands on that machine (Claude Code, Codex, an IDE). List the files (up to 50): each comes back with a link to PUT it to, or done if Fuser already has it. Then call upload_finish with uploadId. In a chat app use upload_box instead; a cloud code sandbox can't reach these links.
/v1/upload_startupload_startTry it
{
"uploadId": "3f2b8c1e-7a4d-4e9b-9c2a-5d6e7f8a9b0c",
"uploadPage": "https://mcp.fuser.studio/upload-box/9c2a5d6e7f8a",
"expiresAt": "2026-11-09T18:30:00.000Z",
"files": [
{
"fileName": "coral-reef.png",
"status": "upload",
"method": "PUT",
"url": "https://media.fuser.studio/9c2a5d6e7f8a.png",
"headers": {
"prompt": "aB3dE5"
}
}
]
}Example
curl -X POST https://api.fuser.studio/v1/upload_start \
-H "x-api-key: $FUSER_API_KEY" \
-H "content-type: application/json" \
-d '{
"canvasId": "3f2b8c1e-7a4d-4e9b-9c2a-5d6e7f8a9b0c"
}'const result = await fuser.upload.start({
canvasId: '3f2b8c1e-7a4d-4e9b-9c2a-5d6e7f8a9b0c',
});See the TypeScript SDK.
Input
canvasIdstringrequiredCanvas the files belong to.
Output
uploadIdstringPass to upload_finish.
uploadPagestringA page where the user picks the files in their browser. Give it to them only if you cannot send the files yourself.
expiresAtstring
Download media as a zip
A link that downloads a canvas's results as one zip file, for when the user wants their files ('download everything', 'send me the images as a zip'). Give the user the link; it works for an hour. It changes nothing on the canvas. To back up the whole canvas instead, the user saves a .fsr file from the canvas menu in the Fuser app (Download project) and loads it with Upload project.
Finish uploading files
Step 2: returns a link for every file that arrived, to use as an ImageNode or VideoNode input, and says why for any that did not. For files the user is adding on the upload page, call it after they say they are done.