Upload a file for persistent storage.
Returns a file_id that can be used in subsequent API calls to /v3/universal-ai.
Files are stored securely and only accessible by the file owner. Default expiration is 30 days, maximum 30 days.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Response for a successful file upload.
Unique file identifier for use in API calls
Original filename
File size in bytes
Detected MIME type
Purpose of the file (e.g., 'general', 'assistants')
Upload timestamp
File metadata (e.g., page_count for PDFs/documents)
Expiration timestamp