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 operations
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 to continue from.
Length
1 <= length <= 255maxPageSize?numberThe maximum number of operations to return per page.
Range
1 <= value <= 20Default
20filter?The filter to apply to the list of operations.
Success
application/json- response
Success
operations*array<>The operations.
nextPageToken*|The next page token.
curl -X GET 'https://api.spoke.com/public/v0.2b/operations'Example Response
{ "operations": [ { "id": "string", "type": "plan_optimization", "done": true, "metadata": { "canceled": true, "startedAt": 0, "finishedAt": null, "startedBy": "dispatcher", "targetPlanId": "string" }, "result": { "numOptimizedStops": 0, "skippedStops": [ { "id": "string", "reason": "impossible_time_window" } ] } } ], "nextPageToken": null}