Fuser

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.

POST/v1/upload_start
MCP tool upload_start

Try it

POSTapi.fuser.studio/v1/upload_start
BodyJSON
ResponseExample
{
  "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

  • canvasIdstringrequired

    Canvas the files belong to.

Output

  • uploadIdstring

    Pass to upload_finish.

  • uploadPagestring

    A page where the user picks the files in their browser. Give it to them only if you cannot send the files yourself.

  • expiresAtstring

On this page