Consultar el log de un lote
curl --request GET \
--url https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/logs \
--header 'apikey: <apikey>'import requests
url = "https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/logs"
headers = {"apikey": "<apikey>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<apikey>'}};
fetch('https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/logs', 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}/logs",
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: <apikey>"
],
]);
$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}/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<apikey>")
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}/logs")
.header("apikey", "<apikey>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<apikey>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "ce4d9628-8127-475f-ab49-8ad308cd78c6",
"batchId": "e8b63614-f5db-4fd4-84ab-258b7070262e",
"operation": "archived",
"performedBy": "b5860478-5927-4362-8b59-c8f42149d045",
"details": null,
"createdAt": "2026-09-07T11:28:37.000Z",
"updatedAt": "2026-09-07T11:28:37.000Z",
"user": {
"id": "b5860478-5927-4362-8b59-c8f42149d045",
"name": "Usuario de ejemplo"
}
},
{
"id": "0515fb23-fd67-46a9-a17c-d207dfcec57c",
"batchId": "e8b63614-f5db-4fd4-84ab-258b7070262e",
"operation": "stopped",
"performedBy": "b5860478-5927-4362-8b59-c8f42149d045",
"details": { "reason": "manual" },
"createdAt": "2026-09-07T11:28:29.000Z",
"updatedAt": "2026-09-07T11:28:29.000Z",
"user": {
"id": "b5860478-5927-4362-8b59-c8f42149d045",
"name": "Usuario de ejemplo"
}
},
{
"id": "5c17854c-19df-49c2-a388-09f73a5a8bc1",
"batchId": "e8b63614-f5db-4fd4-84ab-258b7070262e",
"operation": "contacts_added",
"performedBy": "system",
"details": { "count": 4 },
"createdAt": "2026-09-07T11:27:45.000Z",
"updatedAt": "2026-09-07T11:27:45.000Z"
},
{
"id": "578b7aab-f935-4927-a8a5-db533a400076",
"batchId": "e8b63614-f5db-4fd4-84ab-258b7070262e",
"operation": "started",
"performedBy": "b5860478-5927-4362-8b59-c8f42149d045",
"details": { "reason": "manual" },
"createdAt": "2026-09-07T10:54:16.000Z",
"updatedAt": "2026-09-07T10:54:16.000Z",
"user": {
"id": "b5860478-5927-4362-8b59-c8f42149d045",
"name": "Usuario de ejemplo"
}
}
],
"total": 6
}
Historial y auditoría
Consultar el log de un lote
Obtén el registro de cambios y operaciones de un lote del marcador.
GET
/
autocontact
/
api
/
v1
/
batches
/
{batchId}
/
logs
Consultar el log de un lote
curl --request GET \
--url https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/logs \
--header 'apikey: <apikey>'import requests
url = "https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/logs"
headers = {"apikey": "<apikey>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<apikey>'}};
fetch('https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/logs', 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}/logs",
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: <apikey>"
],
]);
$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}/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<apikey>")
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}/logs")
.header("apikey", "<apikey>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<apikey>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "ce4d9628-8127-475f-ab49-8ad308cd78c6",
"batchId": "e8b63614-f5db-4fd4-84ab-258b7070262e",
"operation": "archived",
"performedBy": "b5860478-5927-4362-8b59-c8f42149d045",
"details": null,
"createdAt": "2026-09-07T11:28:37.000Z",
"updatedAt": "2026-09-07T11:28:37.000Z",
"user": {
"id": "b5860478-5927-4362-8b59-c8f42149d045",
"name": "Usuario de ejemplo"
}
},
{
"id": "0515fb23-fd67-46a9-a17c-d207dfcec57c",
"batchId": "e8b63614-f5db-4fd4-84ab-258b7070262e",
"operation": "stopped",
"performedBy": "b5860478-5927-4362-8b59-c8f42149d045",
"details": { "reason": "manual" },
"createdAt": "2026-09-07T11:28:29.000Z",
"updatedAt": "2026-09-07T11:28:29.000Z",
"user": {
"id": "b5860478-5927-4362-8b59-c8f42149d045",
"name": "Usuario de ejemplo"
}
},
{
"id": "5c17854c-19df-49c2-a388-09f73a5a8bc1",
"batchId": "e8b63614-f5db-4fd4-84ab-258b7070262e",
"operation": "contacts_added",
"performedBy": "system",
"details": { "count": 4 },
"createdAt": "2026-09-07T11:27:45.000Z",
"updatedAt": "2026-09-07T11:27:45.000Z"
},
{
"id": "578b7aab-f935-4927-a8a5-db533a400076",
"batchId": "e8b63614-f5db-4fd4-84ab-258b7070262e",
"operation": "started",
"performedBy": "b5860478-5927-4362-8b59-c8f42149d045",
"details": { "reason": "manual" },
"createdAt": "2026-09-07T10:54:16.000Z",
"updatedAt": "2026-09-07T10:54:16.000Z",
"user": {
"id": "b5860478-5927-4362-8b59-c8f42149d045",
"name": "Usuario de ejemplo"
}
}
],
"total": 6
}
Devuelve el registro de operaciones realizadas sobre un lote.
Autenticación
string
required
API key obtenida desde la interfaz de Inagent, dentro del marcador.
Parámetros
string
required
Identificador único del lote.
integer
Cantidad máxima de registros solicitados.
integer
Desplazamiento desde el primer registro.
Ejemplo
cURL
curl --request GET \
--url 'https://api.backend.inconcertcc.com/autocontact/api/v1/batches/e8b63614-f5db-4fd4-84ab-258b7070262e/logs?limit=50&offset=0' \
--header 'apikey: TU_API_KEY'
{
"data": [
{
"id": "ce4d9628-8127-475f-ab49-8ad308cd78c6",
"batchId": "e8b63614-f5db-4fd4-84ab-258b7070262e",
"operation": "archived",
"performedBy": "b5860478-5927-4362-8b59-c8f42149d045",
"details": null,
"createdAt": "2026-09-07T11:28:37.000Z",
"updatedAt": "2026-09-07T11:28:37.000Z",
"user": {
"id": "b5860478-5927-4362-8b59-c8f42149d045",
"name": "Usuario de ejemplo"
}
},
{
"id": "0515fb23-fd67-46a9-a17c-d207dfcec57c",
"batchId": "e8b63614-f5db-4fd4-84ab-258b7070262e",
"operation": "stopped",
"performedBy": "b5860478-5927-4362-8b59-c8f42149d045",
"details": { "reason": "manual" },
"createdAt": "2026-09-07T11:28:29.000Z",
"updatedAt": "2026-09-07T11:28:29.000Z",
"user": {
"id": "b5860478-5927-4362-8b59-c8f42149d045",
"name": "Usuario de ejemplo"
}
},
{
"id": "5c17854c-19df-49c2-a388-09f73a5a8bc1",
"batchId": "e8b63614-f5db-4fd4-84ab-258b7070262e",
"operation": "contacts_added",
"performedBy": "system",
"details": { "count": 4 },
"createdAt": "2026-09-07T11:27:45.000Z",
"updatedAt": "2026-09-07T11:27:45.000Z"
},
{
"id": "578b7aab-f935-4927-a8a5-db533a400076",
"batchId": "e8b63614-f5db-4fd4-84ab-258b7070262e",
"operation": "started",
"performedBy": "b5860478-5927-4362-8b59-c8f42149d045",
"details": { "reason": "manual" },
"createdAt": "2026-09-07T10:54:16.000Z",
"updatedAt": "2026-09-07T10:54:16.000Z",
"user": {
"id": "b5860478-5927-4362-8b59-c8f42149d045",
"name": "Usuario de ejemplo"
}
}
],
"total": 6
}
Was this page helpful?

