Skip to main content
Skip to Content
Dispatch API

List operations

GET
/operations

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 operations to return per page.

Range1 <= value <= 20
Default20
filter?

The filter to apply to the list of operations.

Response Body

Success

application/json
  1. response

Success

operations*array<>

The operations.

nextPageToken*|

The next page token.

Example Request
curl -X GET 'https://api.spoke.com/public/v1/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}