Skip to main content
POST
Create/Schedule Calendar Event

Headers

Authorization
string
required

Bearer [access_token]

Content-Type
string
required

application/json

Body

application/json

Calendar payload. type decides whether a Task or Appointment is created.

type
string
required

Calendar type: TASK or APPOINTMENT

Example:

"TASK"

content
string
required

Content/Description of the calendar event

Example:

"Follow up with client about property"

leadId
integer<int64>
required

Lead ID associated with this calendar event

Example:

563172647619608

timeZoneCode
string
required

Timezone code

Example:

"America/Los_Angeles"

startAt
string

Start time in ISO8601 format with timezone. Preferred over startAtMs when both are provided.

Example:

"2026-03-01T14:00:00-08:00"

endAt
string

End time in ISO8601 format. Preferred over endAtMs when both are provided.

Example:

"2026-03-01T15:00:00-08:00"

startAtMs
integer<int64>

Start time as Unix timestamp in milliseconds. Used when startAt is not provided.

Example:

1740866400000

endAtMs
integer<int64>

End time as Unix timestamp in milliseconds. Used when endAt is not provided.

Example:

1740870000000

taskWay
string

Task way type: Call, Email, Text, Other (only for TASK)

Example:

"Call"

assignedRole
string

Assigned role: Agent or Assistant (only for TASK)

Example:

"Agent"

address
string

Location/Address (only for APPOINTMENT)

Example:

"123 Main St, Los Angeles, CA"

assignedRoleId
integer<int32>

Lead role the task is assigned to, custom roles included. Takes priority over assignedRole. Must be a role somebody holds on this lead, the same list the Assign To dropdown shows; 400 otherwise. Omit it to keep using assignedRole.

Example:

10

ownerUserId
integer<int64>

Lofty user ID owning the appointment. Must be a member of the caller's team. Omit it and the caller owns the appointment, as before. Ignored for plain tasks.

Example:

844775556213479

participants
object

Extra attendees of the appointment. Ignored for plain tasks.

Response

Calendar created. The response wraps CalendarCreateResult under the 'data' key.

Calendar creation response envelope

data
object

Calendar creation result