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

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&amp;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