Skip to content
Entayo CRM API

Tasks

Serverhttps://apac.zocton.com/entayo-crm/api

List tasks

GET
https://apac.zocton.com/entayo-crm/api
/tasks
Bearer (entayo_…)

List tasks › query Parameters

status
​TaskStatus · enum
Enum values:
pending
in_progress
completed
cancelled
priority
​Priority · enum
Enum values:
low
medium
high
urgent
type
​string

Task type.

created_by
​string · enum
Enum values:
manual
ai
entity_id
​integer

Only one record's tasks.

entity_type_slug
​string
search
​string
sort
​string · enum
Enum values:
due_date
priority
created_at
Default: due_date
order
​string · enum
Enum values:
asc
desc
Default: desc
page
​integer
Default: 1
limit
​integer
Default: 50

List tasks › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

List tasks › Responses

One page of tasks.

​Task[]
total
​integer
page
​integer
limit
​integer

Set the status of many tasks

PUT
https://apac.zocton.com/entayo-crm/api
/tasks
Bearer (entayo_…)

Set the status of many tasks › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Set the status of many tasks › Request Body

ids
​integer[] · required
status
​TaskStatus · enum · required
Enum values:
pending
in_progress
completed
cancelled

Set the status of many tasks › Responses

Done.

success
​boolean

Create a task

POST
https://apac.zocton.com/entayo-crm/api
/tasks
Bearer (entayo_…)

Create a task › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Create a task › Request Body

title
​string · required
description
​string
entity_id
​integer

The record the task is about.

task_type
​string
priority
​Priority · enum
Enum values:
low
medium
high
urgent
due_date
​string · date-time
created_by
​string · enum
Enum values:
manual
ai
Default: manual
assigned_to
​string

Create a task › Responses

Created.

No data returned

Complete, delete or re-status many tasks

POST
https://apac.zocton.com/entayo-crm/api
/tasks/bulk
Bearer (entayo_…)

Complete, delete or re-status many tasks › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Complete, delete or re-status many tasks › Request Body

ids
​integer[] · required
action
​string · enum · required
Enum values:
complete
delete
status
status
​TaskStatus · enum
Enum values:
pending
in_progress
completed
cancelled

Complete, delete or re-status many tasks › Responses

Done.

success
​boolean

Get a task

GET
https://apac.zocton.com/entayo-crm/api
/tasks/{id}
Bearer (entayo_…)

Get a task › path Parameters

id
​integer · min: 1 · required

Get a task › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Get a task › Responses

The task.

id
​integer
entity_id
​integer | null
title
​string
description
​string | null
task_type
​string | null
status
​TaskStatus · enum
Enum values:
pending
in_progress
completed
cancelled
priority
​Priority · enum
Enum values:
low
medium
high
urgent
due_date
​string | null · date-time
created_by
​string
completed_at
​string | null · date-time
created_at
​string · date-time

Update a task

PUT
https://apac.zocton.com/entayo-crm/api
/tasks/{id}
Bearer (entayo_…)

Only what you send changes.

Update a task › path Parameters

id
​integer · min: 1 · required

Update a task › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Update a task › Request Body

title
​string
description
​string
task_type
​string
status
​TaskStatus · enum
Enum values:
pending
in_progress
completed
cancelled
priority
​Priority · enum
Enum values:
low
medium
high
urgent
due_date
​string | null · date-time
assigned_to
​string | null
entity_id
​integer | null

Update a task › Responses

Done.

success
​boolean

Delete a task

DELETE
https://apac.zocton.com/entayo-crm/api
/tasks/{id}
Bearer (entayo_…)

Delete a task › path Parameters

id
​integer · min: 1 · required

Delete a task › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Delete a task › Responses

Done.

success
​boolean

Toggle a task done / not done

PUT
https://apac.zocton.com/entayo-crm/api
/tasks/{id}/complete
Bearer (entayo_…)

Toggle a task done / not done › path Parameters

id
​integer · min: 1 · required

Toggle a task done / not done › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Toggle a task done / not done › Responses

Done.

success
​boolean