Single-shot Q&A over project, org, or Open Library knowledge
Single-shot Q&A over project, org, or Open Library knowledge
Stateless query endpoint — does not persist a chat history. Use this for one-off questions. For multi-turn conversation, use POST /chat instead.
search_scope picks the corpus: project (default, project_id
required), org (the org’s own documents), or open_library (the
shared Open Library corpus of Hong Kong government engineering
documents — requires the api.open_library feature).
Authentication
Pyramid API key (prefix with “Bearer ”)
Request
Required when search_scope is “project” (the default); must be omitted for “org” and “open_library”.
JSON schema for structured output (required when response_format=json)
Which corpus the query searches. Exclusive — one request searches one corpus.
project— the given project’s document chunks (project_idrequired).org— the organization’s own org-level documents (project_idmust be omitted).open_library— the shared Open Library corpus of Hong Kong government engineering documents (project_idmust be omitted). Requires theapi.open_libraryfeature to be enabled for your organization. When omitted, the scope is derived for backward compatibility:projectwhenproject_idis present,orgotherwise.
Response
Server-generated per-request UUID. Also sent as X-Request-Id response header. Include in support tickets.
Present only on list endpoints. Top-level (not nested inside data).