curl --request POST \
--url https://{baseUrl}/ipbox/api/getRE2 \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data de=de \
--data ate=ate \
--data fila=fila \
--data rotaEntrada=rotaEntradaimport requests
url = "https://{baseUrl}/ipbox/api/getRE2"
payload = {
"de": "de",
"ate": "ate",
"fila": "fila",
"rotaEntrada": "rotaEntrada"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({de: 'de', ate: 'ate', fila: 'fila', rotaEntrada: 'rotaEntrada'})
};
fetch('https://{baseUrl}/ipbox/api/getRE2', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{baseUrl}/ipbox/api/getRE2",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "de=de&ate=ate&fila=fila&rotaEntrada=rotaEntrada",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/ipbox/api/getRE2"
payload := strings.NewReader("de=de&ate=ate&fila=fila&rotaEntrada=rotaEntrada")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{baseUrl}/ipbox/api/getRE2")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("de=de&ate=ate&fila=fila&rotaEntrada=rotaEntrada")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/getRE2")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "de=de&ate=ate&fila=fila&rotaEntrada=rotaEntrada"
response = http.request(request)
puts response.read_bodygetRE2
Retorna o relatório RE2 - Chamadas de Roteamento de Entrada.
Lista as chamadas recebidas individualmente no período informado, com data/hora, origem, roteamento, se é prospect novo ou existente, tipo e nome do destino, status da chamada, tempo de fila, tempo de atendimento, agente que atendeu e resultado da ligação.
Parâmetros:
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| de | string | Sim | Data/hora início no formato YYYYMMDDHHmmss (ex: 20260715000000) |
| ate | string | Sim | Data/hora fim no formato YYYYMMDDHHmmss (ex: 20260715235959) |
| fila | string | Não | ID ou descrição da fila. Se não informado, considera todas as filas. |
| rotaEntrada | string | Não | ID ou descrição da rota de entrada. Se não informado, considera todas as rotas. |
Campos da resposta (array resultado):
| Campo | Tipo | Descrição |
|---|---|---|
| data_hora | string | Data e hora da chamada (dd/mm/aaaa HH:MM:SS) |
| origem | string | Número de origem formatado |
| roteamento | string | Nome da rota de entrada |
| prospect | string | ”Novo” para primeiro contato, “Existente” para contato já na base |
| tipo_destino | string | Tipo do destino da rota (ex: Fila, Ramal, URA) |
| destino | string | Nome do destino |
| status | string | Status da chamada (ex: AT = atendida, RA = ring all) |
| tempo_fila | int | Tempo de espera na fila em segundos |
| tempo_atendimento | int | Tempo de atendimento em segundos |
| agente | string | Login do agente que atendeu |
| resultado | string | Resultado da ligação classificado pelo agente |
curl --request POST \
--url https://{baseUrl}/ipbox/api/getRE2 \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data de=de \
--data ate=ate \
--data fila=fila \
--data rotaEntrada=rotaEntradaimport requests
url = "https://{baseUrl}/ipbox/api/getRE2"
payload = {
"de": "de",
"ate": "ate",
"fila": "fila",
"rotaEntrada": "rotaEntrada"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({de: 'de', ate: 'ate', fila: 'fila', rotaEntrada: 'rotaEntrada'})
};
fetch('https://{baseUrl}/ipbox/api/getRE2', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{baseUrl}/ipbox/api/getRE2",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "de=de&ate=ate&fila=fila&rotaEntrada=rotaEntrada",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/ipbox/api/getRE2"
payload := strings.NewReader("de=de&ate=ate&fila=fila&rotaEntrada=rotaEntrada")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{baseUrl}/ipbox/api/getRE2")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("de=de&ate=ate&fila=fila&rotaEntrada=rotaEntrada")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/getRE2")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "de=de&ate=ate&fila=fila&rotaEntrada=rotaEntrada"
response = http.request(request)
puts response.read_bodyBody
AAAAMMDDHHMMSS (onde AAAA = ano, MM = mês, DD = dia, HH = hora, MM = minuto, SS = segundo, exemplo: 2020513080000).
"de"
AAAAMMDDHHMMSS (onde AAAA = ano, MM = mês, DD = dia, HH = hora, MM = minuto, SS = segundo, exemplo: 2020513080000).
"ate"
[Opcional] Id ou nome da fila. Se não for informado retorna os dados de todas as filas.
"fila"
[Opcional] Id ou nome do roteamento de entrada. Se não informado retorna os dados de todos roteamentos de entrada.
"rotaEntrada"
Response
Successful response