Delete an appointment
delete an appointment.
DELETE
https://api.centerfy.ai/webhooks/inbound/appointments/:id 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 appointment id to delete. |
Example
curl -X DELETE "https://api.centerfy.ai/webhooks/inbound/appointments/{id}" \
-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.appointments.delete("<appointmentId>");
console.log(result); centerfy appointments delete <appointmentId> MCP tool: centerfy_appointments_delete (see MCP server)
Response
{
"status": "success",
"deleted": true,
"appointment_id": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f"
}Errors
400— for an invalid id.404— if the appointment does not exist.409— if it has related records and cannot be deleted.500— on failure.
Notes
Permanently deletes the appointment.