Remove an agent

remove an agent from a folder.

DELETE https://api.centerfy.ai/webhooks/inbound/agent-folders/:id/agents/:agentId

Headers

HeaderRequiredValueDescription
x-api-keyYesyour sub-account API key (cfy_…)Authenticates the request; or use Authorization: Bearer <key>.

Path parameters

NameTypeRequiredDescription
idstring (uuid)YesThe folder id the agent should be removed from.
agentIdstring (uuid)YesThe agent id to unassign (moves it back to root).

Example

curl -X DELETE "https://api.centerfy.ai/webhooks/inbound/agent-folders/{id}/agents/{agentId}" \
  -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.agentFolders.removeAgent("<folderId>", "<agentId>");
console.log(result);
centerfy agentFolders remove-agent <folderId> <agentId>

MCP tool: centerfy_agent_folders_remove_agent (see MCP server)

Response

{
  "status": "success",
  "removed": true,
  "agent_id": "f1e2d3c4-b5a6-4978-8c9d-0e1f2a3b4c5d",
  "folder_id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
}

Notes

Removes the agent from the folder, moving it back to root. Errors: 400 (invalid folder/agent id), 401 (unauthenticated), 404 (agent not found in that folder), 500 (server error).

© 2026 Centerfy AI. All rights reserved.