Skip to main content
Skip to Content
Dispatch API

Retrieve a driver

GET
/drivers/{driverId}

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.

Path Parameters

driverId*string

The driver id

Match^[a-zA-Z0-9---_]{1,50}$

Response Body

The requested driver

application/json
  1. response

The requested driver

id*string

The driver id, in the format drivers/<id>

Match^drivers\/[a-zA-Z0-9---_]{1,50}$
name*|

The name of the driver.

email*|

The email of the driver.

phone*|

The phone number of the driver.

displayName*|

The display name of the driver.

active*boolean

Whether the driver membership is active or paused. Paused drivers will not be assigned to any routes.

depots*array<>

Depots associated with the driver.

routeOverrides*

Settings to override default route settings.

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