Public
Documentation Settings

API de Clientes

API de busca de logs para clientes da Atende Simples

GETLogs de atendentes

api.atendesimples.com/customers/attendants/logs?start_at&end_at&after&size&attendant_email&description&duration&ani&attendant_name&source&direction&call_id&voip_version&kind&screen&extension_number

API de consulta de logs dos atendentes

HEADERS
x-api-key

API Token de autenticação

PARAMS
start_at

Data inicio do log

end_at

Data fim do log

after

Busca os proximos itens da consulta

size

Tamanho maximo de itens retornados (Maximo de 1000 itens)

attendant_email

Email do atendente

description

Descrição da tela

duration

Duração Maior ou Igual ao valor (em segundos)

ani

Número ANI

attendant_name

Nome do atendente

source

Origem da chamada

direction

Direção da chamada

call_id

ID da chamada

voip_version

Versão do VoIP Maior ou Igual ao valor

kind

Tipo de log

screen

Nome da tela

extension_number

Ramal

Example Request
curl
curl --location 'api.atendesimples.com/customers/attendants/logs' \
--header 'x-api-key;'
200 OK
Example Response
json
{
  "total": 63395,
  "after": 1581020914072,
  "items": [
    {
      "configuration": {
        "wrap_up_time_outbound_active": true,
        "hold_active": false,
        "dialer_queue_active": false,
        "transfer_active": true,
        "post_attendance_active": true,
        "beep_termited_call_active": false,
        "dtmf_active": true,
        "wrap_up_time_inbound_active": true,
        "calling_timer_active": true,
        "pause_button_active": true,
        "dump_call_active": true,
        "send_logs_active": true
      },
      "description": null,
      "screen": "disconnected",
      "source": "voip",
      "attendants_groups": [
        {
          "extension_number": 16
        }
      ],
      "duration": 0,
      "attendant": {
        "sip_number": "90900197019",
        "extension_number": "19",
        "name": "RH1",
        "email": "rh1@atende.com"
      },
      "ani_number": null,
      "last_machine_attributes": {
        "isWebSocketsSupported": true,
        "publicAddress": "177.126.85.250",
        "sessionID": "f3df3c04-395d-f7e576d1",
        "hasMicrophone": true,
        "hasWebcam": true,
        "osName": "Mac OS X",
        "isWebRTCSupported": true,
        "voipNumberVersion": "1.14.111.1559",
        "isWebSocketsBlocked": false,
        "osVersion": "10_14_6",
        "localAddress": "192.168.1.105",
        "hasSpeakers": true,
        "browserVersion": "80.0.3987.87",
        "browserName": "Chrome",
        "loggedInAt": "2020-02-06T19:37:04.912Z",
        "localNetworkType": "wlan",
        "voipVersion": "Versão 1.14.111.1559",
        "isMobileDevice": false
      },
      "screen_name": "Desconectado",
      "complements": {
        "offline": {},
        "wrapup": {
          "source": null,
          "direction": null
        },
        "ringing": {
          "duration": 0,
          "from": null,
          "source": null,
          "direction": null,
          "has_error": false
        },
        "inactive": {},
        "waiting": {},
        "busy": {
          "transfer": null,
          "dtmf": null,
          "from": null,
          "source": null,
          "direction": null
        },
        "pause": {
          "scheduled": false,
          "type": {}
        }
      },
      "description_name": null,
      "dnis": "08008870608",
      "id": "590",
      "email": "rh1@atende.com",
      "timestamp": "2020-02-06T20:28:34.072Z",
      "machine_attributes": {
        "isWebSocketsSupported": true,
        "publicAddress": "177.126.85.250",
        "sessionID": "f3df3c04-395d-f7e576d1",
        "hasMicrophone": true,
        "hasWebcam": true,
        "osName": "Mac OS X",
        "isWebRTCSupported": true,
        "voipNumberVersion": "1.14.111.1559",
        "isWebSocketsBlocked": false,
        "osVersion": "10_14_6",
        "localAddress": "192.168.1.105",
        "hasSpeakers": true,
        "browserVersion": "80.0.3987.87",
        "browserName": "Chrome",
        "loggedInAt": "2020-02-06T19:37:04.912Z",
        "localNetworkType": "wlan",
        "voipVersion": "Versão 1.14.111.1559",
        "isMobileDevice": false
      },
      "status_changed_by": "voip",
      "previous": null,
      "kind": "status",
      "call": {
        "x_call_id": null,
        "ani_number": null,
        "dnis": "08008870608",
        "call_id": null
      },
      "last_statuses": null,
      "status_complements": null,
      "allow_save": true,
      "extension_number": "19",
      "name": "RH1",
      "user": {},
      "send_logs_active": true
    }
  ]
}
No response headers
This request doesn't return any response headers

GETLogs de CDRs

api.atendesimples.com/customers/cdrs/logs?start_at&end_at&after&size&call_id&alt_dnis&ori_billing_time&total_charge&selected_options&zendesk_ticket_id&configuration_kind&period&call_terminated

API de consulta de logs dos cdrs

HEADERS
x-api-key

API Token de autenticação

PARAMS
start_at

Data inicio do log

end_at

Data fim do log

after

Busca os proximos itens da consulta

size

Tamanho maximo de itens retornados (Maximo de 1000 itens)

call_id

ID da chamada

alt_dnis

Número da chamada

ori_billing_time

Duração arredondada

total_charge

Valor total

selected_options

Opções chamada navegou

zendesk_ticket_id

Ticket zendesk

configuration_kind

Tipo do discador

period

Periodo

call_terminated

Quem desligou

Example Request
curl
curl --location 'api.atendesimples.com/customers/cdrs/logs' \
--header 'x-api-key;'
200 OK
Example Response
json
{
  "total": 1,
  "after": 1580164093000,
  "items": [
    {
      "callid": "69709941",
      "my_status_name": "status 9",
      "selected_options": "2,4",
      "number_info3": "teste3",
      "number_info2": "teste2",
      "call_status_humanized": "Chamada Abandonada",
      "selected_call_classification_tags": null,
      "number_info1": "teste1",
      "ani_uf": "TO",
      "call_status": "abandoned",
      "uraduration": 29,
      "dnis": "5508008870608",
      "period": "worktime",
      "public_audio_url": "https://staging.atendesimples.com/public/audios/53f866da4ec24ab8b5448acc3a6d3214",
      "my_status_code": "9",
      "voicemail": false,
      "ani_long": "-48.3317167",
      "block_reason": null,
      "ani_state": "Tocantins",
      "number_host": "www.eu.com",
      "total_charge": "1.35",
      "dialduration": 0,
      "dialer_type": null,
      "result_leg_a_humanized": null,
      "block_reason_humanized": null,
      "number_name": "Teste22",
      "configuration_kind": "default",
      "leg_a_type_humanized": "Atendente",
      "call_status_complement": "ring_off",
      "week_day": "monday",
      "period_humanized": "Horário normal",
      "ani_city": " Palmas",
      "period_complement": null,
      "my_tags": "Hugo Luis",
      "direction_humanized": "Entrante",
      "has_audio": false,
      "alt_dnis": "5508008870608",
      "ani_provider": "OI",
      "my_status_info_2": null,
      "my_status_info_1": null,
      "my_status_info_3": null,
      "ani_prefix": "63",
      "ani_kind": "cellphone",
      "redirects": [
        {
          "group_id": 1,
          "attendable_type": "Attendant",
          "ori_real_time": 2,
          "billing_time": 60,
          "charge": "0.0",
          "initial_date": "2020-01-21T10:49:01.000-03:00",
          "end_time": "2020-01-21T10:49:03.000-03:00",
          "attendant_ani": "5590900513130",
          "option": 1,
          "redirect_terminated": "A",
          "user_name": "Atendente 2",
          "user_email": "teste2@teste.com",
          "user_extension": "130",
          "sipcode": null,
          "mailbox_detected": false,
          "timeout_voscenter": "f"
        }
      ],
      "interactions": [
        {
          "flow_kind": "default",
          "redirecting_option": null,
          "name": null,
          "digits": "",
          "validation_status": "error",
          "status_humanized": null,
          "validation_status_humanized": "Inválida",
          "option_selected": "4",
          "status": null
        }
      ],
      "leg_a_type": "attendant",
      "call_terminated": "A",
      "configuration_kind_humanized": "Padrão",
      "ori_end_time": "2020-01-27T19:28:42.000-03:00",
      "ori_charge": "1.35",
      "ani_lat": "-10.168891",
      "customer_info": null,
      "ani": "5563984866338",
      "ring_duration_a": null,
      "ring_duration_b": null,
      "direction": "inbound",
      "ring_duration_c": null,
      "queue_dialer_name": null,
      "card_info_1": null,
      "result_leg_a": null,
      "my_status_complement_2": null,
      "result_leg_b": null,
      "my_status_complement_1": null,
      "zendesk_ticket_id": null,
      "result_leg_b_humanized": null,
      "audio_processing_state": "idle",
      "duration_call": 29,
      "ori_start_time": "2020-01-27T19:28:13.000-03:00",
      "ori_billing_time": 60,
      "card_info_2": null,
      "card_info_3": null
    }
  ]
}
No response headers
This request doesn't return any response headers

GETLogs de fichas

api.atendesimples.com/customers/dialer-queue/cards?token&start_at&end_at&after&size&number&status&card_info_1&card_info_2&card_info_3

API de consulta de logs das fichas

HEADERS
x-api-key

API Token de autenticação

PARAMS
token

Token do discador (Obrigatorio)

start_at

Data inicio do log

end_at

Data fim do log

after

Busca os proximos itens da consulta

size

Tamanho maximo de itens retornados (Maximo de 1000 itens)

number

Numero de discagem

status

Status da ficha

card_info_1

Info discador 1

card_info_2

Info discador 2

card_info_3

Info discador 3

Example Request
curl
curl --location 'api.atendesimples.com/customers/dialer-queue/cards?token=lpnIf8ACeW70YtQNPitLr5DbL2I3ZlU71skFwTJL' \
--header 'x-api-key;'
200 OK
Example Response
json
{
  "total": 1,
  "after": 1580480009669,
  "items": [
    {
      "card_info_1": "Truck",
      "number": "5521999999999",
      "schedule": null,
      "source": "Atende Simples - Format_2020-01-24T09_44_16.380Z_2020-01-31T14:13:24.131Z.csv",
      "is_scheduled": false,
      "card_info_2": "Grade Baixa",
      "token": "****************",
      "card_info_3": "NÃO",
      "status": "to_call",
      "timestamp": "2020-01-31T14:13:29.669Z"
    }
  ]
}
No response headers
This request doesn't return any response headers