Search Automations

GET {{baseUrl}}/api/v2/automations/search?query=<string>&active=<boolean>&sort_by=<string>&sort_order=<string>&include=<string>

Pagination

  • Offset pagination only

See Using Offset Pagination.

Allowed For

  • Agents

Sideloads

The following sideloads are supported. For more information, see Side-loading.

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

Request Params

KeyDatatypeRequiredDescription
querystring(Required) Query string used to find all automations with matching title
activestringFilter by active automations if true or inactive automations if false
sort_bystringPossible values are "alphabetical", "created_at", "updated_at", and "position". If unspecified, the automations are sorted by relevance
sort_orderstringOne of "asc" or "desc". Defaults to "asc" for alphabetical and position sort, "desc" for all others
includestringA sideload to include in the response. See Sideloads

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;automations&quot;:[{&quot;actions&quot;:[{&quot;field&quot;:&quot;status&quot;,&quot;value&quot;:&quot;open&quot;},{&quot;field&quot;:&quot;assignee_id&quot;,&quot;value&quot;:&quot;296220096&quot;}],&quot;active&quot;:true,&quot;conditions&quot;:{&quot;all&quot;:[{&quot;field&quot;:&quot;status&quot;,&quot;operator&quot;:&quot;less_than&quot;,&quot;value&quot;:&quot;solved&quot;},{&quot;field&quot;:&quot;assignee_id&quot;,&quot;operator&quot;:&quot;is&quot;,&quot;value&quot;:&quot;296220096&quot;}],&quot;any&quot;:[{&quot;field&quot;:&quot;current_tags&quot;,&quot;operator&quot;:&quot;includes&quot;,&quot;value&quot;:&quot;hello&quot;}]},&quot;id&quot;:25,&quot;position&quot;:9,&quot;raw_title&quot;:&quot;Close and Save&quot;,&quot;title&quot;:&quot;Close and Save&quot;},{&quot;actions&quot;:[{&quot;field&quot;:&quot;status&quot;,&quot;value&quot;:&quot;open&quot;},{&quot;field&quot;:&quot;assignee_id&quot;,&quot;value&quot;:&quot;296220096&quot;}],&quot;active&quot;:true,&quot;conditions&quot;:{&quot;all&quot;:[{&quot;field&quot;:&quot;status&quot;,&quot;operator&quot;:&quot;less_than&quot;,&quot;value&quot;:&quot;solved&quot;},{&quot;field&quot;:&quot;assignee_id&quot;,&quot;operator&quot;:&quot;is&quot;,&quot;value&quot;:&quot;296220096&quot;}],&quot;any&quot;:[{&quot;field&quot;:&quot;current_tags&quot;,&quot;operator&quot;:&quot;includes&quot;,&quot;value&quot;:&quot;hello&quot;}]},&quot;id&quot;:28,&quot;position&quot;:9,&quot;raw_title&quot;:&quot;{{dc.close_and_redirect}}&quot;,&quot;title&quot;:&quot;Close and redirect to topics&quot;}],&quot;count&quot;:2,&quot;next_page&quot;:null,&quot;previous_page&quot;:null}