Tasks
Task CRUD. A task can be linked to a lead or standalone.
Base URL
https://app.syncro.chat/api/v1AuthX-API-Key: crm_SUA_CHAVE_AQUIThe Task object
{
"id": 45,
"subject": "Enviar proposta",
"description": "Mandar PDF com valores",
"type": "email",
"status": "pending",
"priority": "high",
"due_date": "2026-07-01",
"due_time": "09:00",
"completed_at": null,
"lead_id": 123,
"lead": { "id": 123, "name": "João Silva", "phone": "+5511999887766", "email": "[email protected]" },
"assigned_to": 12,
"assigned_user": { "id": 12, "name": "Ana" },
"notes": null,
"is_overdue": false,
"created_at": "2026-06-30T08:00:00Z",
"updated_at": "2026-06-30T08:00:00Z"
}
Accepted values
type:call,email,task,visit,whatsapp,meetingpriority:low,medium,highstatus:pending,completed
List tasks
GET
Permission: /taskstasks:readPaginated.
Query parameters
lead_idintegeroptionalTasks of a lead
assigned_tointegeroptionalTasks of an assignee
statusstringoptionalpending or completedtypestringoptionalType (see above)
prioritystringoptionallow, medium, highdue_fromdateoptionalDue date from
due_todateoptionalDue date until
pageintegeroptionalPage (default
1)per_pageintegeroptionalItems per page (default
50, max 200)Request
curl "https://app.syncro.chat/api/v1/tasks?status=pending&lead_id=123" \ -H "X-API-Key: crm_SUA_CHAVE_AQUI"
Response
{
"success": true,
"data": [
{
"id": 45,
"subject": "Enviar proposta",
"type": "email",
"status": "pending",
"priority": "high",
"due_date": "2026-07-01",
"lead_id": 123
}
],
"meta": {
"total": 1,
"per_page": 50,
"current_page": 1,
"last_page": 1,
"has_more": false
}
}Create task
POST
Permission: /taskstasks:writeBody parameters
subjectstringrequiredSubject
typestringrequiredcall, email, task, visit, whatsapp, meetingdue_datedaterequiredDue date (
YYYY-MM-DD)descriptionstringoptionalDescription
prioritystringoptionallow, medium, highdue_timestringoptionalTime (
HH:MM)lead_idintegeroptionalLinked lead
assigned_tointegeroptionalAssignee
notesstringoptionalNotes
Request
curl -X POST "https://app.syncro.chat/api/v1/tasks" \
-H "X-API-Key: crm_SUA_CHAVE_AQUI" \
-H "Content-Type: application/json" \
-d '{
"subject": "Enviar proposta",
"type": "email",
"due_date": "2026-07-01",
"due_time": "09:00",
"priority": "high",
"lead_id": 123,
"assigned_to": 12
}'Response
{
"success": true,
"task": {
"id": 45,
"subject": "Enviar proposta",
"status": "pending"
}
}Fetch task
GET
Permission: /tasks/45tasks:readRequest
curl "https://app.syncro.chat/api/v1/tasks/45" \ -H "X-API-Key: crm_SUA_CHAVE_AQUI"
Response
{
"success": true,
"task": {
"id": 45,
"subject": "Enviar proposta",
"status": "pending"
}
}Update task
PUT
Permission: /tasks/45tasks:writeAll fields are optional (partial update). Setting status to completed fills completed_at automatically.
Request
curl -X PUT "https://app.syncro.chat/api/v1/tasks/45" \
-H "X-API-Key: crm_SUA_CHAVE_AQUI" \
-H "Content-Type: application/json" \
-d '{
"status": "completed"
}'Response
{
"success": true,
"task": {
"id": 45,
"status": "completed",
"completed_at": "2026-06-30T11:30:00Z"
}
}Delete task
DELETE
Permission: /tasks/45tasks:writeRequest
curl -X DELETE "https://app.syncro.chat/api/v1/tasks/45" \ -H "X-API-Key: crm_SUA_CHAVE_AQUI"
Response
{
"success": true
}Complete / reopen task
PATCH
Permission: /tasks/45/toggletasks:writeToggles the status between pending and completed.
Request
curl -X PATCH "https://app.syncro.chat/api/v1/tasks/45/toggle" \ -H "X-API-Key: crm_SUA_CHAVE_AQUI"
Response
{
"success": true,
"task": {
"id": 45,
"status": "completed"
}
}