API reference · API
List a vector store's files
GET/v1/vector_stores/{id}/filesAPI key
Parameters
| Field | Type | What it is |
|---|---|---|
| id (path)required | string | The vector store id, vs_ and 24 hex digits. |
| limit (query) | integer | 1 to 100; 20 by default. From 1 to 100. |
| order (query) | string | By created_at; desc by default. One of "asc", "desc". |
| after (query) | string | |
| before (query) | string | |
| filter (query) | string | One of "in_progress", "completed", "failed", "cancelled". |
Answer 200
A page of files.
| Field | Type | What it is |
|---|---|---|
| object | "list" | |
| data | array of VectorStoreFile | |
| data[] | string | |
| data[] | "vector_store.file" | |
| data[] | integer | |
| data[] | string | |
| data[] | string | One of "in_progress", "completed", "failed", "cancelled". |
| data[] | integer | |
| data[] | object or null | |
| data[] | string | One of "server_error", "unsupported_file", "invalid_file". |
| data[] | string | |
| data[] | object or null | At most 16 pairs; keys up to 64 characters, values a string up to 512 characters, a number or a boolean. |
| data[] | object | auto is 800 tokens overlapping by 400; static takes 100 to 4096 tokens and an overlap of at most half of that. |
| first_id | string or null | |
| last_id | string or null | |
| has_more | boolean |
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 402OpenAI shaped error.
- 403OpenAI shaped error.
- 404OpenAI shaped error.
- 429OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.