List workflows
GET /workflows
/workflowsLists the workflows of the new automation engine of the account, most recently changed first, with their state, the triggers of their draft and how many executions are running or blocked.
When to use: To find a workflow by name or state before reading it with get_workflow, or to see which workflows are running, paused or need attention because an execution is blocked.
When not to use: To read the steps of one workflow use get_workflow: the list leaves the draft out. The classic automations of an audience are list_automations; email sequences are list_email_sequences.
Filters: All filters are optional and combine with AND.
search: part of the title, case-insensitive; surrounding spaces are ignored (up to 120 characters).status: only workflows in that state (seestatusin the response).display_status: only workflows whosedisplay_statusis that one;errorlists those with a blocked execution.entry_state: only published workflows whose entries are open (open) or paused as a whole (paused), or those under commercial review (commercial-paused).execution_state:paused, workflows paused as a whole or under commercial review, whose executions do not move on;running, published workflows in neither case.needs_attention:truelists only workflows with at least one blocked execution. Sorting: fixed, last changed first; there is noorderparameter. Pagination:pageanditemsPerPage(default 25, maximum 100), like the rest of the API; the response gives the total inhydra:totalItems.
Permissions: Requires the automations.read capability.
Value for the X-Auth-Token header parameter.
In: header
Query Parameters
Part of the title of the workflow, case-insensitive. Up to 120 characters.
length <= 120Only workflows in this state.
Value in
- "draft"
- "active"
- "paused"
- "commercial-paused"
Only workflows whose display_status is this one.
Value in
- "draft"
- "active"
- "paused"
- "error"
Only published workflows whose entries are open (open) or paused as a whole (paused), or workflows under commercial review (commercial-paused).
Value in
- "open"
- "paused"
- "commercial-paused"
paused: workflows paused as a whole or under commercial review, whose executions do not move on. running: published workflows in neither case.
Value in
- "running"
- "paused"
true lists only workflows with at least one blocked execution. false or no value does not filter.
Page number, starting at 1.
1 <= value1Workflows per page. Default 25, maximum 100.
1 <= value <= 10025Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/workflows?search=leads&status=active&display_status=error&entry_state=open&execution_state=running&needs_attention=true&page=1&itemsPerPage=25" \ -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", "display_status": "draft", "active_execution_count": 0, "blocked_execution_count": 0, "last_execution_at": "2019-08-24T14:15:22Z" }]