Interact CTI
GuiasCanais/SubscriptionsAgentesChamadasConsultas/MonitoraçãoEstatísticas/AlarmesSupervisãoGravaçãoDiscadorHSMCallback
GuiasCanais/SubscriptionsAgentesChamadasConsultas/MonitoraçãoEstatísticas/AlarmesSupervisãoGravaçãoDiscadorHSMCallback
  1. Agentes
  • Login
    POST
  • Logout
    POST
  • Paramêtros Operacionais
    POST
  • Alterar estado
    POST
  • Obter estado
    GET
  1. Agentes

Obter estado

GET
/agent/get_status
Obtém informações sobre o estado de agentes, incluindo chamadas em andamento, estatísticas e pausas.

Requisição

Parâmetros de Consulta

Códigos de solicitação

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/agent/get_status?agent' \
--header 'Content-Type: text/plain' \
--data-raw ''

Respostas

🟢200Sucesso
application/json
Body

Exemplo
{
  "response": {
    "resource": "agent",
    "command": "get_status",
    "status": "ok",
    "agents": [
      {
        "name": "jose.silva",
        "dt_login": "2023-10-27T10:00:00Z",
        "state": "ready_service",
        "branch": "1001",
        "dt_last_change_state": "2023-10-27T10:15:00Z",
        "dt_last_statistics_reset": "2023-10-27T09:00:00Z",
        "time_by_state": {
          "logged_out": 0,
          "ready_free": 600,
          "ready_service": 300,
          "ready_private": 0,
          "pre_pause_service": 120,
          "pre_pause_private": 0,
          "pauses": []
        },
        "calls": [
          {
            "media_type": "voice",
            "interlocutor": "5511987654321",
            "service": "Atendimento ao Cliente",
            "call_id": "1234567890",
            "duration": 180,
            "call_state": "calling",
            "call_type": "inbound",
            "call_source": "external",
            "consultation_call_id": null,
            "entry_address": null,
            "associated_data": null,
            "classification_time": 120,
            "after_call_work_time": 60,
            "expected_handle_time": 240,
            "permissions": [
              "consult",
              "transfer"
            ]
          }
        ],
        "devices": [
          {
            "media_type": "voice",
            "quantity": 1,
            "handle_mode": "branch"
          },
          {
            "media_type": "chat",
            "quantity": 2,
            "handle_mode": "auto"
          }
        ],
        "contingency": false
      }
    ]
  }
}
🟠400Erro na requisição
Modificado em 2024-08-26 18:53:46
Página anterior
Alterar estado
Built with