Skip to main content
Skip to Content
Dispatch API

List Drivers

GET
/drivers

The playground uses your live account

Requests are sent with your real API key, so creating, updating or deleting here changes your production data.

Authorization

BasicAuth
headerAuthorizationBasic <token>

Use the API key as the username and leave the password empty.

Query Parameters

maxPageSize?number

The maximum number of drivers to return.

Range1 <= value <= 50
Default50
pageToken?string

The page token to continue from.

Length1 <= length <= 255
filter?

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

Response Body

Success

application/json
  1. response

Success

drivers*array<>

The drivers.

nextPageToken*|

The next page token.

Example Request
curl -X GET 'https://api.spoke.com/public/v1/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}