Remove a calendar from an agent

Remove a calendar from an agent. The agent can no longer check or book on it; the calendar itself is not deleted.

DELETE https://api.centerfy.ai/webhooks/inbound/agents/:id/calendars/:calendarId

Headers

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

Path parameters

NameTypeRequiredDescription
idstring (uuid)YesThe agent id.
calendarIdstring (uuid)YesThe calendar to remove.

Example

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

MCP tool: centerfy_calendars_remove_agent (see MCP server)

Response

{
  "status": "success",
  "removed": true,
  "agent_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
  "calendar_id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b"
}

Errors

  • 400 — if calendarId isn’t a UUID; 404 if the agent is not in this sub-account or the calendar isn’t assigned to it.
© 2026 Centerfy AI. All rights reserved.