File Upload
Upload a file by URL to create a file search store. The returned store_name can be used in chat completions via file_search_store_names.
RAG File Upload
Parameter
Type
Required
Description
Extension
MIME Type
Request:
curl -X POST https://qolaba-server-b2b.up.railway.app/api/v1/files \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"url": "https://example.com/document.pdf",
"store_name": "my-store"
}'Response 200 OK
200 OKResponse 400 Bad Request
Using the store in Chat Completions
Parameter
Type
Required
Description
Last updated