List call records
GETList Call Registers
{ocular-api-domain}/api/ocular/admin/call-registers?timeZone=America/Santiago&sessionId=3223&start=2023-11-01&end=2023-11-30&widgetId=1&callTypeId=1AUTHORIZATION Token
Headers
Parameters
America/Santiago
(String - required) Needed to filter records according to their time zone ("America/Santiago").
3223
(Integer - optional) Filters call records by state: (Missed: 2, Answered: 3, Cancelled: 4, Left the queue: 6, Scheduled: 8, Abandoned: 9, No availability: 10, Out of hours: 11, Appointment cancelled: 12, Appointment expired: 13, Blocked: 14, Link created: 16, IP blocked: 17, Finished: 18, Forced disconnection: 19).
2023-11-01
(Date - optional) Filters call records by date range: 2023-10-01 (start date).
2023-11-30
(Date - optional) Filters call records by date range: 2023-12-01 (end date).
1
(Integer - optional) Filters call records by widget ID.
1
(Integer - optional) Filters call records by type, for example (Direct: 1, Scheduled: 2).
John Smith
(string - optional) Filters call records by customer.
3
(Integer - optional) If omitted, the last 50 records are returned.
Example Request
curl --location -g '{{ocular-api-domain}}/api/ocular/admin/call-registers?timeZone=America%2FSantiago&sessionId=3223&start=2023-11-01&end=2023-11-30&widgetId=1&callTypeId=1' \
--header 'X-Requested-With: XMLHttpRequest'
Example response
{
"sessionId": 994492,
"agent": "Paul Núñez paul25gnm@gmail.com",
"department": "Información",
"stateName": "Finalizada",
"widgetName": "Principal",
"widgetMs": 140,
"calificationWidget": "stable",
"calificationCammer": "stable",
"cammerMs": 131.08,
"originUrl": "ocularsolution.com/",
"duration": "00:00:14",
"finished": "Agente",
"date": "2024-06-18 16:44:23",
"tags": null,
"cancelled": "-",
"calification": 10,
"callType": "Directa",
"transferred": "-",
"comment": null,
"customer": {
"Teléfono": "+56988391319",
"Nombre completo": "Paul Nuñez",
"Correo electrónico": "paul25gnm@gmail.com"
},
"subscriberIp": "186.105.130.49",
"attentionTime": "00:00:14",
"ringingTime": "00:00:04",
"queueTime": "00:00:15"
}