Workflows

Retrieve a workflow run

With its timeline: every step execution in order. `trigger` and each step's `result` are empty for a caller without `audience`.

GET
/workflow-runs/{id}

With its timeline: every step execution in order. trigger and each step's result are empty for a caller without audience.

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string
Formatuuid

Response Body

Success

application/json
  1. response

A run: one contact (none for a scheduled run without a segment) through one version.

contact_id?|
Formatuuid
created_at*string
current_step?|

The step it is at (none once ended).

end_reason?string|null
ended_at?string|null
id*string
Formatuuid
object*string
status*string

running, waiting, completed, canceled or failed.

steps?array<>|

Its timeline, in single reads only.

trigger*

What started it (the event, the signal, the schedule's fire, the API's data).

updated_at*string
version*integer
Formatint32
workflow_id*string
Formatuuid
Example Request
curl -X GET 'https://api.exx.sh/workflow-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "contact_id": "f245e2a3-e141-4d41-912c-b1c1f5bd5598",  "created_at": "string",  "current_step": "string",  "end_reason": "string",  "ended_at": "string",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "object": "string",  "status": "string",  "steps": [    {      "execution": 0,      "finished_at": "string",      "kind": "string",      "outcome": "string",      "result": {},      "started_at": "string",      "status": "string",      "step_id": "string"    }  ],  "trigger": {},  "updated_at": "string",  "version": 0,  "workflow_id": "03e70e31-d7a4-4401-a629-6a4b6096cdfe"}