Skip to main content
GET
Get Query Record

Authorizations

Authorization
string
header
required

Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).

Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).

Path Parameters

knowledge_base_id
string<uuid>
required

Knowledge base ID: the last segment of the Service API endpoint shown in the knowledge base's API Access dialog (…/knowledge-fs/spaces/<knowledge base ID>), and the segment after /datasets/new/ in the address bar.

query_record_id
string<uuid>
required

Query record ID: the x-query-run-id response header of Run Query, or id from List Query Records.

Response

The query record.

created_at
string

When the run was recorded, ISO 8601.

evidence_bundle_id
string | null

ID of the set of retrieved chunks the record refers to. No operation takes this ID. The chunks themselves are embedded in the query.generate step. null when the run recorded none.

id
string

Query record ID.

knowledge_space_id
string

Internal ID of the knowledge base. Not the knowledge base ID in the path.

mode
string

Retrieval depth of the run: fast, deep, or research.

query
string

The query text.

query_images
object[]

Images used in the original query, when present. Omitted for text-only queries.

source
string

Who produced the record: service_api, workflow, agent, mcp, or retrieval_test.

steps
object[]

Steps of the run, in execution order.