Skip to content
Last updated

🔨 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.

Path Parameters

organization_id string required

The unique identifier of the organization.

Request Body (multipart/form-data)

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.


Returns

A File object representing the uploaded file.

Bash
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"

Response

{
  "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"
}

Supported File Types

  • 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)