Easymailing
Workflows

Get a workflow

GET /workflows/{uuid}

GET/workflows/{uuid}

Reads one workflow of the new automation engine: its state, its draft (definition), the triggers of its published version with their entry state, its published versions and who is responsible for it.

When to use: To see what a workflow does: its trigger, steps, waits, conditions and branches, as the document it is edited as. Also to know whether it is published, paused or has unpublished changes, and whether its responsible can still act.

When not to use: To find a workflow by name or state use list_workflows: it also gives the execution counts, which this response leaves out. To know which pieces (catalogId) a document may use and the CRM plan each one needs, use list_workflow_pieces. To change the draft use update_workflow, and to see what is missing to publish it get_workflow_validation.

About definition: It is the DRAFT, the document being edited, in format 3 and with its keys in camelCase exactly as the editor stores them: settings, triggers (each with catalogId, configuration and next) and nodes in reading order (each with catalogId, configuration, next, branches and body). When unpublished_changes is true it differs from the published version, which is the one running.

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

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" \  -H "X-Auth-Token: YOUR_API_KEY"
{  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",  "title": "string",  "status": "draft",  "published_revision": 0,  "unpublished_changes": true,  "trigger_catalog_ids": [    "string"  ],  "entries_open": true,  "paused_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",  "draft_version": 1,  "definition": {},  "triggers": [    {      "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",      "entry_state": "open",      "published_since_revision": 1    }  ],  "versions": [    {      "revision": 1,      "published_at": "2019-08-24T14:15:22Z",      "published_by": "9ac9eee7-2153-423d-b22d-04e12679154a",      "node_count": 0    }  ],  "resuming": true,  "responsible": {    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "name": "string",    "email": "string",    "can_act": true  }}