This API endpoint allows users to fetch a list of tasks available within the organization and retrieves task data relying on the user’s permissions stored in the user token. It provides access to tasks granted by the user’s specific permissions, allowing access to all relevant tasks according to the user’s role, team assignments, or tasks directly assigned to the user.
Use a valid Bearer token to authenticate.
The page number of results to retrieve. Example: 2
Specifies the maximum number of items to retrieve in a single request. Example: 10
1 <= x <= 1000Fields is for selecting the specific fields that you can choose by multiples to show in the response using a string with a comma delimiter.
Example: startTime,endTime,hubId,createdBy,flow,status
List flow name that user need to get, string with comma (,) delimiter.
Use Flow /flows API to get the list of flow names.
Example: Visit,Delivery,Pickup
The identifier for the flow that generated by system. Use Flow /flows API to get the list of flow id.
Comma (,) delimiter for filter multiple flow.
Example: 63d8c9b0dbd5ef20a627dd86,73d8c9b0dbd5ef20a627dd87
Name of user that completing the task.
Example: Leandro
User email for a given task.
Example: leandro@mile.app
Status of task according to task's data condition. There are 3 types of status:
enum: UNASSIGNED,ONGOING,DONE
Example: UNASSIGNED
state of active means we only need to retrieve tasks which startTime and endTime is still relevant with the current time.
Example: true
state of visit means we only need to retrieve tasks which endTime is still relevant with the current time.
Example: true
This key is related to the routing process. When a visit success dispatches the routingResultId will exist on task body.
Example: 66791ba47b28d74dab531db2
sortBy is used to sort the result-set in ascending or descending order according to selected field.
Example: createdTime,orderIndex,startTime,doneTime
Default: createdTime
sortOrder is to decide ascending or descending order
Example: asc or desc.
Default: desc
Optional filter to range data between one of the following options :
enum: createdTime,startTime,doneTime
Example: startTime
Used to set the start limit of the data range to retrieve based on timeBy with format (Y-m-d H:i:s)
Example: 2023-01-01 00:00:00
Used to set the end limit of the data range to retrieve based on timeBy with format (Y-m-d H:i:s)
Example: 2023-01-01 23:59:59
Used to set the lazy load mode or cursor method pagination for the task list. If set to 1, it will ignore page parameter and using cursor parameter for pagination.
Example: 1
Used in conjunction with lazyLoad parameter. If lazyLoad is set to 1, this parameter will be used to get the next page of data. The value should be the last task ID
Example: 670391525629320817090499