List tasks
tookan_list_tasksList tasks (Tookan calls them jobs) of one task type within a date range of the task date (at most 31 days, within the last 31 days). Paginated: one Tookan page per call (page, default 1). Filter by status, agent (fleet_id), team, customer, job ids or your order ids. Task status codes: 0 assigned, 1 started, 2 successful, 3 failed, 4 in progress/arrived, 6 unassigned, 7 accepted/acknowledged, 8 declined, 9 cancelled, 10 deleted. POST /v2/get_all_tasks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default 1). Tookan pages are a fixed size. | |
| job_ids | No | Only these task (job) ids. | |
| team_id | No | Only tasks of this team (from tookan_list_teams). | |
| end_date | Yes | End of the task-date range, YYYY-MM-DD (at most 31 days after start_date). | |
| fleet_id | No | Only tasks of this agent (from tookan_list_agents). | |
| job_type | Yes | Task type: 0 = pickup, 1 = delivery, 2 = appointment, 3 = field workforce (FOS). | |
| order_ids | No | Only tasks with these order ids (your own reference). | |
| job_status | No | Only tasks in this status. Task status codes: 0 assigned, 1 started, 2 successful, 3 failed, 4 in progress/arrived, 6 unassigned, 7 accepted/acknowledged, 8 declined, 9 cancelled, 10 deleted. | |
| start_date | Yes | Start of the task-date range, YYYY-MM-DD. | |
| customer_id | No | Only tasks of this customer (from tookan_list_customers). | |
| custom_fields | No | Include the tasks' custom-field data. |