Attach an uploaded file to a vector store for semantic search.
POSThttps://api.aitronos.com/v1/organizations/{organization_id}/vector-stores/{vector_store_id}/files
Add a previously uploaded file to a vector store. The file will be processed and indexed for semantic search.
organization_id string required
The unique identifier of the organization.
vector_store_id string required
The unique identifier of the vector store.
file_id string required
The ID of the file to add to the vector store.
A confirmation response with the file association details.
cURL
- Bash
- Python
- Python
- JavaScript
curl -X POST "https://api.aitronos.com/v1/organizations/{organization_id}/vector-stores/{vector_store_id}/files" \
-H "X-API-Key: $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"file_id": "file_abc123"
}'Response:
201 Created
{
"message": "File added to vector store successfully",
"data": {
"file_id": "file_abc123",
"vector_store_id": "vs_456def",
"status": "pending",
"created_at": "2026-01-16T10:30:00Z"
}
}