Listar Smart Reports
Lista los registros SmartReport pertenecientes al cliente autenticado. Los resultados incluyen las referencias pobladas de template, smartBatch y client, y pueden filtrarse por smartBatch, template, externalRefId y createdByChannel, con paginación y ordenamiento opcionales.
Cuando pasas page, la respuesta incluye metadatos de paginación (total, limit, page y pages). Omite page para recibir la lista coincidente dentro de { data: [...] } sin metadatos de paginación.
Endpoint
GET https://api.verifik.co/v2/smart-reports
Este endpoint también es accesible a través del proxy de Smart-Agent en https://ai.verifik.co/v2/smart-reports usando tu propio encabezado por cliente Authorization: Bearer <VERIFIK_JWT>. La ejecución compartida mediante x402 está bloqueada con 403 Forbidden.
Encabezados
| Nombre | Valor | Descripción |
|---|---|---|
Content-Type | application/json | Formato del payload de la solicitud. |
Authorization | Bearer <VERIFIK_JWT> | JWT con alcance de cliente (authUser.clientId). |
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
smartBatch | string | No | Filtra los reportes vinculados a un ObjectId de SmartBatch específico. |
template | string | No | Filtra los reportes vinculados a un ObjectId de plantilla específico. |
status | string | No | Valores permitidos: "draft", "pending", "generating", "generated", "failed", "sent". Aceptado por la validación Joi por compatibilidad futura; el filtrado actual de lista opera sobre smartBatch, template, externalRefId y createdByChannel. |
externalRefId | string | No | Filtra por tu identificador externo de correlación. Máx. 200 caracteres. |
createdByChannel | string | No | Filtra por canal de origen: "portal", "api", "mcp", "x402" o "webhook". |
page | number | No | Número de página a recuperar. Indicar page habilita la salida paginada con total, limit, page y pages. |
limit | number | No | Cantidad máxima de elementos por página. Predeterminado 20 cuando se define page. |
sort | string | No | Campo y dirección de ordenamiento. Predeterminado "-updatedAt" cuando se define page. |
Notas sobre filtrado y paginación
- Parámetro
statuscompatible a futuro: Joi validastatuscontra"draft","pending","generating","generated","failed"y"sent", mientras que la consulta subyacente filtra actualmente porsmartBatch,template,externalRefIdycreatedByChannel. - Dos formas de respuesta
200: Envíapagesiempre que tu panel o tarea de sincronización necesitetotalypages; omitepagepara obtener un payload{ data: [...] }más simple.
Solicitud
- Node.js
- PHP
- Python
- Go
- cURL
import axios from "axios";
const run = async () => {
const { data } = await axios.get("https://api.verifik.co/v2/smart-reports", {
params: {
createdByChannel: "api",
externalRefId: "applicant-42",
page: 1,
limit: 20,
sort: "-updatedAt",
},
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
});
console.log(data);
};
run();
<?php
$query = http_build_query([
"createdByChannel" => "api",
"externalRefId" => "applicant-42",
"page" => 1,
"limit" => 20,
"sort" => "-updatedAt",
]);
$ch = curl_init("https://api.verifik.co/v2/smart-reports?" . $query);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Content-Type: application/json",
"Authorization: Bearer " . getenv("VERIFIK_JWT"),
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
import os
import requests
url = "https://api.verifik.co/v2/smart-reports"
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {os.getenv('VERIFIK_JWT')}",
}
params = {
"createdByChannel": "api",
"externalRefId": "applicant-42",
"page": 1,
"limit": 20,
"sort": "-updatedAt",
}
response = requests.get(url, params=params, headers=headers)
print(response.json())
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"os"
)
func main() {
params := url.Values{}
params.Set("createdByChannel", "api")
params.Set("externalRefId", "applicant-42")
params.Set("page", "1")
params.Set("limit", "20")
params.Set("sort", "-updatedAt")
req, _ := http.NewRequest("GET", "https://api.verifik.co/v2/smart-reports?"+params.Encode(), nil)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("VERIFIK_JWT"))
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
var out map[string]interface{}
json.NewDecoder(resp.Body).Decode(&out)
fmt.Println(out)
}
curl -X GET "https://api.verifik.co/v2/smart-reports?createdByChannel=api&externalRefId=applicant-42&page=1&limit=20&sort=-updatedAt" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $VERIFIK_JWT"
Respuesta
- 200 OK (Con page)
- 200 OK (Sin page)
- 401
- 403
- 409
- 422
{
"data": [
{
"_id": "6801a2b3c4d5e6f7a8b9c0d1",
"name": "Background Check - Applicant 42",
"status": "generated",
"template": {
"_id": "6801a2b3c4d5e6f7a8b9c0d2"
},
"smartBatch": {
"_id": "6801a2b3c4d5e6f7a8b9c0d3"
},
"client": {
"_id": "507f1f77bcf86cd799439013"
},
"externalRefId": "applicant-42",
"createdByChannel": "api",
"rowIndex": 0,
"createdAt": "2026-11-24T20:00:00.000Z",
"updatedAt": "2026-11-24T20:00:04.000Z"
}
],
"total": 1,
"limit": 20,
"page": 1,
"pages": 1
}
{
"data": [
{
"_id": "6801a2b3c4d5e6f7a8b9c0d1",
"name": "Background Check - Applicant 42",
"status": "generated",
"template": {
"_id": "6801a2b3c4d5e6f7a8b9c0d2"
},
"smartBatch": {
"_id": "6801a2b3c4d5e6f7a8b9c0d3"
},
"client": {
"_id": "507f1f77bcf86cd799439013"
},
"externalRefId": "applicant-42",
"createdByChannel": "api",
"rowIndex": 0,
"createdAt": "2026-11-24T20:00:00.000Z",
"updatedAt": "2026-11-24T20:00:04.000Z"
}
]
}
{
"message": "Unauthorized",
"code": "Unauthorized"
}
{
"message": "Shared x402 execution is forbidden on this endpoint",
"code": "Forbidden"
}
{
"message": "\"smartBatch\" must be a valid ObjectId",
"code": "MissingParameter"
}
{
"message": "UnprocessableEntity",
"code": "UnprocessableEntity"
}
Notas
GET /v2/smart-reportsincluye las referenciastemplate,smartBatchyclienten cadaSmartReportdevuelto.- Los valores de parámetros de consulta inválidos fallan la validación Joi con
409 MissingParameter. - Para inspeccionar un único reporte con los campos
downloadUrlyhtmlUrllistos para usar, utiliza Recuperar un Smart Report. - Para ejecutar un nuevo reporte de extremo a extremo sin gestionar registros de
SmartBatchySmartReportpor separado, utiliza Ejecutar un Smart Report.