Listar Smart Reports
Liste os registros SmartReport pertencentes ao cliente autenticado. Os resultados populam template, smartBatch e client, e podem ser filtrados por smartBatch, template, externalRefId e createdByChannel, com paginação e ordenação opcionais.
Quando você passa page, a resposta inclui metadados de paginação (total, limit, page e pages). Omita page para receber a lista correspondente dentro de { data: [...] } sem metadados de paginação.
Endpoint
GET https://api.verifik.co/v2/smart-reports
Este endpoint também pode ser acessado pelo proxy do Smart-Agent em https://ai.verifik.co/v2/smart-reports usando o seu próprio cabeçalho Authorization: Bearer <VERIFIK_JWT> por cliente. A execução compartilhada via x402 é bloqueada com 403 Forbidden.
Cabeçalhos
| Nome | Valor | Descrição |
|---|---|---|
Content-Type | application/json | Formato do payload da requisição. |
Authorization | Bearer <VERIFIK_JWT> | JWT com escopo de cliente (authUser.clientId). |
Parâmetros
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
smartBatch | string | Não | Filtra relatórios vinculados a um ObjectId de SmartBatch específico. |
template | string | Não | Filtra relatórios vinculados a um ObjectId de template específico. |
status | string | Não | Valores permitidos: "draft", "pending", "generating", "generated", "failed", "sent". Aceito pela validação Joi para compatibilidade futura; a filtragem atual da listagem opera sobre smartBatch, template, externalRefId e createdByChannel. |
externalRefId | string | Não | Filtra pelo seu identificador externo de correlação. Máximo de 200 caracteres. |
createdByChannel | string | Não | Filtra pelo canal de origem: "portal", "api", "mcp", "x402" ou "webhook". |
page | number | Não | Número da página a recuperar. Fornecer page habilita saída paginada com total, limit, page e pages. |
limit | number | Não | Quantidade máxima de itens por página. Assume 20 como padrão quando page é definido. |
sort | string | Não | Campo e direção de ordenação. Assume "-updatedAt" como padrão quando page é definido. |
Notas sobre filtragem e paginação
- Parâmetro
statuscompatível com futuras versões: O Joi validastatuscontra"draft","pending","generating","generated","failed"e"sent", enquanto a consulta de listagem subjacente atualmente filtra porsmartBatch,template,externalRefIdecreatedByChannel. - Dois formatos de resposta
200: Enviepagesempre que seu dashboard ou tarefa de sincronização precisar detotalepages; omitapagepara obter um payload{ data: [...] }mais simples.
Requisição
- 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"
Resposta
- 200 OK (Com page)
- 200 OK (Sem 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-reportspopulatemplate,smartBatcheclientem cadaSmartReportretornado.- Valores inválidos de parâmetros de consulta falham na validação Joi com
409 MissingParameter. - Para inspecionar um único relatório com os campos prontos
downloadUrlehtmlUrl, use Consultar um Smart Report. - Para executar um novo relatório de ponta a ponta sem gerenciar registros
SmartBatcheSmartReportseparadamente, use Executar um Smart Report.