Listar chamadas
curl --request GET \
--url https://api.example.com/user/callsimport requests
url = "https://api.example.com/user/calls"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/user/calls', 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://api.example.com/user/calls",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/user/calls"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/user/calls")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/user/calls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"current_page": 1,
"data": [
{
"id": 123,
"assistant_name": "Assistente de Vendas",
"campaign_name": "Campanha de Prospecção Q4",
"type": "outbound",
"duration": 245,
"assistant_phone_number": "+1234567890",
"client_phone_number": "+1987654321",
"status": "completed",
"transcript": "Olá, aqui é a Sarah da OmniTech. Como você está hoje?...",
"variables": {
"customer_name": "John Smith",
"interest_level": "high",
"follow_up_date": "2025-08-15"
},
"evaluation": {
"sentiment": "positive",
"outcome": "qualified_lead",
"score": 8.5
},
"webhook_response": {
"status": "success",
"data": {
"crm_contact_id": "abc123"
}
},
"carrier_cost": 0.02,
"total_cost": 0.025,
"answered_by": "human",
"recording_url": "https://recordings.omnitech.ai/calls/123.mp3",
"created_at": "2025-08-04 14:30:00",
"updated_at": "2025-08-04 14:34:05"
}
],
"first_page_url": "https://app.omnitechsolucoes.com.br/api/user/calls?page=1",
"from": 1,
"last_page": 10,
"last_page_url": "https://app.omnitechsolucoes.com.br/api/user/calls?page=10",
"links": [
{
"url": null,
"label": "« Anterior",
"active": false
},
{
"url": "https://app.omnitechsolucoes.com.br/api/user/calls?page=1",
"label": "1",
"active": true
},
{
"url": "https://app.omnitechsolucoes.com.br/api/user/calls?page=2",
"label": "2",
"active": false
}
],
"next_page_url": "https://app.omnitechsolucoes.com.br/api/user/calls?page=2",
"path": "https://app.omnitechsolucoes.com.br/api/user/calls",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 150
}
Calls
Listar chamadas
Lista todas as chamadas do usuário autenticado, com paginação e filtros por data, status, assistente e direção (inbound ou outbound).
GET
/
user
/
calls
Listar chamadas
curl --request GET \
--url https://api.example.com/user/callsimport requests
url = "https://api.example.com/user/calls"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/user/calls', 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://api.example.com/user/calls",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/user/calls"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/user/calls")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/user/calls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"current_page": 1,
"data": [
{
"id": 123,
"assistant_name": "Assistente de Vendas",
"campaign_name": "Campanha de Prospecção Q4",
"type": "outbound",
"duration": 245,
"assistant_phone_number": "+1234567890",
"client_phone_number": "+1987654321",
"status": "completed",
"transcript": "Olá, aqui é a Sarah da OmniTech. Como você está hoje?...",
"variables": {
"customer_name": "John Smith",
"interest_level": "high",
"follow_up_date": "2025-08-15"
},
"evaluation": {
"sentiment": "positive",
"outcome": "qualified_lead",
"score": 8.5
},
"webhook_response": {
"status": "success",
"data": {
"crm_contact_id": "abc123"
}
},
"carrier_cost": 0.02,
"total_cost": 0.025,
"answered_by": "human",
"recording_url": "https://recordings.omnitech.ai/calls/123.mp3",
"created_at": "2025-08-04 14:30:00",
"updated_at": "2025-08-04 14:34:05"
}
],
"first_page_url": "https://app.omnitechsolucoes.com.br/api/user/calls?page=1",
"from": 1,
"last_page": 10,
"last_page_url": "https://app.omnitechsolucoes.com.br/api/user/calls?page=10",
"links": [
{
"url": null,
"label": "« Anterior",
"active": false
},
{
"url": "https://app.omnitechsolucoes.com.br/api/user/calls?page=1",
"label": "1",
"active": true
},
{
"url": "https://app.omnitechsolucoes.com.br/api/user/calls?page=2",
"label": "2",
"active": false
}
],
"next_page_url": "https://app.omnitechsolucoes.com.br/api/user/calls?page=2",
"path": "https://app.omnitechsolucoes.com.br/api/user/calls",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 150
}
Este endpoint permite listar todas as chamadas pertencentes ao usuário autenticado com diversas opções de filtragem.
Parâmetros de Consulta
string
Filtra chamadas por status. Valores possíveis:
initiated, ringing, busy, in-progress, ended, completed, ended_by_customer, ended_by_assistant, no-answer, failedstring
Filtra chamadas por tipo. Valores possíveis:
inbound, outbound, webstring
Filtra chamadas pelo número de telefone do cliente
integer
Filtra chamadas pelo ID do assistente
integer
Filtra chamadas pelo ID da campanha
string
Filtra chamadas a partir desta data (formato YYYY-MM-DD)
string
Filtra chamadas até esta data (formato YYYY-MM-DD)
integer
Número de chamadas por página (1-100, padrão: 15)
integer
Número da página (padrão: 1)
Campos da Resposta
array
Show propriedades
Show propriedades
integer
Identificador único da chamada
string
Nome do assistente que conduziu a chamada
string
Nome da campanha à qual esta chamada pertence (se aplicável)
string
Tipo da chamada (
inbound, outbound ou web)integer
Duração da chamada em segundos
string
Número de telefone utilizado pelo assistente
string
Número de telefone do cliente
string
Status atual da chamada
string
Transcrição da conversa da chamada
object
Variáveis coletadas durante a chamada
object
Dados de avaliação do desempenho da chamada
object
Resposta de quaisquer webhooks configurados
number
Custo cobrado pela operadora para esta chamada
number
Custo total da chamada incluindo todas as taxas
string
Quem atendeu a chamada (
human, machine ou unknown)string
URL da gravação da chamada (se disponível e habilitada)
string
Data e hora em que a chamada foi criada
string
Data e hora da última atualização da chamada
integer
Número da página atual
integer
Quantidade de itens por página
integer
Número total de chamadas que correspondem aos critérios
integer
Número da última página
{
"current_page": 1,
"data": [
{
"id": 123,
"assistant_name": "Assistente de Vendas",
"campaign_name": "Campanha de Prospecção Q4",
"type": "outbound",
"duration": 245,
"assistant_phone_number": "+1234567890",
"client_phone_number": "+1987654321",
"status": "completed",
"transcript": "Olá, aqui é a Sarah da OmniTech. Como você está hoje?...",
"variables": {
"customer_name": "John Smith",
"interest_level": "high",
"follow_up_date": "2025-08-15"
},
"evaluation": {
"sentiment": "positive",
"outcome": "qualified_lead",
"score": 8.5
},
"webhook_response": {
"status": "success",
"data": {
"crm_contact_id": "abc123"
}
},
"carrier_cost": 0.02,
"total_cost": 0.025,
"answered_by": "human",
"recording_url": "https://recordings.omnitech.ai/calls/123.mp3",
"created_at": "2025-08-04 14:30:00",
"updated_at": "2025-08-04 14:34:05"
}
],
"first_page_url": "https://app.omnitechsolucoes.com.br/api/user/calls?page=1",
"from": 1,
"last_page": 10,
"last_page_url": "https://app.omnitechsolucoes.com.br/api/user/calls?page=10",
"links": [
{
"url": null,
"label": "« Anterior",
"active": false
},
{
"url": "https://app.omnitechsolucoes.com.br/api/user/calls?page=1",
"label": "1",
"active": true
},
{
"url": "https://app.omnitechsolucoes.com.br/api/user/calls?page=2",
"label": "2",
"active": false
}
],
"next_page_url": "https://app.omnitechsolucoes.com.br/api/user/calls?page=2",
"path": "https://app.omnitechsolucoes.com.br/api/user/calls",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 150
}
⌘I