This API endpoint allows users to fetch a list of tasks that contain photos within the organization. The retrieved task data is based on the user’s permissions stored in the user token. It filters tasks to only include those with associated photos, ensuring users access relevant tasks that contain visual documentation.
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
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
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 for unique batch identifier for the current filter state.