Remove from an agent
Remove (disconnect) a knowledge base from an agent. The knowledge base and its data are untouched; only the link is deleted.
DELETE
https://api.centerfy.ai/webhooks/inbound/agents/:id/knowledge-base/:kbId Headers
| Header | Required | Value | Description |
|---|---|---|---|
x-api-key | Yes | your sub-account API key (cfy_…) | Authenticates the request; or Authorization: Bearer <key>. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | The agent id. |
kbId | string (uuid) | Yes | The knowledge base id to disconnect from the agent. |
Example
curl -X DELETE "https://api.centerfy.ai/webhooks/inbound/agents/{id}/knowledge-base/{kbId}" \
-H "x-api-key: $CENTERFY_API_KEY" import { CenterfyClient } from "@centerfy/sdk";
const centerfy = new CenterfyClient({ apiKey: process.env.CENTERFY_API_KEY! });
const result = await centerfy.agents.removeKnowledgeBase("<agentId>", "<knowledgeBaseId>");
console.log(result); centerfy agents remove-knowledge-base <agentId> <knowledgeBaseId> MCP tool: centerfy_agents_remove_knowledge_base (see MCP server)
Response
{
"status": "success",
"removed": true,
"agent_id": "11111111-2222-3333-4444-555555555555",
"knowledge_base_id": "66666666-7777-8888-9999-000000000000"
}Errors
200— on success.400— if the agent id or knowledge base id is not a valid UUID.404— if the agent does not exist, or if the knowledge base is not connected to the agent.