/
API - Relatório - Histórico de Chamadas - Studio
API - Relatório - Histórico de Chamadas - Studio
Nos cabeçalhos dos requests, é necessário incluir uma chave "token" cujo valor seja um token de API.
Listar chamadas feitas pelo Evolux Studio
Endpoint | /api/v1/studio/calls |
---|---|
Method | GET |
Query String
Nome | Valor Padrão | Valor Máximo |
---|---|---|
limit | 50 | 50 |
page | 1 |
Exemplo de requisição
curl -X GET \
"<https://example.evolux.net.br/api/v1/studio/calls?page=1&limit=2"> \
-H "Content-Type: application/json" \
-H "token: <EVOLUX_TOKEN>"
Exemplo de resposta
{
"pagination": {
"max_limit": 50,
"first_url": "http://example.evolux.net.br/api/v1/studio/calls?start_date=2020-01-12T00%3A00%3A00%2B00%3A00&end_date=2020-01-12T23%3A59%3A59.999999%2B00%3A00&page=1",
"items": 2,
"current_url": "http://example.evolux.net.br/api/v1/studio/calls?start_date=2020-01-12T00%3A00%3A00%2B00%3A00&end_date=2020-01-12T23%3A59%3A59.999999%2B00%3A00&page=1",
"limit": 2,
"next_url": null,
"last_url": "http://example.evolux.net.br/api/v1/studio/calls?start_date=2020-01-12T00%3A00%3A00%2B00%3A00&end_date=2020-01-12T23%3A59%3A59.999999%2B00%3A00&page=1",
"total": 2,
"prev_url": null
},
"meta": {
"status": 200, "message": "OK"
},
"data": [ {
"exit_reason": "transfer",
"system_hangup_reason": null,
"uuid": "2",
"call_flow": {
"id": 2,
"name": "Test 1"
},
"start_time": "2020-01-12T13:00:00+00:00",
"caller": "11999482052",
"who_hangup": null,
"project": {
"id": 1,
"name": "Test"
},
"end_time": "2020-01-12T13:01:00+00:00",
"duration": 60,
"exit_transfer_destination": "5050",
"id": 2,
"did_number": null
},
{
"exit_reason": "hangup",
"system_hangup_reason": "hangup_task",
"uuid": "1",
"call_flow": {
"id": 1,
"name": "Test"
},
"start_time": "2020-01-12T11:59:00+00:00",
"caller": "600",,
"who_hangup": "system",
"project": {
"id": 1,
"name": "Test"
},
"end_time": "2020-01-12T11:59:59+00:00",
"duration": 59,
"exit_transfer_destination": null,
"id": 1,
"did_number": null
}
]
}
Detalhar uma chamada
Endpoint | studio/calls/<call_id>/cdr |
---|---|
Method | GET |
Exemplo de requisição
curl -X GET \
"<https://example.evolux.net.br/api/v1/studio/calls/1/cdr"> \
-H "Content-Type: application/json" \
-H "token: <EVOLUX_TOKEN>"
Exemplo de resposta
{
'meta': {
'status': 200,
'message': 'OK'
},
'data': {
'destination_number': '5050',
'enter_time_epoch': 1580327987,
'call_flow_version': null,
'exit_reason': 'hangup',
'call_flow_name': 'teste',
'executed_tasks': [ {
'end_time_epoch': 1580327988,
'task_id': 'bff2195a-493a-402c-8bc8-4d125eb58aee',
'task_raw_params': {},
'task_description': 'Iniciar',
'task_name': 'start',
'start_time_epoch': 1580327988
},
{
'end_time_epoch': 1580327988,
'task_id': '1184e6e2-d480-4b08-84e1-c01d29b5919a',
'task_raw_params': {
'data_type': 'formdata',
'url': 'https://api.randomuser.me/',
'verify': True,
'auth': null,
'headers': {},
'params': {},
'timeout': 30,
'variable_name': 'res',
'data': {},
'method': 'GET'
},
'task_description': 'HTTP',
'task_name': 'http',
'start_time_epoch': 1580327988
},
{
'end_time_epoch': 1580327988,
'task_id': 'ad9d49c3-d6cc-4416-8099-7779e54b0c8f',
'task_raw_params': {
'cause': 'NORMAL_CLEARING'
},
'task_description': 'Desligar',
'task_name': 'hangup',
'start_time_epoch': 1580327988
}
],
'hostname': 'example.evolux.net.br',
'who_hangup': 'system',
'system_hangup_reason': 'hangup_task',
'source': 'studio',
'call_flow_id': '1',
'session_uuid': 'abcd05f6-42d1-11ea-9c86-2dfde66a88cb',
'caller_id_number': '601',
'project_id': '1',
'incoming_did': null,
'project_name': 'teste',
'caller_id_name': '601 - OP',
'exit_time_epoch': 1580327988,
'studio_version': '1.0.5',
'tenant_domain': null,
'call_uuid': '761a05f6-42d1-11ea-9c86-2dfde66a88cb',
'exit_transfer_destination': null
}
}
{
"meta": {
"status": 404, "message": "Not found"
}
}
, multiple selections available,
Related content
API - Relatório - Histórico de Chamadas
API - Relatório - Histórico de Chamadas
More like this
API - Relatório - Discador - Histórico de Chamadas
API - Relatório - Discador - Histórico de Chamadas
More like this
API - Relatório - Chamadas por Ramal
API - Relatório - Chamadas por Ramal
More like this
API - Discador - Chamada de Campanha
API - Discador - Chamada de Campanha
More like this
API - Relatório - Chamadas Atendidas x Abandonadas x SLA
API - Relatório - Chamadas Atendidas x Abandonadas x SLA
Read with this
API - Relatório - Produtividade de Operadores
API - Relatório - Produtividade de Operadores
More like this