GET
/
vector_stores
/
{vector_store_id}
Retrieves a vector store.
curl --request GET \
  --url https://api.openai.com/v1/vector_stores/{vector_store_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "vector_store",
  "created_at": 123,
  "name": "<string>",
  "usage_bytes": 123,
  "file_counts": {
    "in_progress": 123,
    "completed": 123,
    "failed": 123,
    "cancelled": 123,
    "total": 123
  },
  "status": "expired",
  "expires_after": {
    "anchor": "last_active_at",
    "days": 183
  },
  "expires_at": 123,
  "last_active_at": 123,
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

vector_store_id
string
required

The ID of the vector store to retrieve.

Response

200 - application/json

OK

A vector store is a collection of processed files can be used by the file_search tool.

id
string
required

The identifier, which can be referenced in API endpoints.

object
enum<string>
required

The object type, which is always vector_store.

Available options:
vector_store
created_at
integer
required

The Unix timestamp (in seconds) for when the vector store was created.

name
string
required

The name of the vector store.

usage_bytes
integer
required

The total number of bytes used by the files in the vector store.

file_counts
object
required
status
enum<string>
required

The status of the vector store, which can be either expired, in_progress, or completed. A status of completed indicates that the vector store is ready for use.

Available options:
expired,
in_progress,
completed
last_active_at
integer | null
required

The Unix timestamp (in seconds) for when the vector store was last active.

metadata
object | null
required

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.

Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

expires_after
object

The expiration policy for a vector store.

expires_at
integer | null

The Unix timestamp (in seconds) for when the vector store will expire.