Skip to content
Last updated

Register a completed chunked upload and add the file to a store for processing.

POSThttps://api.aitronos.com/v1/organizations/{organization_id}/stores/{store_id}/files/register

After uploading a file to the signed URL obtained from Get upload URL, call this endpoint to register the upload, link the file to the store, and start processing.

Path Parameters

organization_id string required

The unique identifier of the organization (format: org_*).

store_id string required

The unique identifier of the vector store.

Request Body

upload_id string required

The file ID returned from the Get upload URL endpoint.

relative_path string optional

A relative path within the store for folder uploads.


Returns

The registered file object with processing status set to pending (HTTP 201).

cURL
curl -X POST "https://api.aitronos.com/v1/organizations/org_xyz789/stores/vs_abc123/files/register" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "upload_id": "file_abc123def456",
    "relative_path": "data/imports"
  }'