Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Essa API tem a função de retornar os registros das ligações realizadas pelas campanhas.

Os resultados são paginados, o que significa que serão mostrados no máximo 50 registros para cada requisição feita.

As regras à respeito dos campos customizados devem ser obedecidas também frente à API, ou seja, para que os valores sejam exibidos, devemos especificar a(s) campanha(s) que contenha(m) àqueles campos associados a ela.

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

-

-

Obs: agent_id e campaign_id podem ser múltiplos.

...

Code Block
languagebash
curl -X-location --request GET \
  "'https://examplecliente.evolux.net.br/api/v1/dialer/calls_history?number=84999999999&campaign_id=376' \
  --H "Content-Type: application/json" \
  -H "token: <EVOLUX_TOKEN>"header 'token: [SUPRIMIDO POR SEGURANÇA] \


Exemplo de resposta

Code Block
languagejson
{
    "pagination": {
        "max_limit": 50,
        "limit": 50,
        "first_url": "httphttps://examplecliente.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%3A00number=84999999999&campaign_id=376&page=1",
        "next_url": null,
        "items": 2,
        "currentlast_url": "httphttps://examplecliente.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%3A00number=84999999999&campaign_id=376&page=1",
        "limittotal": 2,
    "next_url": null,     "lastcurrent_url": "httphttps://examplecliente.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%3A00number=84999999999&campaign_id=376&page=1",
    "total": 2,
    "prev_url": null
    },
    "meta": {
        "status": 200,
        "message": "OK"
    },
    "data": [
        {
            "answer_time": "2021-10-28T19:42:00+00:00",
            "classification": "-",
            "hangup_cause": "Cancelada pelo originador",
            "uuid": "0e4bccbe-3827-11ec-8190-5f7aar43ds2",
            "campaign": {
                "id": 376,
                "name": "Campanha de Teste Evolux"
            },
            "talking_duration": 130,
    "uuid        "trunk_name": "Pontal",
            "start_time": "20202021-0110-11T2328T19:41:00:00+00",33+00:00",
            "end_by": "Subscriber",
            "agent": {
                "id": 149,
                "name": "Atendente Evolux"
            },
            "billable_duration": 41.0,
            "subscriber": {
                "external_id": "19191919",
                "number": "8488888888",
                "name": "Ronaldinho"
            },
            "survey": {
                "csat": null,
                "nps": null
            },
            "answerend_time": "20202021-0110-11T2328T19:42:30+00:01+00",00",
            "outcome": "-",
            "id": 48582566,
            "custom_fields": {
                "type": "VIP",
                "site": "www.evolux.net.br",
                "obs": "Analista de Professional S"
            }
        },
        {
            "endanswer_time": "20202021-0110-11T0028T19:0141:33+00+00",:00",
            "classification": "-",
            "hangup_cause": "Desligamento normal",
            "uuid": "01271e80-3827-11ec-bf38-5f7aa276gtr",
            "campaign": {
                "id": 1376,
                "name": "Capaign 1"Campanha de Teste Evolux"
            },
            "talking_duration": 13,
            "trunk_name": "Provedor de Telefonia",
            "start_time": "2021-10-28T19:41:11+00:00",
            "end_by": "Agent",
            "agent": {
                "id": 1149,
                "name": "AgentAtendente nameEvolux"
            },
            "billable_duration": 24.0,
            "subscriber": {
                "external_id": "11120202020",
                "number": "84999999999",
                "name": "Subscriber name""Hulk"
            },
            "survey": {
                "csat": null,
                "nps": 10 null
            },
            "talkingend_durationtime": 400"2021-10-28T19:41:46+00:00",
            "outcome": "Não Interessado-",
            "hangup_causeid": "hangup cause",48582498,
            "endcustom_byfields": "end by", {
                "classificationtype": "ClassificaçãoVIP",
                "billable_durationsite": 400,"www.evolux.net.br",
                "trunk_nameobs": "trunkAnalista de name"Suporte"
            }
        }
    ]
}