ReferenceAgent API
Semantically search the organization's knowledge base
Authorization
bearerAuth AuthorizationBearer <token>
Org-scoped API key generated in Settings → API Keys (al_live_ prefix). Shared with the MCP server — the same key authenticates both surfaces.
In: header
Query Parameters
query*string
Length
length <= 2000limit?integer
Range
1 <= value <= 20Default
5Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/agent/kb/search?query=string"{ "results": [ { "question": "string", "answer": "string", "score": 0 } ]}{ "error": { "message": "string" }}{ "error": { "message": "string" }}{ "error": { "message": "string" }}