List automation rules
GET
/v1/automation/rulesAuthorization
bearerAuthbearerAuthrequiredor
apiKeyAuthapiKeyAuthrequiredResponses
200OK
itemsAutomationRuleItem[] | nullrequiredShow propertiesHide properties
Array of
AutomationRuleItemactionsAutomationRuleAction[] | nullrequiredShow propertiesHide properties
Array of
AutomationRuleActionagent_idstringfixed_agent_idstringlabelstringlabel_idstringstrategystringtypestringrequiredcreated_atstringrequiredcreated_bystringrequiredenabledbooleanrequiredidstringrequirednamestringrequiredorganization_idstringrequiredscopeAutomationRuleScoperequiredShow propertiesHide properties
channel_typestringconversation_idstringtriggerAutomationRuleTriggerrequiredShow propertiesHide properties
eventstringeventsstring[] | null400Bad Request
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstring401Unauthorized
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstring403Forbidden
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstring500Internal Server Error
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstringRequest
curl -X GET "/v1/automation/rules"const response = await fetch("/v1/automation/rules", {
method: "GET"
});import requests
response = requests.get(
"/v1/automation/rules",
)Response
{
"items": [
{
"actions": [
{
"agent_id": "string",
"fixed_agent_id": "string",
"label": "string",
"label_id": "string",
"strategy": "string",
"type": "string"
}
],
"created_at": "string",
"created_by": "string",
"enabled": true,
"id": "string",
"name": "string",
"organization_id": "string",
"scope": {
"channel_type": "string",
"conversation_id": "string"
},
"trigger": {
"event": "string",
"events": [
"string"
]
}
}
]
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}