GET
/
api
/
v1
/
accounts
/
{account_id}
/
automation_rules
curl --request GET \
  --url https://app.chatwoot.com/api/v1/accounts/{account_id}/automation_rules \
  --header 'api_access_token: <api-key>'
[
  {
    "event_name": "message_created",
    "name": "Add label on message create event",
    "description": "Add label support and sales on message create event if incoming message content contains text help",
    "active": true,
    "actions": [
      {
        "action_name": "add_label",
        "action_params": [
          "support",
          "sales"
        ]
      }
    ],
    "conditions": [
      {
        "attribute_key": "content",
        "filter_operator": "contains",
        "values": [
          "help"
        ],
        "query_operator": "nil"
      }
    ],
    "account_id": 123
  }
]

Authorizations

api_access_token
string
header
required

This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.

Path Parameters

account_id
integer
required

The numeric ID of the account

Query Parameters

page
integer
default:1

The page parameter

Response

200
application/json
Success

Array of all automation rules