AgentBots
Inbox API
Conversations API
Contact Labels
CSAT Survey Page
Account AgentBots
Agents
Canned Responses
Canned Response
Custom Attributes
Contacts
Automation Rule
Help Center
Conversations
Conversation Assignment
Conversation Labels
Inboxes
Integrations
Profile
Teams
Custom Filters
Automation Rule
Get a automation rule details
Automation Rule
Get a automation rule details
Get the details of a automation rule in the account
GET
/
api
/
v1
/
accounts
/
{account_id}
/
automation_rules
/
{id}
curl --request GET \
--url https://app.chatwoot.com/api/v1/accounts/{account_id}/automation_rules/{id} \
--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
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
The numeric ID of the account
The ID of the automation rule to be updated.
Response
200
application/json
Success
The response is of type object
.
curl --request GET \
--url https://app.chatwoot.com/api/v1/accounts/{account_id}/automation_rules/{id} \
--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
}