API - Tasks - Create

Create a task linked to a customer, a lead or an organization. Tasks created through the API show up in the software the same way as tasks created by hand.

MethodURLPackage
POSThttps://rental.software/api6/tasksWP/API and Sales CRM

Request

The first five parameters below are required. The rest are optional. This is not a complete list.

POST /api6/tasks/?apiKey=YOUR_API_KEY {
  task_status: New
  task_desc: Call to confirm the delivery window
  task_linkto: Jordan Rivera
  task_linkid: 533268
  task_linktype: Cust
}
ParameterRequiredDescription
task_statusYesStatus. Options: New, In Progress, Completed, Rejected
task_descYesTask description
task_linktoYesName of the customer, lead, or organization the task is linked to
task_linkidYesContact ID, or lead ID, or organization ID
task_linktypeYesWhat type of ID task_linkid is. Options: Cust, Lead, Org
task_assignedidNoWorker ID of the worker the task is assigned to. The worker's name is filled in for you
task_assignedtoNoName of who the task is assigned to. Only needed when you do not send task_assignedid
task_readNoMark task as read. Options: 0, 1
task_reminddateNoReminder date, in the date format of your account (for example 7/25/2026)
task_remindtimeNoReminder time, for example 2:00pm. Defaults to 12:00pm
task_reminderNoReminder date and time as a Unix timestamp. Use this instead of task_reminddate and task_remindtime if you prefer timestamps
task_recurringNoTask recurring option. Options: Never, Weekly, Monthly, Yearly. A recurring task needs a reminder
task_badgeNoShow Badge. Options: 0, 1
task_emailNoSend Email. Options: 0, 1
task_flagNoShow Flag. Options: 0, 1
task_calendarNoShow on Calendar. Options: 0, 1

Example

curl -X POST "https://rental.software/api6/tasks" \
  -d "apiKey=YOUR_API_KEY" \
  -d "task_status=New" \
  -d "task_desc=Call to confirm the delivery window" \
  -d "task_linkto=Jordan Rivera" \
  -d "task_linkid=533268" \
  -d "task_linktype=Cust" \
  -d "task_reminddate=7/25/2026" \
  -d "task_remindtime=9:00am"

Response

A successful call returns HTTP 200 with the ID of the new task:

{
  "id": 77123,
  "request_time": 1760000000
}

Errors

StatusMessageWhat to do
400Missing required inputs.Send all five required parameters: task_status, task_desc, task_linkto, task_linkid and task_linktype
405Only accepts POST requestsUse POST. Tasks cannot be read through the API

See API - Errors and Rate Limits for errors that apply to every call.


Related Links

Is this article helpful?
0 0 0