Uploads a file to a workspace. Maximum file size is 10MB.
cURL
curl --request POST \ --url https://www.orgo.ai/api/files/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file' \ --form 'projectId=<string>' \ --form 'desktopId=<string>'
{ "file": { "id": "<string>", "filename": "<string>", "size_bytes": 123, "content_type": "<string>", "created_at": "2023-11-07T05:31:56Z" } }
multipart/form-data
curl -X POST https://www.orgo.ai/api/files/upload \ -H "Authorization: Bearer $ORGO_API_KEY" \ -F "file=@./document.pdf" \ -F "projectId=550e8400-e29b-41d4-a716-446655440000" \ -F "desktopId=a3bb189e-8bf9-3888-9912-ace4e6543002"
{ "file": { "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "filename": "document.pdf", "size_bytes": 102400, "content_type": "application/pdf", "created_at": "2024-01-15T10:30:00Z" } }
API key authentication. Get your key at orgo.ai/workspaces
File to upload (max 10MB)
Workspace ID
Optional computer ID to associate the file with
File uploaded
Show child attributes