Skip to content
Last updated

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.

Path Parameters

organization_id string required

The unique identifier of the organization.

vector_store_id string required

The unique identifier of the vector store.

Request Body

file_id string required

The ID of the file to add to the vector store.


Returns

A confirmation response with the file association details.

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