Automations

List Active Automations

Lists all active automations.

Allowed For

  • Agents

Available Parameters

You can pass in any combination of the following optional filters:

NameTypeComment
sort_bystringPossible values are "alphabetical", "created_at", "updated_at", "usage_1h", "usage_24h", or "usage_7d". Defaults to "position"
sort_orderstringOne of "asc" or "desc". Defaults to "asc" for alphabetical and position sort, "desc" for all others

Sideloads

The following sideloads are supported:

NameWill sideload
app_installationThe app installation that requires each automation, if present
permissionsThe permissions for each automation
usage_1hThe number of times each automation has been used in the past hour
usage_24hThe number of times each automation has been used in the past day
usage_7dThe number of times each automation has been used in the past week
usage_30dThe number of times each automation has been used in the past thirty days
get/api/v2/automations/active

Response

Success response

countinteger
next_pagestring nullable
previous_pagestring nullable

Example response

{
  "automations": [
    {
      "actions": [
        {
          "field": "priority",
          "value": "high"
        }
      ],
      "active": true,
      "conditions": {
        "all": [
          {
            "field": "status",
            "operator": "is",
            "value": "open"
          },
          {
            "field": "priority",
            "operator": "less_than",
            "value": "high"
          }
        ],
        "any": []
      },
      "default": false,
      "id": 9873843,
      "position": 8,
      "raw_title": "Roger Wilco",
      "title": "Roger Wilco"
    }
  ]
}

Changes