MobiariDocs
Admin APIWorkflows

Get a run

GET
/stores/{store_id}/workflows/{workflow_id}/runs/{run_id}

The run with every step it executed, oldest first, and each step's output.

Authorization

bearer_auth
AuthorizationBearer <token>

Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.

In: header

Path Parameters

store_id*string

Store id

Formatuuid
workflow_id*string

Workflow id

Formatuuid
run_id*string

Run id

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "attempt": 0,
  "cancelled_at": "2019-08-24T14:15:22Z",
  "context": {},
  "created_at": "2019-08-24T14:15:22Z",
  "current_node_id": "string",
  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  "dry_run": true,
  "error_message": "string",
  "finished_at": "2019-08-24T14:15:22Z",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "next_run_at": "2019-08-24T14:15:22Z",
  "retry_of": "a7f35b23-6f09-4e1c-8113-f2b51e0883ca",
  "started_at": "2019-08-24T14:15:22Z",
  "status": "pending",
  "store_id": "7fe87115-950c-4ae8-bd7e-970406bc9ac0",
  "trigger_payload": {},
  "updated_at": "2019-08-24T14:15:22Z",
  "version": 0,
  "workflow_id": "03e70e31-d7a4-4401-a629-6a4b6096cdfe",
  "steps": [
    {
      "attempt": 0,
      "error_message": "string",
      "finished_at": "2019-08-24T14:15:22Z",
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "node_id": "string",
      "node_type": "string",
      "output": {},
      "run_id": "dded282c-8ebd-44cf-8ba5-9a234973d1ec",
      "started_at": "2019-08-24T14:15:22Z",
      "status": "string"
    }
  ]
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}