Retrieve a driver
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.
driverId*stringThe driver id
Match
^[a-zA-Z0-9---_]{1,50}$The requested driver
application/json- response
The requested driver
id*stringThe 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*booleanWhether 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.
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" }}