curl --request POST \
--url https://api.lofty.com/v2.0/calendar \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"type": "TASK",
"content": "Follow up with client about property",
"leadId": 563172647619608,
"timeZoneCode": "America/Los_Angeles",
"startAt": "2026-03-01T14:00:00-08:00",
"endAt": "2026-03-01T15:00:00-08:00",
"startAtMs": 1740866400000,
"endAtMs": 1740870000000,
"taskWay": "Call",
"assignedRole": "Agent",
"address": "123 Main St, Los Angeles, CA"
}
'{
"data": {
"id": "12345-task",
"type": "TASK",
"message": "<string>"
}
}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.
Calendar payload. type decides whether a Task or Appointment is created.
Calendar type: TASK or APPOINTMENT
"TASK"
Content/Description of the calendar event
"Follow up with client about property"
Lead ID associated with this calendar event
563172647619608
Timezone code
"America/Los_Angeles"
Start time in ISO8601 format with timezone. Preferred over startAtMs when both are provided.
"2026-03-01T14:00:00-08:00"
End time in ISO8601 format. Preferred over endAtMs when both are provided.
"2026-03-01T15:00:00-08:00"
Start time as Unix timestamp in milliseconds. Used when startAt is not provided.
1740866400000
End time as Unix timestamp in milliseconds. Used when endAt is not provided.
1740870000000
Task way type: Call, Email, Text, Other (only for TASK)
"Call"
Assigned role: Agent or Assistant (only for TASK)
"Agent"
Location/Address (only for APPOINTMENT)
"123 Main St, Los Angeles, CA"
Calendar created. The response wraps CalendarCreateResult under the 'data' key.
Calendar creation response envelope
Calendar creation result
Show child attributes
curl --request POST \
--url https://api.lofty.com/v2.0/calendar \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"type": "TASK",
"content": "Follow up with client about property",
"leadId": 563172647619608,
"timeZoneCode": "America/Los_Angeles",
"startAt": "2026-03-01T14:00:00-08:00",
"endAt": "2026-03-01T15:00:00-08:00",
"startAtMs": 1740866400000,
"endAtMs": 1740870000000,
"taskWay": "Call",
"assignedRole": "Agent",
"address": "123 Main St, Los Angeles, CA"
}
'{
"data": {
"id": "12345-task",
"type": "TASK",
"message": "<string>"
}
}