Sample - OpenAI API
GET/vector_stores

List vector stores

Lists vector stores available to the authenticated user. Use cursor parameters to retrieve successive or preceding result pages and order to control creation-time sorting.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

4 parameters
limitintegeroptional
Maximum number of vector stores to return, from 1 to 100. Defaults to 20 when omitted.
Default:20
orderstringoptional
Sort order by creation time: `asc` or `desc`. Defaults to `desc` when omitted.
Allowed:ascdescDefault:desc
afterstringoptional
Cursor object ID after which to return the next page of vector stores.
beforestringoptional
Cursor object ID before which to return the previous page of vector stores.

2 status codes
200Returns a paginated collection containing vector store objects, the first and last object IDs, and a `has_more` indicator.
objectstringrequired
dataarray<VectorStore>required
first_idstringrequired
last_idstringrequired
has_morebooleanrequired
429Returned when the request was rejected because a rate limit was exceeded.
errorobjectrequired

Error handling

limit must be between 1 and 100, and order must be asc or desc. A 429 is returned when the request exceeds the applicable rate limit.