API reference · API
A vector store file's chunks, in order
GET/v1/vector_stores/{id}/files/{fileId}/contentAPI key
Parameters
| Field | Type | What it is |
|---|---|---|
| id (path)required | string | The vector store id, vs_ and 24 hex digits. |
| fileId (path)required | string | The file id, as /v1/files gave it. |
Answer 200
The chunks' text.
| Field | Type | What it is |
|---|---|---|
| object | "vector_store.file_content.page" | |
| data | array of object | |
| data[] | "text" | |
| data[] | string | |
| has_more | boolean | |
| next_page | null |
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.