Easymailing
Automations

Get a contact's run in an automation

GET /automations/{automationUuid}/automation_queues/{uuid}

GET/automations/{automationUuid}/automation_queues/{uuid}

Returns one contact's run through an automation: its status (queued, completed or canceled), the member, the trigger that started it and the automation.

When to use: To check what happened to a specific run that you got from list_automation_queues or created with trigger_custom_api.

When not to use: To list all the runs of an automation, use list_automation_queues.

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.

uuid*string

UUID of the run, as returned by list_automation_queues.

Response Body

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_queues/a52c9e17-3d48-4b06-8e91-70f1c6b2d3a4" \  -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"}