佇列作業狀態端點

您可以使用佇列作業狀態端點,在將工作階段轉移至佇列前,取得佇列的可用性狀態。這個端點會傳回下列布林屬性:

  • after_hours:如果佇列處於下班後狀態而無法使用,則為 true

  • overcapacity:如果佇列處於過載狀態而無法使用,則為 true

端點:

方法:GET

類型:RAW

網址:https://{subdomain}.{domain}/apps/api/v1/queue_operation_statuses

查詢:

說明
menu_id 整數 您要取得空位資訊的佇列 ID。必填。
lang 字串 佇列的雙字母語言代碼,採 ISO 639-1 格式。必填。
channel_type 字串 管道類型。可能的值為 callchat。必填。

要求和回應範例

本節提供要求和回應範例。

要求

https://{subdomain}.{domain}/apps/api/v1/queue_operation_statuses?menu_id=1&lang=en&channel_type=call

回應

{
  "menu_id": 1,
  "lang": "en",
  "channel_type": "call",
  "after_hour": false,
  "overcapacity": true
}