Retrieve a route
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.
routeId*stringThe route id
Match
^[a-zA-Z0-9---_]{1,50}$The requested route
application/json- response
The requested route
id*stringThe id of the route, in the format routes/<id>.
Match
^routes\/[a-zA-Z0-9---_]{1,50}$title*stringThe title of the route.
stopCount*numberThe 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.
curl -X GET 'https://api.spoke.com/public/v1/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"}