Easymailing
Automations

List contacts running in an automation

GET /automations/{automationUuid}/automation_queues

GET/automations/{automationUuid}/automation_queues

Lists the runs of an automation: one entry per contact that entered it, with its status (queued while running, completed or canceled), the trigger that started it and the member.

When to use: To check whether a contact is inside an automation, how many are running, or what happened to those who finished or left.

When not to use: To start an automation for a contact, use trigger_custom_api. For the overall counters of an automation, use get_automation.

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

Path Parameters

automationUuid*string

UUID of the automation, as returned by list_automations.

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

Response Body

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_queues?page=1&itemsPerPage=30" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "status": "automation.queue.status.queued",    "automation_trigger": {      "trigger_type": "trigger.admin.manual",      "active": true,      "workflow_repeat": true,      "trigger": null    },    "member": {      "email": "user@example.com",      "client_ip": "192.168.0.1",      "locale": "string",      "location": {        "city": "string",        "postal_code": "string",        "timezone": "string",        "country_code": "string",        "country": "string",        "lat": 0.1,        "lng": 0.1      },      "status": "suscriber.status.confirmed",      "email_opt_in_source": "suscriber.source.manual",      "email_opt_in_at": "2019-08-24T14:15:22Z",      "email_opt_out_at": "2019-08-24T14:15:22Z",      "source": "suscriber.source.manual",      "rating": 0.1,      "audience": "string",      "groups": [        {          "title": "string",          "description": "string",          "color": "string",          "public": true        }      ],      "member_consent": {        "ip": "192.168.0.1",        "consent_at": "2019-08-24T14:15:22Z",        "treatment_purposes": [          {            "translations": [              {                "title": "string",                "locale": "string"              }            ],            "description": "string"          }        ]      },      "custom_fields": [        {          "list_field": "/entity/1",          "value": "string"        }      ],      "suscription_form": "/entity/1",      "stats": {        "sent": 0,        "delivered_emails": 0,        "unique_opens": 0,        "unique_clicks": 0,        "open_rate": 0,        "click_rate": 0,        "orders": 0,        "revenue": 0,        "order_rate": 0,        "avg_revenue": 0      },      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    },    "automation": "/entity/1"  }]