Skip to main content
Skip to Content
Dispatch API

List Routes

GET
/routes

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 routes to return.

Range1 <= value <= 20
Default20
filter?

The filter to apply to the list of routes. The filter params are passed like this: ?filter[startsGte]=2026-10-01 or like this: ?filter.startsGte=2026-10-01

Response Body

Success

application/json
  1. response

Success

routes*array<>

The routes.

nextPageToken*|

The next page token.

Example Request
curl -X GET 'https://api.spoke.com/public/v1/routes'
Example Response
{  "routes": [    {      "id": "string",      "title": "string",      "stopCount": 0,      "driver": "string",      "state": {        "completed": true,        "completedAt": 0,        "distributed": true,        "distributedAt": 0,        "notifiedRecipients": true,        "notifiedRecipientsAt": 0,        "started": true,        "startedAt": 0      },      "plan": "string"    }  ],  "nextPageToken": null}