answerLoopsanswerLoopsDocs
ReferenceApi

List the organization's canary questions and each one's latest result

A canary is a question pinned with the phrases its answer must and must not contain. It is re-checked against the knowledge base after every sync, after an embedding model change, and on request from the dashboard. After changing docs, every canary should be 'passing'.

GET
/api/v1/agent/kb/canaries

Authorization

bearerAuth kb:read
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. A key carries a set of least-privilege scopes; each operation lists the scope it requires. A key missing a required scope gets 403 with a WWW-Authenticate: Bearer error="insufficient_scope" header. Scope catalogue: see the x-api-scopes object and /.well-known/oauth-protected-resource.

In: header

Scope: kb:read

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/agent/kb/canaries"
{  "summary": {    "total": 0,    "passing": 0,    "failing": 0,    "could_not_check": 0,    "not_checked": 0,    "edited": 0  },  "latest_run": {    "trigger": "sync",    "status": "running",    "skip_reason": "string",    "total": 0,    "passed": 0,    "failed": 0,    "errored": 0,    "started_at": "2019-08-24T14:15:22Z",    "finished_at": "2019-08-24T14:15:22Z"  },  "canaries": [    {      "id": 0,      "question": "string",      "must_include": [        "string"      ],      "must_not_include": [        "string"      ],      "note": "string",      "status": "passing",      "last_result": {        "outcome": "pass",        "checked_at": "2019-08-24T14:15:22Z",        "missing": [          "string"        ],        "stale": [          {            "phrase": "string",            "article_id": 0,            "article_title": "string"          }        ],        "article_ids": [          0        ]      }    }  ]}