Conversations
List automation rules
GET
/
v1
/
automation
/
rules
List automation rules
curl --request GET \
--url https://api.wazapin.com/v1/automation/rulesconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/automation/rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/automation/rules"
response = requests.get(url)
print(response.text){
"items": [
{
"actions": [
{
"type": "<string>",
"agent_id": "<string>",
"fixed_agent_id": "<string>",
"label": "<string>",
"label_id": "<string>",
"strategy": "<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>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Response
OK
Show child attributes
Show child attributes
⌘I
List automation rules
curl --request GET \
--url https://api.wazapin.com/v1/automation/rulesconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/automation/rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/automation/rules"
response = requests.get(url)
print(response.text){
"items": [
{
"actions": [
{
"type": "<string>",
"agent_id": "<string>",
"fixed_agent_id": "<string>",
"label": "<string>",
"label_id": "<string>",
"strategy": "<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>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}