Emma API Documentation

Automation

These endpoints allow you access to information about workflows in Emma.

GET /#account_id/automation/workflows

Gets a list of this account’s automation workflows.

Returns :

A list of automation workflows in the given account.

Sample Response [showhide]
GET /100/automation/workflows
[
  {
    "workflow_id": "596ee017-abf9-4884-bb43-79724422de25",
    "name": "Test Workflow",
    "status": "active",
    "updated_at": "2017-10-30 23:31:49.661228",
    "created_at": "2017-10-30 23:30:42.067754"
  }
]
                        

GET /#account_id/automation/workflows/#workflow_id

Gets detailed information about a single workflow.

Returns :

A single workflow if one exists

Raises :

Http404 if no workflow is found.

Sample Response [showhide]
GET /100/automation/workflows/596ee017-abf9-4884-bb43-79724422de25
{
  "workflow_id": "596ee017-abf9-4884-bb43-79724422de25",
  "name": "Test",
  "status": "inactive",
  "updated_at": "2017-10-30 23:31:49.661228",
  "created_at": "2017-10-30 23:30:42.067754"
}
                        

GET /#account_id/automation/counts

Gets the counts of workflows for this account by workflow state.

Returns :

Returns counts for the workflow by state ("active", "inactive" and "draft").

Sample Response [showhide]
GET /100/automation/workflows/count
{
  "account_id": "100",
  "draft": 3,
  "active": 12,
  "inactive": 9
}
                        

Related Topics

Interested in Emma?

Emma's email marketing makes communicating simple and stylish. Get started today.