# Upload a file to a chat's workspace

`POST /api/v2/chats/{chat}/workspace-files`

Streams the request body into the chat workspace's
upload directory. The request Content-Type header is
recorded as the file's media type. There is no
server-imposed size cap; client cancellation aborts the
stream and the agent leaves no partial target file behind.
