cURL
curl --request GET \ --url https://api.example.com/api/v1/calendar/events
{ "count": 123, "page": 123, "limit": 123, "pages": 123, "events": [ { "id": 123, "uuid": "<string>", "title": "<string>", "event_type": "<string>", "status": "<string>", "start_time": "<string>", "end_time": "<string>", "duration_minutes": 123, "location": "<string>", "has_video_conference": true, "video_conference_url": "<string>", "created_by_ai_agent": true, "ai_agent": { "id": 123, "name": "<string>", "assistant_id": "<string>" }, "customer": { "name": "<string>", "email": "<string>", "phone": "<string>" } } ], "error": "<string>", "message": "<string>" }
Retrieve a paginated list of calendar events
scheduled
confirmed
cancelled
completed
no_show
Show Event Object
meeting
appointment
busy
voice_call
video_call
Show AI Agent Details
Show Customer Details
curl -X GET 'https://api.klen.ai/api/v1/calendar/events?start_date=2025-05-01&end_date=2025-05-31&status=confirmed&page=1&limit=10' \ -H 'Authorization: Bearer klen_YOUR_API_KEY'
{ "count": 25, "page": 1, "limit": 10, "pages": 3, "events": [ { "id": 123, "uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "title": "Client Meeting", "event_type": "meeting", "status": "confirmed", "start_time": "2025-05-01T14:00:00.000Z", "end_time": "2025-05-01T15:00:00.000Z", "duration_minutes": 60, "location": "Conference Room A", "has_video_conference": true, "video_conference_url": "https://meet.google.com/abc-defg-hij", "created_by_ai_agent": true, "ai_agent": { "id": 42, "name": "Meeting Scheduler", "assistant_id": "asst_01234567890" }, "customer": { "name": "John Smith", "email": "john.smith@example.com", "phone": "+15551234567" } }, { "id": 124, "uuid": "63f5f61f-4271-4870-bc31-cbd75856663b", "title": "Project Review", "event_type": "video_call", "status": "confirmed", "start_time": "2025-05-02T10:00:00.000Z", "end_time": "2025-05-02T11:30:00.000Z", "duration_minutes": 90, "location": null, "has_video_conference": true, "video_conference_url": "https://zoom.us/j/123456789", "created_by_ai_agent": false, "customer": { "name": "Jane Doe", "email": "jane.doe@example.com", "phone": "+15557654321" } } // ... more events ] }
{ "error": "invalid_parameter", "message": "Invalid date format. Expected YYYY-MM-DD" }
{ "error": "authentication_required", "message": "API key is required" }
{ "error": "permission_denied", "message": "This API key does not have can_read_calendar permission" }
{ "error": "server_error", "message": "An unexpected server error occurred" }