Skip to main content
Skip to Content
Dispatch API
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 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/v0.2b/depots'
Example Response
{  "depots": [    {      "id": "string",      "name": "string"    }  ],  "nextPageToken": null}