v46

latestOpenAPI 3.0.0MITraw.githubusercontent.com2026-08-0311978417.1 KB
Private Files

Create a file upload

Creates a file record and returns a pre-signed upload URL. The file content should then be uploaded to the returned URL.

post/api/w/{wId}/files

Path parameters

wIdstring required

ID of the workspace

Request body

contentTypestring required
fileNamestring required
fileSizenumber required
useCase'conversation' | 'folders_document' | 'avatar' | 'upsert_document' | 'upsert_table' | 'project_context' | 'skill_attachment' | 'workspace_branding' required
useCaseMetadataobject

Response

File record created with upload URL