Listar historial unificado de imports
curl --request GET \
--url http://api.gu1.ai/batch-import/unified-history \
--header 'Authorization: Bearer <token>'import requests
url = "http://api.gu1.ai/batch-import/unified-history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://api.gu1.ai/batch-import/unified-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 => "http://api.gu1.ai/batch-import/unified-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 => [
"Authorization: Bearer <token>"
],
]);
$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 := "http://api.gu1.ai/batch-import/unified-history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://api.gu1.ai/batch-import/unified-history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/batch-import/unified-history")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyReferencia API
Listar historial unificado de imports
Historial paginado y unificado de jobs de importación batch por tipo (entidades, transacciones, user events) — vía la API batch import de Gu1 para alto volumen.
GET
/
batch-import
/
unified-history
Listar historial unificado de imports
curl --request GET \
--url http://api.gu1.ai/batch-import/unified-history \
--header 'Authorization: Bearer <token>'import requests
url = "http://api.gu1.ai/batch-import/unified-history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://api.gu1.ai/batch-import/unified-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 => "http://api.gu1.ai/batch-import/unified-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 => [
"Authorization: Bearer <token>"
],
]);
$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 := "http://api.gu1.ai/batch-import/unified-history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://api.gu1.ai/batch-import/unified-history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/batch-import/unified-history")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyEndpoint
GET https://api.gu1.ai/batch-import/unified-history
Overview
Lista jobs de importación batch de la organización actual, más recientes primero. Usen esto para listados estilo dashboard de imports recientes. Para polling de un job puntual después del upload, preferir Consultar estado de job batch — lookup directo porjobId, sin paginar el histórico.
Respuesta: { success: true, jobs: [...], total, limit, offset }.
Autenticación
Authorization: Bearer YOUR_API_KEY
transactions:create, entities:bulk_import, events:create.
Query parameters
| Parámetro | Default | Descripción |
|---|---|---|
limit | 50 | Tamaño de página (máx. 100) |
offset | 0 | Offset de paginación |
kinds | todos | CSV: entity_batch (alias: entity_automatic), transaction_batch, user_event_batch |
importStatus o status | todos | CSV: queued, running, completed, failed, cancelled, interrupted, cancelling |
fileName | — | Coincidencia parcial sobre nombre de archivo en metadata |
jobId | — | Coincidencia exacta por job id (0 o 1 fila) |
Campos de cada job en jobs[]
| Campo | Descripción |
|---|---|
id | Id interno de fila |
jobId | Id del job batch (usar en Consultar estado de job batch) |
kind | entity_batch (alias entity_automatic), transaction_batch o user_event_batch |
status | Estado actual |
totalItems | Total de filas/ítems |
succeeded | Éxitos |
failed | Fallos |
skipped | Omitidos |
metadata | Metadata (p. ej. fileName) |
heartbeatAt | Último heartbeat (ISO 8601) |
leaseExpiresAt | Expiración de lease (ISO 8601) |
workerError | Error del worker truncado |
createdByUserId | Id del usuario que envió la importación; null si el job no lo inició un usuario |
createdAt | Creación (ISO 8601) |
completedAt | Finalización terminal (ISO 8601) |
Was this page helpful?