Single-shot Q&A over project knowledge

Stateless query endpoint — does not persist a chat history. Use this for one-off questions. For multi-turn conversation, use POST /chat instead.

Authentication

AuthorizationBearer

Pyramid API key (prefix with “Bearer ”)

Request

This endpoint expects an object.
project_idstringRequiredformat: "uuid"
querystringRequired<=100000 characters
max_sourcesintegerOptional1-20Defaults to 5
response_formatenumOptionalDefaults to text
Allowed values:
response_schemaobjectOptional

JSON schema for structured output (required when response_format=json)

search_scopeenumOptionalDefaults to project
Allowed values:

Response

Query result
request_idstringformat: "uuid"

Server-generated per-request UUID. Also sent as X-Request-Id response header. Include in support tickets.

successany
dataobject
paginationobject

Present only on list endpoints. Top-level (not nested inside data).

Errors

400
Bad Request Error
401
Unauthorized Error