Agents

Knowledge health of an AI Agent (v2)

Compares the agent's stored knowledge (Web Index pages and Docs Index documents carrying its id) with the searchable chunks in the AI service, and reports what is stored but not searchable. Fix gaps with POST /v2/agents/{idOrAddress}/knowledge/rebuild.

When the AI service cannot be reached the counts of stored rows are still returned, with indexAvailable: false and chunks: null.

Owner only. Supports User JWT and B2B Server JWT.

get/v2/agents/{idOrAddress}/knowledge

Request

  • Base URL: https://api.chat.ethora.com
  • URL: https://api.chat.ethora.com/v2/agents/{idOrAddress}/knowledge
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

idOrAddressstring required

Agent id, or the agent's 0x... address.

Response

{
  ok: true,
  pages: number,              // Web Index rows
  docs: number,               // Docs Index rows
  chunks: number|null,        // searchable chunks, null when the AI service is unreachable
  missing: {
    pages: number,            // stored but not searchable
    docs: number,
    examples: string[]        // up to 5 URLs / file names
  },
  lastIndexedAt: ISODate|null,
  indexAvailable: boolean,
  rebuilding: boolean         // a rebuild is running
}

Changes

No recorded changes to this operation across all 1 revision of this API.