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
| Header | Required | Value | Description |
|---|---|---|---|
x-api-key | Yes | your sub-account API key (cfy_…) | Authenticates the request; or use Authorization: Bearer <key>. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | The agent id. |
calendarId | string (uuid) | Yes | The 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.