Easymailing
Workflows

List workflows

GET /workflows

GET/workflows

Lists 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 (see status in the response).
  • display_status: only workflows whose display_status is that one; error lists 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: true lists only workflows with at least one blocked execution. Sorting: fixed, last changed first; there is no order parameter. Pagination: page and itemsPerPage (default 25, maximum 100), like the rest of the API; the response gives the total in hydra:totalItems.

Permissions: Requires the automations.read capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Query Parameters

search?string

Part of the title of the workflow, case-insensitive. Up to 120 characters.

Lengthlength <= 120
status?string

Only workflows in this state.

Value in

  • "draft"
  • "active"
  • "paused"
  • "commercial-paused"
display_status?string

Only workflows whose display_status is this one.

Value in

  • "draft"
  • "active"
  • "paused"
  • "error"
entry_state?string

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"
execution_state?string

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"
needs_attention?boolean

true lists only workflows with at least one blocked execution. false or no value does not filter.

page?integer

Page number, starting at 1.

Range1 <= value
Default1
itemsPerPage?integer

Workflows per page. Default 25, maximum 100.

Range1 <= value <= 100
Default25

Response 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"  }]