Skip to main content
GET
Get Vector Database Chunk
Returns the text content of the specified chunk along with its location within the source file and a reference to the original uploaded file. Location data includes line numbers, character offsets, page number, and the heading hierarchy at the point where the chunk appears. The file_id in the response identifies the source document and can be used with the file download endpoint to retrieve it. The chunk_id required to call this endpoint is available in the assistant message content after a run that used the file search tool. Each chunk in the message includes chunk_id alongside page, lines, and section, giving you a complete lineage chain from model output to the original source file. page_number is null for native Markdown and JSON files, which have no page structure.

Authorizations

Authorization
string
header
required

Your Seekr API key, sent in the Authorization header with no 'Bearer' prefix.

Path Parameters

database_id
string
required

ID of the vector database.

chunk_id
string
required

ID of the chunk.

Response

Success

chunk_id
string
required

ID of the chunk.

file_id
string
required

ID of the file the chunk comes from.

text
string
required

Text of the chunk.

locations
VectorDatabaseMarkdownLocation · object[] | null

Where the chunk appears in the source file.

metadata
Metadata · object | null

User-defined metadata attached to this chunk at ingestion time, or updated through PATCH /vectordb/{database_id}/metadata. null when no metadata was provided.

Last modified on July 31, 2026