Get Routing - Early Access

Resource

https://api.infobip.com/ccaas/1/routing

Parameters

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.

No parameters are required for this action.

Request Example

					GET /ccaas/1/routing HTTP/1.1
Host: api.infobip.com
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
					
				

Response

					{
    "routes": [
        {
            "name": "English Support",
            "queueId": "8772F93BC855D00A1036B771ACA7EC40",
            "priority": "NORMAL",
           	"enabled": true,
            "expression": {
                "$or": [
                    {
                        "$eq": {
                            "customer.country": "United Kindom"
                        }
                    },
                    {
                        "$eq": {
                            "customer.country": "Australia"
                        }
                    }
                ]
            }
        },
        {
            "name": "Spanish Support",
            "queueId": "A1C93E138A8D831F49D047BC0A5B1D0D",
            "priority": "NORMAL",
           	"enabled": true,
            "expression": {
                "$in": {
                    "customer.country": [
                        "Spain",
                        "Columbia",
                        "Mexico"
                    ]
                }
            }
        },
        {
            "name": "Croatian Support",
            "queueId": "04FAFF86C252478D324CF3F980799C9E",
            "priority": "NORMAL",
           	"enabled": true,
            "expression": {
                "$and": [
                    {
                        "$starts_with": {
                            "message.customerNumber": "385"
                        }
                    },
                    {
                        "$neq": {
                            "message.channel": "FACEBOOK_MESSENGER"
                        }
                    }
                ]
            }
        },
        {
            "name": "Keyword STOP",
            "queueId": "1E54701F74BD86A070B43DB49478D82C",
            "priority": "NORMAL",
           	"enabled": true,
            "expression": {
                "$starts_with": {
                    "message.content": "STOP"
                }
            }
        }
    ],
    "pagination": {
        "totalItems": 4,
        "page": 0,
        "limit": 999,
        "orderBy": "order:ASC"
    }
}
					
				
					{
    "statusCode": "ERROR",
    "message": "Page size must not be less than one!"
}