Returns a page of calendar entries (Tasks and Appointments) for the caller, optionally filtered by leadId, type and completion status.
Notes:
curl --request GET \
--url https://api.lofty.com/v2.0/calendar \
--header 'Authorization: <authorization>'{
"data": {
"total": 100,
"page": 0,
"pageSize": 20,
"items": [
{
"id": "12345-task",
"type": "TASK",
"taskId": 123,
"sourceType": 123,
"content": "<string>",
"title": "<string>",
"finished": false,
"startAt": "<string>",
"endAt": "<string>",
"startAtMs": 123,
"endAtMs": 123,
"timeZoneCode": "<string>",
"leadId": 1234567890
}
]
}
}Documentation Index
Fetch the complete documentation index at: https://developer.lofty.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer [access_token]
Lead ID (optional, filter by specific lead)
123456
Start time, ISO 8601 with offset. At least one of startTime or endTime is required.
"2026-01-01T00:00:00+08:00"
End time, ISO 8601 with offset. At least one of startTime or endTime is required.
"2026-12-31T23:59:59+08:00"
Start time as Unix timestamp in milliseconds. Used when startTime is not provided.
1704038400000
End time as Unix timestamp in milliseconds. Used when endTime is not provided.
1735660799000
Timezone code (IANA format, e.g., America/Los_Angeles)
"America/Los_Angeles"
Include finished calendars
false
Page number (starts from 0)
0
Page size (max 500)
20
Sort field (e.g., startTime)
"startTime"
Sort in descending order
true
Filter by source type codes. Multiple values allowed.
[1, 2, 4]Page of calendar entries with pagination metadata.
Response envelope for GET /v2.0/calendar. Wraps the paginated calendar list under the 'data' field.
Calendar list response with pagination
Show child attributes
curl --request GET \
--url https://api.lofty.com/v2.0/calendar \
--header 'Authorization: <authorization>'{
"data": {
"total": 100,
"page": 0,
"pageSize": 20,
"items": [
{
"id": "12345-task",
"type": "TASK",
"taskId": 123,
"sourceType": 123,
"content": "<string>",
"title": "<string>",
"finished": false,
"startAt": "<string>",
"endAt": "<string>",
"startAtMs": 123,
"endAtMs": 123,
"timeZoneCode": "<string>",
"leadId": 1234567890
}
]
}
}