Consulta el historial de intentos de un contacto
curl --request GET \
--url https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/contacts/event-history \
--header 'apikey: <api-key>'import requests
url = "https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/contacts/event-history"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/contacts/event-history', 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.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/contacts/event-history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <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.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/contacts/event-history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<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.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/contacts/event-history")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/contacts/event-history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"contact": {
"contactId": "7d2f8a1b-3c4e-4f50-9a6b-2c3d4e5f6a7b",
"identifier": "CLI-001"
},
"data": [
{
"batchId": "bf3d6869-4809-4474-be09-ff1c0f9e0a3a",
"contactId": "7d2f8a1b-3c4e-4f50-9a6b-2c3d4e5f6a7b",
"identifier": "CLI-001",
"name": "Juan Pérez",
"address": "5491155551234",
"result": "NO_ANSWER",
"resultDetail": "No contesta",
"attemptNumber": 1,
"occurredAt": "2026-09-21 10:41:43.000",
"channelId": "c1a2b3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"dialId": "d9e8f7a6-5b4c-4d3e-2f1a-0b9c8d7e6f5a"
}
],
"pagination": {
"total": 1,
"limit": 20,
"offset": 0
},
"timezone": "Europe/Madrid"
}
Historial y auditoría
Historial de llamadas de un contacto
Consulta los intentos de llamada de un contacto dentro de un lote.
GET
/
batches
/
{batchId}
/
contacts
/
event-history
Consulta el historial de intentos de un contacto
curl --request GET \
--url https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/contacts/event-history \
--header 'apikey: <api-key>'import requests
url = "https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/contacts/event-history"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/contacts/event-history', 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.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/contacts/event-history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <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.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/contacts/event-history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<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.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/contacts/event-history")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/contacts/event-history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"contact": {
"contactId": "7d2f8a1b-3c4e-4f50-9a6b-2c3d4e5f6a7b",
"identifier": "CLI-001"
},
"data": [
{
"batchId": "bf3d6869-4809-4474-be09-ff1c0f9e0a3a",
"contactId": "7d2f8a1b-3c4e-4f50-9a6b-2c3d4e5f6a7b",
"identifier": "CLI-001",
"name": "Juan Pérez",
"address": "5491155551234",
"result": "NO_ANSWER",
"resultDetail": "No contesta",
"attemptNumber": 1,
"occurredAt": "2026-09-21 10:41:43.000",
"channelId": "c1a2b3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"dialId": "d9e8f7a6-5b4c-4d3e-2f1a-0b9c8d7e6f5a"
}
],
"pagination": {
"total": 1,
"limit": 20,
"offset": 0
},
"timezone": "Europe/Madrid"
}
Devuelve los intentos ya realizados sobre un contacto dentro del lote. Puedes localizarlo mediante su
El parámetro
Los campos sin datos se devuelven como
Consulta Códigos de resultado para interpretar
identifier externo o mediante el contactId interno.
Usa preferentemente
identifier para relacionar la consulta con el registro de tu CRM u otro sistema de origen. Envía exactamente uno de los dos identificadores.timezone es opcional y determina la zona horaria de occurredAt. Si lo omites, las fechas se devuelven en UTC.
Ejemplos de consulta
curl --request GET \
--url 'https://api.backend.inconcertcc.com/autocontact/api/v1/batches/bf3d6869-4809-4474-be09-ff1c0f9e0a3a/contacts/event-history?identifier=CLI-001&timezone=Europe%2FMadrid&limit=20&offset=0' \
--header 'apikey: TU_API_KEY'
curl --request GET \
--url 'https://api.backend.inconcertcc.com/autocontact/api/v1/batches/bf3d6869-4809-4474-be09-ff1c0f9e0a3a/contacts/event-history?contactId=7d2f8a1b-3c4e-4f50-9a6b-2c3d4e5f6a7b&limit=20&offset=0' \
--header 'apikey: TU_API_KEY'
{
"contact": {
"contactId": "7d2f8a1b-3c4e-4f50-9a6b-2c3d4e5f6a7b",
"identifier": "CLI-001"
},
"data": [
{
"batchId": "bf3d6869-4809-4474-be09-ff1c0f9e0a3a",
"contactId": "7d2f8a1b-3c4e-4f50-9a6b-2c3d4e5f6a7b",
"identifier": "CLI-001",
"name": "Juan Pérez",
"address": "5491155551234",
"result": "NO_ANSWER",
"resultDetail": "No contesta",
"attemptNumber": 1,
"occurredAt": "2026-09-21 10:41:43.000",
"channelId": "c1a2b3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"dialId": "d9e8f7a6-5b4c-4d3e-2f1a-0b9c8d7e6f5a"
}
],
"pagination": {
"total": 1,
"limit": 20,
"offset": 0
},
"timezone": "Europe/Madrid"
}
null, no como cadenas vacías. Un contacto cargado que todavía no fue marcado devuelve data vacío y pagination.total: 0; esto no significa que el contacto no exista.
occurredAt utiliza el formato YYYY-MM-DD HH:mm:ss.SSS y no incluye un offset. Interprétalo junto con el campo timezone de la respuesta. Evita pasarlo directamente a new Date(occurredAt), porque JavaScript usaría la zona horaria del cliente, que puede ser distinta de la solicitada.result.Authorizations
API key obtenida desde la interfaz de Inagent, dentro del marcador.
Path Parameters
Id del lote.
Query Parameters
Identificador del contacto en el sistema de origen. Recomendado.
Identificador interno asignado por Inagent al importar el contacto.
Zona horaria IANA utilizada para expresar occurredAt.
Cantidad máxima de intentos que se devolverán.
Desplazamiento desde el primer intento.
Required range:
x >= 0Was this page helpful?

