Creates a new task or appointment on the target lead. Whether an appointment or a regular task is created depends on the payload’s type field.
Notes:
curl --request POST \
--url https://api.lofty.com/v2.0/tasks \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"type": "Call",
"content": "Send an email to my lead",
"leadId": 563172647619608,
"assignedRole": "Agent",
"startAt": "2026-03-01T15:00:00-08:00",
"endAt": "2026-03-01T16:00:00-08:00",
"timeZoneCode": "America/Los_Angeles",
"address": "123 Main St, Los Angeles, CA"
}
'{
"taskId": 563172647619608
}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.
Task or appointment payload.
The type of the task. Could be Other, Call, Email, Text, Appointment
"Call"
Description of the task
"Send an email to my lead"
The ID of the lead this task is related to
563172647619608
Role the task should be assigned to (Agent or Assistant)
"Agent"
When this task/appointment should start. ISO8601 format in specified timezone, e.g., '2026-03-01T15:00:00-08:00'
"2026-03-01T15:00:00-08:00"
When this task/appointment should end. ISO8601 format in specified timezone, e.g., '2026-03-01T16:00:00-08:00'. For regular tasks, this represents the deadline
"2026-03-01T16:00:00-08:00"
Timezone code for this task/appointment
"America/Los_Angeles"
Address/location for appointment type tasks
"123 Main St, Los Angeles, CA"
Task or appointment created. Response contains the new entry's ID.
Wrapped response for POST /v2.0/tasks. The new task's ID is returned under the 'taskId' key.
ID of the newly created task or appointment.
563172647619608
curl --request POST \
--url https://api.lofty.com/v2.0/tasks \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"type": "Call",
"content": "Send an email to my lead",
"leadId": 563172647619608,
"assignedRole": "Agent",
"startAt": "2026-03-01T15:00:00-08:00",
"endAt": "2026-03-01T16:00:00-08:00",
"timeZoneCode": "America/Los_Angeles",
"address": "123 Main St, Los Angeles, CA"
}
'{
"taskId": 563172647619608
}