Documentation
API Reference
Playground
Chat completionsResponsesSystem One
Document classificationEmbeddings

Studio API

Upload fileList filesRetrieve fileDelete file
Create jobRetrieve job

Search

Create vector storeList vector storesRetrieve vector storeModify vector storeDelete vector storeAdd file to vector storeList files in vector storeRetrieve file in vector storeRemove file from vector storeCreate file batchRetrieve file batchList files in file batchCancel file batchSearch vector store
Create response

Retrieve file batch

Retrieves a file batch within a vector store.

GET
/vector_stores/{vector_store_id}/file_batches/{batch_id}
/vector_stores/{vector_store_id}/file_batches/{batch_id}

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Path Parameters

vector_store_id
Required
string

The ID of the vector store.

batch_id
Required
string

The ID of the file batch.


Example

Request

curl https://api.upstage.ai/v2/vector_stores/vs_abc123def456/file_batches/vsfb_abc123def456 \
  -H "Authorization: Bearer $UPSTAGE_API_KEY"

Response

{
  "id": "vsfb_abc123def456",
  "object": "vector_store.files_batch",
  "created_at": 1711644900,
  "vector_store_id": "vs_abc123def456",
  "status": "in_progress",
  "file_counts": {
    "in_progress": 0,
    "completed": 3,
    "failed": 0,
    "cancelled": 0,
    "total": 3
  }
}

Create file batch

Add up to 50 files to a vector store in one request for asynchronous indexing. Covers the request body (file_ids, chunking_strategy, attributes), the file batch object returned (status, file_counts), and an example request and response.

List files in file batch

List the files in a file batch. Covers the pagination and status filter parameters (limit, order, after, before, filter), the list object returned, and an example request and response.

On this page

Retrieve file batchExampleRequestResponse