Permite filtrar por agentes, serviços, mídias e tipos de eventos.
Requisição
Parâmetros Bodyapplication/json
{
"subscription": {
"agents": [
"Jose",
"Maria"
],
"services": [
"Atendimento_A",
"Atendimento_B"
],
"media_types": [
"voice",
"chat"
],
"events": [
"on_login",
"on_logout",
"on_call_receive"
],
"expires": 3600,
"channel_id": 1234
}
}
Códigos de solicitação
curl --location --request POST '/agent/monitor/subscribe' \
--header 'Content-Type: application/json' \
--data-raw '{
"subscription": {
"agents": [
"Jose",
"Maria"
],
"services": [
"Atendimento_A",
"Atendimento_B"
],
"media_types": [
"voice",
"chat"
],
"events": [
"on_login",
"on_logout",
"on_call_receive"
],
"expires": 3600,
"channel_id": 1234
}
}'
Respostas
application/json {
"response": {
"command": "subscribe",
"id": 10,
"status": "ok",
}
}
Modificado em 2024-08-28 17:40:11