Get routing
Use this method to get a list of rules within the routing. Pagination is set to single page result with a maximum of 999 items ordered by "order". As rules inside routing are stored, executed and retrieved in provided order with the SET method, that order can't be changed. More info
Please log in to see full path URL. Learn why.
get
/ccaas/1/routing
Authorizations:
Scopes:
query Parameters
ruleIds | Array of strings Optional. List of rule Ids. |
enabled | boolean Optional. Rule enable/disable toggle. |
Responses
200
OK
400
Bad request
401
Unauthorized
403
Forbidden
500
Internal Server Error
Request samples
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
Example
cURL
Copy
curl -L -g 'https://{baseUrl}/ccaas/1/routing' \ -H 'Authorization: {authorization}' \ -H 'Accept: application/json'
Response samples
- 200
- 400
- 401
- 403
- 500
Content type
application/json
Copy
Collapse all {- "routes": [
- {
- "id": "467bbaad-3f50-4c27-9f24-0427aaec611f",
- "priority": "URGENT",
- "queueId": "448bf76d-0047-49a3-93a4-ea8722d6aeaa",
- "queueName": "First Queue",
- "enabled": true,
- "name": "First Rule",
- "createdAt": "2024-01-01T00:00:00.000+00:00",
- "updatedAt": "2024-01-01T00:00:00.000+00:00",
- "order": 1,
- "routeOnlyDuringWorkingHours": true,
- "isPrivate": false,
- "expression": {
- "$or": [
- {
- "$eq": {
- "message.channel": "WHATSAPP"
}
}, - {
- "$eq": {
- "message.channel": "LIVE_CHAT"
}
}
]
}
}, - {
- "id": "467bbaad-3f50-4c27-9f24-0427baec611f",
- "priority": "HIGH",
- "queueId": "448bf76d-0047-49a3-93a4-ea8722d7aeab",
- "queueName": "Second Queue",
- "enabled": true,
- "name": "Second Rule",
- "createdAt": "2024-01-01T00:00:00.000+00:00",
- "updatedAt": "2024-01-01T00:00:00.000+00:00",
- "order": 2,
- "routeOnlyDuringWorkingHours": false,
- "isPrivate": false,
- "expression": {
- "$and": [
- {
- "$eq": {
- "message.channel": "TELEGRAM"
}
}, - {
- "$eq": {
- "customer.country": "Croatia"
}
}
]
}
}, - {
- "id": "eb7bdb7d-7281-4107-8d7b-80efc8548a38",
- "priority": "NORMAL",
- "queueId": "39b52b7f-db13-4c47-9b6e-de2ba91df62g",
- "queueName": "Third Queue",
- "enabled": true,
- "name": "Third Rule",
- "createdAt": "2024-01-01T00:00:00.000+00:00",
- "updatedAt": "2024-01-01T00:00:00.000+00:00",
- "order": 3,
- "routeOnlyDuringWorkingHours": false,
- "isPrivate": false,
- "expression": {
- "$eq": {
- "message.channel": "VIBER"
}
}
}
], - "pagination": {
- "totalItems": 3,
- "page": 0,
- "limit": 999,
- "orderBy": "order:ASC"
}
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See