Skip to main content
Get tasks
eLogii avatar
Written by eLogii
Updated over 7 months ago

To access all tasks, utilize the GET request: https://api-35.elogii.com/tasks. This request will return a response containing the complete list of tasks on the dashboard. Additionally, you have the option to retrieve tasks filtered by specific dates or date ranges.

Get tasks for a specific date

To get the list of tasks for a specific date, the request must contain the date in question in the query parameters where the date is in the format:- ‘YYYYMMDD’

Sample request

Sample response

 {
"_id": "66260186bff100de876444fa",
"uid": "T-E21FNZJC",
"organization": "...................",
"path": ".......",
"type": 2,
"date": 20240423,
"timeWindows": [
{
"start": 585,
"end": 720
}
],
"pickup": {
"location": {
..................
}
},
"location": {
...............
}
}

Get tasks for a given date range

To retrieve tasks for a date range, the request should contain two dates: the start date and the end date which should be indicated as shown in the sample request below

Sample response

[
{
"_id": "6643e242c9ea0ecf89f07709",
"uid": "T-3SALXMXY",
"organization": "64706d..............d2",
"path": "64706d............d2",
"reference": "TEST RANGE",
"type": 2,
"dateRange": {
"startDate": 20240515,
"endDate": 20240516
},
"allowedWeekDays": [],
"pickup": {
"location": {
"uid": "DEP-ZOX0MUNN",
"_id": "65f0b7815b61d1812d246119",
"name": "Test Depot 0",
"address": "201-202 Sloane Street",
"postCode": "SW1X 9QX",
"city": "London",
"country": "United Kingdom",
"coordinates": [
-0.159753878786041,
51.5007111348899
]
},
"setupDuration": 0,
"serviceDuration": 5,
"configuration": {
},
},
"location": {
"type": 2,
"address": "Selfridge Avenue, Bournemouth, BH6 4, United Kingdom",
"postCode": "BH6 4",
"city": "Bournemouth",
"country": "United Kingdom",
"coordinates": [
-1.77924,
50.72249
]
}
]

Did this answer your question?