Easymailing
Workflows

Check if a workflow can be published

GET /workflows/{uuid}/validation

GET/workflows/{uuid}/validation

Reviews the SAVED draft of a workflow with exactly the rules of publishing and lists what is missing or wrong, node by node, with a hint that says how to fix each issue. publishable is true when no issue is incomplete or error; a warning does not block publishing. Nothing changes.

When to use: Before publishing a workflow, or to see what still has to be filled in a draft someone else saved. create_workflow and update_workflow already answer this same review in validation: you only need this operation when you did not just save.

When not to use: It reads the saved draft, not a document you are about to send: save it first with update_workflow. To read the document itself use get_workflow.

How to fix an issue: node_uuid and catalog_id say which trigger or node of definition it is about (null for the whole workflow), field the path inside its configuration (durationValue is configuration.durationValue; or next, branches.N.next, settings.…), and hint what to change. The configuration each piece accepts is in the automation_workflows_guide guide of the MCP (get_guide) and in list_workflow_pieces. Then send the whole corrected document with update_workflow.

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/validation" \  -H "X-Auth-Token: YOUR_API_KEY"
{  "workflow_uuid": "5f472623-08f6-4789-89f2-effc00ed9ea8",  "draft_version": 1,  "publishable": true,  "counts": {    "incomplete": 0,    "error": 0,    "warning": 0  },  "issues": [    {      "node_uuid": "196b4b43-66dc-4630-bc74-d193c349e248",      "catalog_id": "string",      "field": "string",      "code": "missing_trigger",      "severity": "incomplete",      "hint": "string"    }  ]}