NLWeb /ask
EvalGate exposes an authenticated NLWeb-compatible/ask endpoint for agents
that need to find published documentation. It performs bounded deterministic
search over EvalGate’s published documentation catalog. It does not call a
model, read repositories, access customer data, or summarize private content.
Every request requires an organization-scoped EvalGate API key with the
docs:read scope:
{ "query": "How do I connect MCP?", "streaming": true } remains accepted. GET uses query, q, or text as the query
parameter. Results are list/search results only; summarize and generate
modes return a truthful unsupported-mode error.
JSON response
Non-streaming requests returnquery_id, the normalized query, a deterministic
results list, and NLWeb metadata:
Streaming response
Setprefer.streaming to true (or use the legacy streaming field) to
receive text/event-stream. Events are emitted in this order:
start— identifies the query.result— one event per matching published document.complete— reports the result count.
WWW-Authenticate challenge on a 401 points agents to EvalGate’s
protected-resource metadata. A key with no docs:read grant receives 403.