Integrate with the Klen AI Calendar API to manage events and availability
The Calendar API allows you to integrate with Klen AI’s calendar functionality, enabling you to:
All Calendar API endpoints are available under the base URL:
All Calendar API requests require authentication using an API key. See the Authentication section for more details.
Your API key must have the following permissions to use the Calendar API:
can_read_calendar
- Required for read operations (GET requests)can_write_calendar
- Required for write operations (POST, PUT, PATCH, DELETE requests)Each API key has a limit on the number of calendar events that can be created per day, defined by the calendar_events_per_day_limit
field (default: 50).
Calendar events can be of the following types:
Type | Description |
---|---|
meeting | A general meeting |
appointment | A scheduled appointment |
busy | A busy/unavailable time slot |
voice_call | A voice call |
video_call | A video call |
Calendar events can have the following statuses:
Status | Description |
---|---|
scheduled | The event is scheduled but not yet confirmed |
confirmed | The event is confirmed |
cancelled | The event has been cancelled |
completed | The event has been completed |
no_show | The customer did not show up for the event |
The Calendar API integrates with Klen AI’s webhook system, allowing you to receive notifications when calendar events are created, updated, cancelled, or completed.
The following webhook event types are available for calendar events:
Event Type | Description |
---|---|
calendar.created | A calendar event has been created |
calendar.updated | A calendar event has been updated |
calendar.cancelled | A calendar event has been cancelled |
calendar.completed | A calendar event has been completed |
calendar.reminder | A reminder for a calendar event has been sent |
See the Webhooks section for more details on how to set up and use webhooks.
Calendar events can be synchronized with external calendar services such as:
When an event is created, updated, or cancelled through the API, it can be automatically synchronized with connected external calendars if the sync_external_calendars
parameter is set to true
.