Skip to main content
GET
JavaScript

Authorizations

Authorization
string
header
required

API Key or JWT User Token. If using an API Key, set the X-As-User header to act as a specific user. A JWT User Token is always scoped to a specific user.

Path Parameters

query_id
string
required

Response

Successful Response

query_id
string | null

The ID of the query. This can be used to retrieve the query later, or add feedback to it. If the query failed, this will be None.

errors
Errors · object[] | null

Errors that occurred during the query. These are meant to help the developer debug the query, and are not meant to be shown to the user.

documents
ScoredDocumentResponse · object[]

The matching documents, each carrying its hyperdoc tree plus query-path score/highlights/summary (ENG-2479 Phase 4).

answer
string | null

The answer to the query, if the request was set to answer.

disclaimer
string | null

Privacy notice, set when the query ran in cross-user alpha mode: the answer may draw on other members' data and category filtering is best-effort. Show this to the end user alongside the answer.

provenance
Provenance · object | null

Auditability record (source documents, entities, search trajectory, failed sources), if the request set provenance=True on a very_high query.

citations
CitationCandidate · object[] | null

Sources the answer cites, in first-mention order. Each entry resolves an inline [SRC-n] marker in the answer text to the source document it refers to. Present only when the answer-citations flag is on for the app and the answer actually cited something.

score
number | null

The average score of the query feedback, if any.

query
string | null

The query string that was issued.