files
Upload a file
Uploads a file that can be used with vector stores for RAG. Files are uploaded as multipart/form-data with the following fields:
- file: The file to upload (required)
- purpose: The intended purpose of the file (default: "assistants")
- owner_type: Owner type - "organization", "project", or "user" (required)
- owner_id: Owner ID (required)
post/api/v1/files
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/v1/files
- Auth: HTTP bearer
Response
File uploaded successfully
Example response
{
"id": "file-550e8400-e29b-41d4-a716-446655440000"
}Changes
No recorded changes to this operation across all 16 revisions of this API.