cURL
curl --request GET \
--url https://api.altur.io/api/v1.0/campaigns/{id}/calls \
--header 'Authorization: <api-key>'import requests
url = "https://api.altur.io/api/v1.0/campaigns/{id}/calls"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.altur.io/api/v1.0/campaigns/{id}/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.altur.io/api/v1.0/campaigns/{id}/calls",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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.altur.io/api/v1.0/campaigns/{id}/calls"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.altur.io/api/v1.0/campaigns/{id}/calls")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.altur.io/api/v1.0/campaigns/{id}/calls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"total_count": 123,
"calls": [
{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"ended_reason": "<string>",
"duration": 123,
"billed_duration": 123,
"contact": {
"id": 123,
"f_id": "<string>",
"name": "<string>",
"phone_number": "<string>",
"status": "<string>"
},
"extracted_data": {
"interested": "yes",
"appointment_date": "2024-01-20"
},
"tags": [
"interested",
"callback"
],
"recording_url": "/api/v1.0/call/call_abc123def456/recording",
"policy_evaluation": {
"score": 123,
"policies_evaluated_count": 123,
"policies_met_count": 123,
"policies_not_applicable_count": 123,
"completed": true,
"completed_at": "2023-11-07T05:31:56Z",
"policies": [
{
"policy_id": "<string>",
"policy_name": "<string>",
"explanation": "<string>",
"evaluated_at": "2023-11-07T05:31:56Z"
}
]
}
}
],
"pagination": {
"page_index": 123,
"page_size": 123,
"has_next": true,
"has_previous": true,
"next_page": 123,
"previous_page": 123
}
}{
"field1": [
"This field is required."
],
"field2": [
"Incorrect format."
],
"non_field_errors": [
"The date range is not valid."
]
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}Campañas
Listar Llamadas de Campaña
Returns a paginated list of calls for a specific campaign
GET
/
campaigns
/
{id}
/
calls
cURL
curl --request GET \
--url https://api.altur.io/api/v1.0/campaigns/{id}/calls \
--header 'Authorization: <api-key>'import requests
url = "https://api.altur.io/api/v1.0/campaigns/{id}/calls"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.altur.io/api/v1.0/campaigns/{id}/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.altur.io/api/v1.0/campaigns/{id}/calls",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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.altur.io/api/v1.0/campaigns/{id}/calls"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.altur.io/api/v1.0/campaigns/{id}/calls")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.altur.io/api/v1.0/campaigns/{id}/calls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"total_count": 123,
"calls": [
{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"ended_reason": "<string>",
"duration": 123,
"billed_duration": 123,
"contact": {
"id": 123,
"f_id": "<string>",
"name": "<string>",
"phone_number": "<string>",
"status": "<string>"
},
"extracted_data": {
"interested": "yes",
"appointment_date": "2024-01-20"
},
"tags": [
"interested",
"callback"
],
"recording_url": "/api/v1.0/call/call_abc123def456/recording",
"policy_evaluation": {
"score": 123,
"policies_evaluated_count": 123,
"policies_met_count": 123,
"policies_not_applicable_count": 123,
"completed": true,
"completed_at": "2023-11-07T05:31:56Z",
"policies": [
{
"policy_id": "<string>",
"policy_name": "<string>",
"explanation": "<string>",
"evaluated_at": "2023-11-07T05:31:56Z"
}
]
}
}
],
"pagination": {
"page_index": 123,
"page_size": 123,
"has_next": true,
"has_previous": true,
"next_page": 123,
"previous_page": 123
}
}{
"field1": [
"This field is required."
],
"field2": [
"Incorrect format."
],
"non_field_errors": [
"The date range is not valid."
]
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}Límite de Tasa: 12 solicitudes por segundo
Autorizaciones
Add api-key YOUR_API_SECRET_KEY as the value of the Authorization header.
Parámetros de ruta
The identifier of the Campaign to return the Calls
Parámetros de consulta
Filters the Campaign Calls by the status of the Call
Opciones disponibles:
ended, failed, busy, no-answer, in-progress Filters the Campaign Calls by who answered the call
Opciones disponibles:
human, machine, unknown Filter calls created after this date in ISO 8601 format
Filter calls created before this date in ISO 8601 format
Number of items per page to return.
Rango requerido:
1 <= x <= 100Page number to return (0-based).
Rango requerido:
0 <= x <= 25000⌘I