customer-engagement
conversations
conversation-routing

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. <a href="https://www.infobip.com/docs/conversations/supervisor-guide#queues-and-routing" target="_blank">More info</a>

get/ccaas/1/routing

Request

  • Base URL
    https://api.infobip.com (the document declares no server; this is the origin it was published from)
  • Auth
    • OAuth 2
      Client credentials
      Token URL: https://api.infobip.com/auth/1/oauth2/token
    • or API key in header Authorization
    • or API key in header Authorization
    • or HTTP basic

Query parameters

ruleIdsstring[]

Optional. List of rule Ids.

enabledboolean

Optional. Rule enable/disable toggle.

Response

OK

Example response

{
  "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"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.