Easymailing
Automations

Get an automation

GET /automations/{uuid}

GET/automations/{uuid}

Returns one automation with its status, audience, counters (completed, running, canceled), its triggers, the first step with the tree of steps that follow it, and the orphan steps (steps not connected to the flow).

When to use: To review how an automation is built before changing it, or to get the uuids of its triggers and steps.

When not to use: To list automations, use list_automations. To read only the steps or only the triggers, use list_automation_steps or list_automation_triggers.

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

uuid*string

UUID of the automation, as returned by list_automations.

Response Body

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/automations/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": {    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "step_type": "string",    "count_automation_queue_items_completed": 0,    "count_automation_queue_items_in_queue": 0,    "action": null,    "children": null  },  "orphan_steps": [    {      "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",      "step_type": "string",      "count_automation_queue_items_completed": 0,      "count_automation_queue_items_in_queue": 0,      "action": null,      "children": null    }  ],  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}