GET
/
telephony
/
getRouting
curl --request GET \
  --url https://demo.enneo.ai/api/mind/telephony/getRouting
{
  "id": 789,
  "ticketId": 12345,
  "status": "waitingForAgent",
  "declineReasonCode": null,
  "declineReasonMessage": null,
  "primaryTagId": 46,
  "channel": "phone",
  "subchannelId": null,
  "assignedUserId": null,
  "assignedUserRawData": null,
  "createdAt": "2025-04-08 19:38:03",
  "routedAt": null,
  "completedAt": null,
  "updatedAt": "2025-04-08 19:38:11",
  "positionDetails": {
    "position": 0,
    "agentsOnlineWithMatchingSkills": [
      20
    ],
    "estimatedWaitingTimeInSeconds": 60
  }
}

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Query Parameters

ticketId
integer

ID of the ticket to get routing status for

channelId
string

Channel ID of the ticket to get routing status for

queueId
integer

ID of the queue entry to get routing status for

forceReEvaluation
boolean

If set, force re-evaluation of the routing status

Response

200
application/json
Successful operation
id
integer

ID of the queue entry

Example:

789

ticketId
integer

ID of the associated ticket

Example:

12345

status
enum<string>

Current routing status

Available options:
preProcessing,
waitingForAgent,
assigned,
currentlyProcessed,
completed,
declined,
unknown
Example:

"waitingForAgent"

declineReasonCode
string | null

Code indicating why the call was declined, if applicable

Example:

null

declineReasonMessage
string | null

Human-readable message explaining why the call was declined

Example:

null

primaryTagId
integer | null

ID of the primary tag associated with this queue entry

Example:

46

channel
string

Communication channel for this ticket

Example:

"phone"

subchannelId
integer | null

ID of the subchannel, if applicable

Example:

null

assignedUserId
integer | null

ID of the assigned user, if any

Example:

null

assignedUserRawData
object | null

Raw data of the assigned user, may include external IDs

Example:

null

createdAt
string

Timestamp when the queue entry was created

Example:

"2025-04-08 19:38:03"

routedAt
string | null

Timestamp when the queue entry was routed to an agent

Example:

null

completedAt
string | null

Timestamp when processing of the queue entry was completed

Example:

null

updatedAt
string

Timestamp when the queue entry was last updated

Example:

"2025-04-08 19:38:11"

positionDetails
object | null

Details about the queue position and waiting time