Easymailing
Automations

List the account's automations

GET /automations

GET/automations

Returns the account's automations, newest first. Each one shows its status (draft, active or paused), its audience, its triggers and how many contacts completed it, are running through it or were cancelled.

When to use: To find an automation's uuid, or to check which automations are active or paused before editing, activating or pausing one.

When not to use: To see which contacts are inside an automation, use list_automation_queues.

Filters: title: only automations whose title contains the text (partial match). audience: uuid of an audience; only the automations of that audience. Newest first. Paginated with page and itemsPerPage.

Permissions: Requires the author role or higher, or the marketing.automations.read capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Query Parameters

page?integer

Page number, starting at 1.

Default1
itemsPerPage?integer

Number of items per page (default 30, maximum 50).

Range0 <= value <= 50
Default30
title?string

Text to look for in the automation title (partial match).

audience?string

UUID of an audience. Returns only the automations of that audience.

Response Body

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/automations?page=1&itemsPerPage=30&title=Welcome&audience=0df14405-90ff-4287-b3e4-ef088901ee6f" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "id": 0,    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "title": "string",    "description": "string",    "status": "automation.status.draft",    "audience": "string",    "stats": {      "completed": 0,      "in_queue": 0,      "canceled": 0    },    "automation_triggers": [      {        "trigger_type": "trigger.admin.manual",        "active": true,        "workflow_repeat": true,        "trigger": null,        "count_automation_queues": 0,        "count_completed_automation_queues": 0,        "count_queued_automation_queues": 0,        "count_canceled_automation_queues": 0      }    ],    "first_step": "/entity/1",    "orphan_steps": [      "/entity/1"    ],    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }]