Creates a task on the target lead.
Notes:
curl --request POST \
--url https://api.lofty.com/v1.0/tasks \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"content": "Send an email to my lead",
"leadId": 563172647619608,
"deadline": 1508580010000,
"type": "Call",
"assignedRole": "Agent",
"finishFlag": true
}
'{
"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 payload.
Description of the task.
"Send an email to my lead"
ID of the lead this task belongs to.
563172647619608
Deadline of the task, in milliseconds since Unix epoch (UTC).
1508580010000
Type of the task.
Other, Call, Email, Text "Call"
Role the task is assigned to.
Agent, Assistant "Agent"
When true on update, the task is marked completed and other fields are ignored.
true
Task created. Response contains the new task's ID.
Wrapped response for POST /v1.0/tasks. The new task's ID is returned under the 'taskId' key.
ID of the newly created task.
563172647619608
curl --request POST \
--url https://api.lofty.com/v1.0/tasks \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"content": "Send an email to my lead",
"leadId": 563172647619608,
"deadline": 1508580010000,
"type": "Call",
"assignedRole": "Agent",
"finishFlag": true
}
'{
"taskId": 563172647619608
}