Retrieve the parsed contents of a vector store file.

GET /vector_stores/{vector_store_id}/files/{file_id}/content

Path parameters

  • vector_store_id string Required

    The ID of the vector store.

  • file_id string Required

    The ID of the file within the vector store.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • object string Required

      The object type, which is always vector_store.file_content.page

      Value is vector_store.file_content.page.

    • data array[object] Required

      Parsed content of the file.

      Hide data attributes Show data attributes object
      • type string

        The content type (currently only "text")

      • text string

        The text content

    • has_more boolean Required

      Indicates if there are more content pages to fetch.

    • next_page string | null Required

      The token for the next page, if any.

GET /vector_stores/{vector_store_id}/files/{file_id}/content
curl \
 --request GET 'https://api.openai.com/v1/vector_stores/vs_abc123/files/file-abc123/content' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "object": "vector_store.file_content.page",
  "data": [
    {
      "type": "string",
      "text": "string"
    }
  ],
  "has_more": true,
  "next_page": "string"
}