Easymailing
Workflows

Get a workflow execution

GET /workflows/{uuid}/executions/{executionUuid}

GET/workflows/{uuid}/executions/{executionUuid}

Reads one execution of a workflow with its exact route: a row per step (and per round of a «For each»), in the order they started, with the branch it took, its outputs and what it evaluated, plus who canceled it when no step row could keep it.

When to use: To explain why an execution is blocked, stopped or took a branch, or what a step did for one contact.

When not to use: To find the execution use list_workflow_executions. To read the workflow it runs, use get_workflow (the route names the steps by node_uuid, the uuid of definition.nodes[] of the version it runs on). Executions cannot be retried, skipped or canceled through the API.

Visibility: An execution whose subject the user cannot read does not exist for them: 404 workflow_execution_not_found, the same as one of another workflow. Inside outputs and trace, a record the user cannot read is {"redacted": true}. 90 days after it ended the route is purged: steps is empty, detail_purged is true and summary keeps the counts.

Permissions: Requires the automations.read capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the workflow. Get it from list_workflows.

Formatuuid
executionUuid*string

UUID of the execution. Get it from list_workflow_executions.

Formatuuid

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/workflows/3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61/executions/c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f" \  -H "X-Auth-Token: YOUR_API_KEY"
{  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",  "workflow": "/entity/1",  "revision": 1,  "trigger_uuid": "43e2987b-434b-472d-969b-3472dba75b7d",  "subject": {    "type": "contact",    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "label": "string",    "detail": "string",    "state": "visible"  },  "state": "active",  "cause": null,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "next_attempt_at": "2019-08-24T14:15:22Z",  "expires_at": null,  "current_node_uuid": "3a088e5d-867c-4933-abca-0016522be31d",  "current_iteration": {    "for_each_uuid": "1e576042-7398-4521-a7db-c1de907448b7",    "index": 0  },  "detail_purged": true,  "summary": null,  "steps": [    {      "node_uuid": "196b4b43-66dc-4630-bc74-d193c349e248",      "catalog_id": "string",      "name": null,      "iteration": {        "for_each_uuid": "1e576042-7398-4521-a7db-c1de907448b7",        "index": 0      },      "state": "running",      "branch_key": null,      "outputs": null,      "trace": {},      "attempts": 0,      "cause": null,      "started_at": "2019-08-24T14:15:22Z",      "finished_at": null,      "wait_ends_at": "2019-08-24T14:15:22Z",      "effect_key": null    }  ],  "resolutions": [    {      "action": "string",      "resolved_by": "d0d57369-b08b-4db8-8952-8cdeedd9aebc",      "resolved_at": "2019-08-24T14:15:22Z"    }  ]}