Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Nos cabeçalhos dos requests, é necessário incluir uma chave "token" cujo valor seja um token de API.

Listar chamadas do discador

Endpoint

/api/v1/dialer/calls_history

Method

GET

Query String

Nome

Valor padrão

Valor máximo

limit

50

50

page

1

-

start_date

dia atual

-

end_date

dia atual

-

external_id

-

-

agent_id

-

-

number

-

-

campaign_id

-

-

Exemplo de requisição

curl -X GET \
  "https://example.evolux.net.br/api/v1/dialer/calls_history \
  -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/dialer/calls_history?start_date=2020-01-11T00%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/dialer/calls_history?start_date=2020-01-11T00%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/dialer/calls_history?start_date=2020-01-11T00%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": [{
    "id": 1,
    "uuid": ,
    "start_time": "2020-01-11T23:00:00+00",
    "answer_time": "2020-01-11T23:00:01+00",
    "end_time": "2020-01-11T00:01:00+00",
    "campaign": {
      "id": 1,
      "name": "Capaign 1"
    },
    "agent": {
      "id": 1,
      "name": "Agent name"
    },
    "subscriber": {
      "external_id": "111",
      "number": "",
      "name": "Subscriber name"
    },
    "survey": {
      "csat": null,
      "nps": 10
    },
    "talking_duration": 400,
    "outcome": "Assinante não atendeu",
    "hangup_cause": "hangup cause",
    "end_by": "end by",
    "classification": "Classificação",
    "billable_duration": 400,
    "trunk_name": "trunk name"
  }]

  • No labels