List plans
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.
pageToken?stringThe page token, if any.
Length
1 <= length <= 255maxPageSize?numberThe max page size.
Range
1 <= value <= 20Default
10filter?The filter to apply to the list of plans. The filter params are passed like this: ?filter[title]=foo or like this: ?filter.title=foo
Success
application/json- response
Success
plans*array<>The plans list.
nextPageToken*|The next page token.
curl -X GET 'https://api.spoke.com/public/v1/plans'Example Response
{ "plans": [ { "id": "string", "title": "string", "starts": { "day": 1, "month": 1, "year": 2000 }, "depot": "string", "distributed": true, "writable": true, "optimization": "creating", "drivers": [ "string" ], "routes": [ "string" ], "routeOverrides": { "startTime": { "hour": 0, "minute": 0 }, "endTime": { "hour": 0, "minute": 0 }, "startAddress": { "address": "string", "addressLineOne": "string", "addressLineTwo": "string", "latitude": -90, "longitude": -180, "placeId": "string", "placeTypes": [ "string" ] }, "endAddress": { "address": "string", "addressLineOne": "string", "addressLineTwo": "string", "latitude": -90, "longitude": -180, "placeId": "string", "placeTypes": [ "string" ] }, "maxStops": -9007199254740991, "drivingSpeed": "slower", "deliverySpeed": "slower", "vehicleType": "bike", "optimizationSettings": { "objective": "minimize_drivers", "subObjective": "equalize_workload" } } } ], "nextPageToken": null}