Skip to main content
get/knowledge-fs/spaces/{knowledge_base_id}/traces/{query_record_id}
Request example
Response
get/knowledge-fs/spaces/{knowledge_base_id}/traces/{query_record_id}

Authorization

Authorizationstringheaderrequired#

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_idstringrequired#
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_idstringrequired#
Query record ID: the x-query-run-id response header of Run Query, or id from List Query Records.

Responses

application/json
The query record.
created_atstring#
When the run was recorded, ISO 8601.
evidence_bundle_idstring#
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.
idstring#
Query record ID.
knowledge_space_idstring#
Internal ID of the knowledge base. Not the knowledge base ID in the path.
modestring#
Retrieval depth of the run: fast, deep, or research.
querystring#
The query text.
query_imagesobject[]#
Images used in the original query, when present. Omitted for text-only queries.
sourcestring#
Who produced the record: service_api, workflow, agent, mcp, or retrieval_test.
stepsobject[]#
Steps of the run, in execution order.