Disconnects a user’s Google Calendar, stops all webhook channels, deletes all synced events, and cancels all scheduled bots.
DELETE /calendar/disconnect or POST /calendar/disconnect
Headers:
| Field | Type | Description |
|---|---|---|
disconnected | boolean | Whether the disconnection was successful |
user_id | string | The user ID that was disconnected |
watch_channel_stopped | boolean | Whether watch channels were stopped |
events_deleted | integer | Number of events deleted from the Events table |
schedules_cancelled | integer | Number of EventBridge schedules cancelled |
message | string | Success message |
user_id in token or invalid authentication.
All API endpoints are authenticated using API Keys. The key should be included in the 'Authorization' header, prefixed with 'Token '. Example: 'Authorization: Token YOUR_API_KEY'.
Calendar disconnected successfully.
Whether the disconnection was successful
Success message
The user ID that was disconnected
Whether watch channels were stopped
Number of events deleted from the Events table
Number of EventBridge schedules cancelled