This is the documentation for Dispatch API v0.2b, which is no longer actively maintained. For up-to-date documentation, see the latest version (v1.0).
List Drivers
GET
The playground uses your live account
Requests are sent with your real API key, so creating, updating or deleting here changes your production data.
BasicAuthheader
AuthorizationBasic <token>Use the API key as the username and leave the password empty.
maxPageSize?numberThe maximum number of drivers to return.
Range
1 <= value <= 50Default
50pageToken?stringThe page token to continue from.
Length
1 <= length <= 255filter?The filter to apply to the list of drivers. The filter param is passed like this: ?filter[active]=true or like this: ?filter.active=true
Success
application/json- response
Success
drivers*array<>The drivers.
nextPageToken*|The next page token.
curl -X GET 'https://api.spoke.com/public/v0.2b/drivers'Example Response
{ "drivers": [ { "id": "string", "name": null, "email": null, "phone": null, "displayName": null, "active": true, "depots": [ "string" ], "routeOverrides": { "startTime": { "hour": 0, "minute": 0 }, "endTime": { "hour": 0, "minute": 0 }, "startAddress": { "address": "string", "addressLineOne": "string", "addressLineTwo": "string", "latitude": -90, "longitude": -180, "placeId": "string", "placeTypes": [ "string" ] }, "endAddress": { "address": "string", "addressLineOne": "string", "addressLineTwo": "string", "latitude": -90, "longitude": -180, "placeId": "string", "placeTypes": [ "string" ] }, "maxStops": -9007199254740991, "drivingSpeed": "slower", "deliverySpeed": "slower", "vehicleType": "bike" } } ], "nextPageToken": null}