🔨 In Development — This section is still being developed and may change.
Upload a file to an organization for use in vector stores, file search, or other AI features.
POSThttps://api.freddy.aitronos.com/v1/organizations/{organization_id}/files/upload
Upload files in formats like PDF, TXT, DOCX, CSV, JSON, and more. Uploaded files can be attached to vector stores for semantic search or used directly in conversations.
organization_id string required
The unique identifier of the organization.
file file required
The file to upload. Maximum file size: 100MB.
purpose string optional · Defaults to vector_store
Purpose of the file. Common values: vector_store, user_upload, assistant.
A File object representing the uploaded file.
Bash
- Bash
- Python
- Python
curl -X POST "https://api.freddy.aitronos.com/v1/organizations/org_abc123/files/upload" \
-H "X-API-Key: $FREDDY_API_KEY" \
-F "file=@document.pdf" \
-F "purpose=vector_store"{
"id": "file_abc123",
"name": "document.pdf",
"organizationId": "org_abc123",
"size": 2457600,
"mimeType": "application/pdf",
"purpose": "vector_store",
"status": "uploaded",
"createdAt": "2025-01-20T15:30:00Z",
"createdBy": "uid_user123"
}- Documents: PDF, TXT, DOCX, DOC, RTF, MD
- Spreadsheets: CSV, XLSX, XLS
- Data: JSON, XML, YAML
- Code: PY, JS, TS, JAVA, CPP, and more
- Images: PNG, JPG, JPEG, WEBP (for vision models)