Skip to main content
Skip to Content
Dispatch API

List Depots

GET
/depots

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

pageToken?string

The page token to continue from.

Length1 <= length <= 255
maxPageSize?number

The maximum number of depots to return.

Range1 <= value <= 20
Default20

Response Body

Success

application/json
  1. response

Success

depots*array<>

The depots.

nextPageToken*|

The next page token.

Example Request
curl -X GET 'https://api.spoke.com/public/v1/depots'
Example Response
{  "depots": [    {      "id": "string",      "name": "string",      "routeOverrides": {        "startTime": {          "hour": 0,          "minute": 0        },        "startAddress": {          "address": "string",          "addressLineOne": "string",          "addressLineTwo": "string",          "latitude": 0,          "longitude": 0,          "placeId": "string",          "countryCode": "string"        },        "defaultTimeAtStop": 0,        "endAddress": {          "address": "string",          "addressLineOne": "string",          "addressLineTwo": "string",          "latitude": 0,          "longitude": 0,          "placeId": "string",          "countryCode": "string"        },        "endTime": {          "hour": 0,          "minute": 0        },        "maxStops": 0,        "roadSide": "any",        "vehicleType": "bike",        "roundTrip": true      }    }  ],  "nextPageToken": null}