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

List files in file batch

Returns a paginated list of files in a file batch.

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

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.

Query Parameters

limitnumber

Number of results to return (1-100).

orderstring

Sort order: asc or desc.

afterstring

Cursor for forward pagination.

beforestring

Cursor for backward pagination.

filterstring

Filter by file status: in_progress, completed, failed, or cancelled.


Example

Request

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

Response

{
  "object": "list",
  "data": [
    {
      "id": "file_001",
      "object": "vector_store.file",
      "created_at": 1711644900,
      "vector_store_id": "vs_abc123def456",
      "status": "completed",
      "last_error": null,
      "usage_bytes": 12534,
      "chunking_strategy": {"type": "auto"},
      "attributes": null
    }
  ],
  "first_id": "file_001",
  "last_id": "file_001",
  "has_more": false
}

Retrieve file batch

Check a file batch by batch ID to see how indexing is progressing. Covers the path parameters, the file batch object returned (status, file_counts), and an example request and response.

Cancel file batch

Cancel a file batch that is still indexing; completed files are kept. Covers the path parameters, the cancelled file batch object returned, and an example request and response.

On this page

List files in file batchExampleRequestResponse