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).

Retrieve a route

GET
/routes/{routeId}

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

routeId*string

The route id

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

Response Body

The requested route

application/json
  1. response

The requested route

id*string

The id of the route, in the format routes/<id>.

Match^routes\/[a-zA-Z0-9---_]{1,50}$
title*string

The title of the route.

stopCount*number

The number of stops in the route.

driver*|

The id of the driver.

state*|

The state of the route.

plan*|

The id of the related plan.

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