Listar temas iniciais
Obtenha os templates iniciais com tema integrados da Verifik, opcionalmente filtrados por theme. Cada modelo inicial inclui sections, reportTheme, sampleData, propriedades de layout de página e cores pré-configuradas para que você possa lançar designs de relatório prontos para produção sem montar árvores de seções do zero.
Em fluxos de onboarding headless e agentes de IA, chame este endpoint para escolher um ponto de partida visual selecionado, pré-visualizá-lo imediatamente via Pré-visualizar HTML do template, personalizar cores da marca ou logotipos e salvar o seu próprio template editável via Criar um template de relatório.
Endpoint
GET https://api.verifik.co/v2/smart-report-templates/theme-starters
O proxy do Smart-Agent (https://ai.verifik.co) expõe os mesmos caminhos /v2/... e exige o seu próprio cabeçalho Authorization: Bearer <VERIFIK_JWT>.
Cabeçalhos
| Nome | Valor |
|---|---|
| Accept | application/json |
| Authorization | Bearer <VERIFIK_JWT> |
Parâmetros
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
theme | string | Não | Filtro opcional de tema: "premium_dark", "light_cards", "editorial", "dashboard" ou "smart_enroll_v2" (alias de "light_cards"; recomenda-se usar o canônico "light_cards"). |
Requisição
- Node.js
- PHP
- Python
- Go
- cURL
const fetch = require("node-fetch");
async function run() {
const res = await fetch(
"https://api.verifik.co/v2/smart-report-templates/theme-starters?theme=light_cards",
{
method: "GET",
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
}
);
console.log(await res.json());
}
run();
<?php
$ch = curl_init("https://api.verifik.co/v2/smart-report-templates/theme-starters?theme=light_cards");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Accept: 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-report-templates/theme-starters"
headers = {
"Accept": "application/json",
"Authorization": f"Bearer {os.getenv('VERIFIK_JWT')}",
}
r = requests.get(url, headers=headers, params={"theme": "light_cards"})
print(r.json())
package main
import (
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
url := "https://api.verifik.co/v2/smart-report-templates/theme-starters?theme=light_cards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Set("Accept", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("VERIFIK_JWT"))
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
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-report-templates/theme-starters?theme=light_cards" \
-H "Accept: application/json" \
-H "Authorization: Bearer $VERIFIK_JWT"
Resposta
- 200
- 401
- 409
{
"data": [
{
"name": "Light Cards KYC Starter",
"description": "Clean card-based background verification report with score gauge",
"type": "System",
"systemKey": "starter_light_cards_kyc",
"country": "CO",
"category": "citizen",
"tier": "comprehensive",
"pageSize": "A4",
"orientation": "portrait",
"pdfEngine": "puppeteer",
"primaryColor": "#4F46E5",
"pageBackgroundColor": "#ffffff",
"sections": [
{
"id": "sec-cover",
"type": "coverPage",
"order": 0,
"label": "Verification Summary"
},
{
"id": "sec-score",
"type": "scoreGauge",
"order": 1,
"label": "Verification Score"
}
],
"reportTheme": {
"id": "light_cards",
"scoreEnabled": true,
"scoreProfile": "kyc",
"scoreScale": "percent"
},
"sampleData": {
"batchName": "KYC Sample",
"rowIndex": 0,
"inputData": {
"documentType": "CC",
"documentNumber": "1020304050"
},
"results": {}
}
}
]
}
{
"message": "Unauthorized",
"code": "Unauthorized"
}
{
"message": "\"theme\" must be one of [premium_dark, light_cards, editorial, dashboard, smart_enroll_v2]",
"code": "MissingParameter"
}
Notas
"smart_enroll_v2"é aceito como alias para"light_cards", embora seja recomendado filtrar pelo ID de tema canônico"light_cards".- Os itens iniciais retornados aqui trazem
type: "System"para referência. Ao salvar uma cópia personalizada via Criar um template de relatório, envie apenas seunamee os campos de design (sections,reportTheme,sampleData, cores e configurações de PDF).