workspace

Upload file to workspace

Upload a file to the user's workspace.

Files are stored in session-scoped paths when session_id is provided, so the agent's session-scoped tools can discover them automatically.

post/api/workspace/files/upload

Request

  • The document declares no server URL.
  • Auth
    HTTP bearer

Query parameters

session_idstring nullable
overwriteboolean

Request body multipart/form-data

filestring binary required

Response

Successful Response

file_idstring required
namestring required
pathstring required
mime_typestring required
size_bytesinteger required

Changes

No recorded changes to this operation across all 246 revisions of this API.