Documentation Index
Fetch the complete documentation index at: https://docs.orgo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Uploads a file to a workspace, optionally associated with a specific computer.
Request
Send a multipart/form-data request with the file and workspace information:
File to upload. Maximum size: 10MB.
Workspace ID to upload the file to.
Optional computer ID to associate the file with.
Response
The uploaded file object.
Example
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"
Response
{
"file": {
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"filename": "document.pdf",
"size_bytes": 102400,
"content_type": "application/pdf",
"created_at": "2024-01-15T10:30:00Z"
}
}
Uploaded files are stored in the workspace and can be accessed by all computers in that workspace.
API key authentication. Get your key at orgo.ai/workspaces
File to upload (max 10MB)
Optional computer ID to associate the file with