Skip to main content
POST
/
v1.0
/
tasks
Create Task (V1)
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.

Headers

Authorization
string
required

Bearer [access_token]

Content-Type
string
required

application/json

Body

application/json

Task payload.

content
string
required

Description of the task.

Example:

"Send an email to my lead"

leadId
integer<int64>
required

ID of the lead this task belongs to.

Example:

563172647619608

deadline
integer<int64>
required

Deadline of the task, in milliseconds since Unix epoch (UTC).

Example:

1508580010000

type
enum<string>
required

Type of the task.

Available options:
Other,
Call,
Email,
Text
Example:

"Call"

assignedRole
enum<string>
required

Role the task is assigned to.

Available options:
Agent,
Assistant
Example:

"Agent"

finishFlag
boolean
default:false

When true on update, the task is marked completed and other fields are ignored.

Example:

true

Response

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.

taskId
integer<int64>

ID of the newly created task.

Example:

563172647619608