AnswerLoopsAnswerLoops Docs
ReferenceAgent API

Semantically search the organization's knowledge base

GET
/api/agent/kb/search

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
Lengthlength <= 2000
limit?integer
Range1 <= value <= 20
Default5

Response 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"  }}