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
chunk_id
string
required

Response

Success

chunk_id
string
required
file_id
string
required
text
string
required
locations
VectorDatabaseMarkdownLocation · object[] | null
metadata
Metadata · object | null

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

Last modified on June 18, 2026