GET request
Search for a Route Plan with an ID
URL: https://onfleet.com/api/v2/routePlans/:routePlanId:
This section is to search for an single Route Plan, should you already have the id of the route plan.
curl -X GET "https://onfleet.com/api/v2/routePlans/jgfAFL8S69Pd8IhHYtw0njdw" \
-u "cd3b3de84cc1ee040bf06512d233719c:" \
{
"id": "b8RybII*nzj*nWfnq2DlPfEY",
"name": "R🔥_06-03-2025_1400",
"state": "PENDING",
"color": "#FF8B3E",
"tasks": [
"P3*vrseB7oOuNnioNvLot4tj",
"rljrGT7LVThgc9cLDKt7jfxE",
"hD6Ih8v7UgnMcDAanm6PRjVz",
"DveAtA16a4KUiS1we9HC~huj",
"c6*VrCgYQ487dqYMrafq5Nqt",
"o*8jqK8NsgAYg6LmVtQygOCG"
],
"organization": "nYrkNP6jZMSKgBwG9qG7ci3J",
"team": "E2*f4lzgvpwwNMvDEHPLJVrr",
"worker": "sbgok3wJ77Ysg70zjImngv1J",
"vehicleType": "CAR",
"startTime": 1748984436000,
"endTime": null,
"actualStartTime": null,
"actualEndTime": null,
"startAt": "HUB",
"endAt": "HUB",
"startingHubId": "08JQM9jnv44*A1ovSCTPg0uG",
"endingHubId": "08JQM9jnv44*A1ovSCTPg0uG",
"shortId": "22c55e19",
"timeCreated": 1748984468123,
"timeLastModified": 1748984468123,
"timezone": "America/Los_Angeles",
"plannedDistance": 225458,
"plannedDuration": 11607,
"isOverdue": false,
"taskStates": [
1,
1,
1,
1,
1,
1
],
"status": "LATE",
"statusTimeDifference": 7879968
}