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 vector stores

Returns a paginated list of vector stores.

GET
/vector_stores
/vector_stores

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Query Parameters

limitnumber

Number of results to return (1-100).

orderstring

Sort order by creation time: asc or desc.

afterstring

Cursor for forward pagination.

beforestring

Cursor for backward pagination.


Example

Request

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

Response

{
  "object": "list",
  "data": [
    {
      "id": "vs_abc123def456",
      "object": "vector_store",
      "created_at": 1711644800,
      "name": "product-docs",
      "usage_bytes": 1024000,
      "file_counts": {
        "in_progress": 0,
        "completed": 3,
        "failed": 0,
        "cancelled": 0,
        "total": 3
      },
      "status": "completed",
      "last_active_at": 1711731200,
      "expires_after": null,
      "expires_at": null,
      "metadata": {}
    }
  ],
  "first_id": "vs_abc123def456",
  "last_id": "vs_abc123def456",
  "has_more": false
}

Create vector store

Create a vector store for file search. Covers the request body (name, file_ids, expires_after, metadata), the vector store object returned (id, name, usage_bytes, file_counts, status), and an example request and response.

Retrieve vector store

Fetch one vector store by ID. Covers the path parameter, the vector store object returned (name, usage_bytes, file_counts, status, expires_after, metadata), and an example request and response.

On this page

List vector storesExampleRequestResponse