SmartReports
SmartReports turns multi-step Verifik catalog verifications (SmartCheck + SmartBatch) into structured HTML and PDF dossiers with automated Verification Scores, email delivery, and real-time webhooks. You can design and inspect reports in the Smart-Agent portal, trigger end-to-end runs from your backend over the Headless REST API, or connect autonomous assistants via the Model Context Protocol (MCP).
Every SmartReports, Template, Configuration, Preset, and Batch endpoint requires your own per-client Verifik Bearer JWT (Authorization: Bearer <VERIFIK_JWT>). Shared x402 service-account execution is strictly blocked (403 Forbidden), and credits are billed directly against your Verifik account balance per executed catalog step.
Architecture & Building Blocks
SmartReports separates what checks to run, how results look, and how each execution is delivered:
flowchart LR
P["1. Report Presets\n/v2/smart-batch-presets"] -->|"clone via POST .../{systemKey}/clone"| C["2. Batch Configurations\n/v2/batch-configurations"]
C -->|"preferredReportTemplate +\ninput-schema"| T["3. Report Templates\n/v2/smart-report-templates"]
C -->|"steps & notifications"| R["4. Batches & SmartReports\nPOST /v2/smart-reports/run\n/v2/smart-batches & /v2/smart-reports"]
T -->|"theme, sections & scoreProfile"| R
R -->|"outputs"| O["PDF + HTML + Verification Score\nEmail Delivery + Webhooks"]
| Building Block | Primary Endpoints | Purpose |
|---|---|---|
| Report Presets | GET /v2/smart-batch-presetsPOST /v2/smart-batch-presets/{systemKey}/clone | Built-in Verifik country and domain bundles (citizen, company, vehicle; essential or comprehensive tier) with pre-wired verification steps, input schemas, and themed templates. |
| Batch Configurations | GET / POST / PUT / DELETE /v2/batch-configurationsGET /v2/batch-configurations/{id}/input-schema | Reusable recipe storing ordered catalog steps, step chaining ({{results.N.*}}), mergeStrategy (sequential, parallel-independent, parallel-with-fallback), preferredReportTemplate, and notification settings (webhookUrl, emailOnCompletion). |
| Report Templates | GET / POST / PUT / DELETE /v2/smart-report-templatesPOST /v2/smart-report-templates/generate-layoutPOST /v2/smart-report-templates/preview-htmlPOST /v2/smart-report-templates/introspect | Visual layout definition (sections[], reportTheme, custom fonts, watermarks, digital signature, PDF password protection, and score configuration). System templates (type: "System") are read-only; client templates (type: "client") are fully editable. |
| Batches & SmartReports | POST /v2/smart-reports/run/v2/smart-batches/v2/smart-reports | Executes verification steps server-side via FeatureRunner, computes the row's verificationScore, renders HTML and PDF, emails recipients, and dispatches webhook events. |
How the Pieces Connect
- Discover or clone a preset with
GET /v2/smart-batch-presetsandPOST /v2/smart-batch-presets/{systemKey}/clone, or build a customBatchConfigurationfrom any catalog endpoints in your account. - Inspect required inputs via
GET /v2/batch-configurations/{id}/input-schema(or the preset'sinputSchemaobject) to obtainrequiredFields,optionalFields,jsonSchema,exampleInput, andestimatedCreditsPerRow. - Customize a template in
/v2/smart-report-templatesusing built-in themes, AI-generated layouts (POST /v2/smart-report-templates/generate-layout), data-palette inspection (POST /v2/smart-report-templates/introspect), and zero-credit live HTML previews (POST /v2/smart-report-templates/preview-html). - Execute and deliver either in one headless call via
POST /v2/smart-reports/run(withsystemKeyorbatchConfigurationId), or at high volume via/v2/smart-batchesand/v2/smart-batches/from-filefollowed by/v2/smart-reports/{id}/generate,/download,/html, and/send-email.
Three Integration Surfaces
| Surface | Entry Point | Best For |
|---|---|---|
| Smart-Agent Portal | https://ai.verifik.co | Interactive template builder, preset gallery, batch monitoring, report viewer, and the built-in Developer & AI Agent Kit (API & AI Agent / API / MCP). |
| Headless REST API | https://api.verifik.co/v2/...https://ai.verifik.co/v2/... | Backend services, automated KYC/KYB/fleet pipelines, webhook-driven PDF generation, and high-volume file batches without any browser UI. |
| Streamable HTTP MCP Server | https://ai.verifik.co/mcphttps://ai.verifik.co/api/mcp | Autonomous AI agents (Claude Desktop, Cursor, Windsurf, ChatGPT Agents, and custom JSON-RPC 2.0 MCP clients) calling the 10 smart_report_* tools directly. |
/v2/... paths on api.verifik.co and ai.verifik.coYou can call /v2/smart-reports/*, /v2/smart-report-templates/*, /v2/batch-configurations/*, /v2/smart-batches/*, and /v2/smart-batch-presets/* against https://api.verifik.co directly or through the Smart-Agent proxy at https://ai.verifik.co. Both enforce identical per-client JWT authentication.
Authentication & Billing Model
Per-Client Bearer JWT Enforcement
Every SmartReports, Template, Batch Configuration, Preset, and SmartBatch endpoint is tenant-scoped and requires a caller-supplied Verifik Bearer JWT:
Authorization: Bearer <VERIFIK_JWT>
- Smart-Agent proxy guard (
smartReportAuthGuard): Any request targeting/v2/smart-reports*,/v2/smart-report-templates*,/v2/batch-configurations*,/v2/smart-batches*, or/v2/smart-batch-presets*(or/api/...//api/proxyequivalents) without a valid per-client Bearer JWT is rejected before x402 payment handling with HTTP403 Forbidden:
{
"code": "Forbidden",
"message": "SmartReports, SmartReportTemplates, BatchConfigurations, and SmartBatches require your own per-client Verifik Bearer JWT. They are not available through the shared x402 account."
}
- MCP tenant isolation: Discovery methods (
initialize,ping,notifications/initialized,tools/list) work without credentials, whiletools/callstrictly requires a per-clientAuthorization: Bearer <VERIFIK_JWT>header and returns HTTP401(JSON-RPC-32001) if missing or if a shared service token is supplied. - No
x-payment-infoon SmartReports routes: Inhttps://ai.verifik.co/openapi.json, SmartReports routes usebearerAuthsecurity rather than pay-per-call x402 headers.
Credit-Based Billing
- Catalog step billing: Credits are deducted from your Verifik client account balance when verification steps actually execute against catalog sources (tracked on the batch via
creditsSpent). - Upfront estimates:
GET /v2/smart-batch-presetsandGET /v2/batch-configurations/{id}/input-schemareturnestimatedCreditsPerRowbefore any lookup runs. - Zero-credit design & retrieval actions: Listing presets or templates, inspecting schemas, calling
/introspect,/preview-html,/theme-starters,/score-profiles,/simulated-responses, retrieving/v2/smart-reports/{id}/html, downloading PDFs, and sending report emails do not charge verification credits. - Account entitlement check: Before running a batch or
POST /v2/smart-reports/run, Verifik checks that every enabled step endpoint is enabled in your client account (returning409 Conflictwithendpoints_not_in_accountif any step is unavailable).
Verification Score, Themes & PDF Engines
Built-In Report Themes (reportTheme.id)
SmartReports includes 4 themed HTML/PDF design systems configured via reportTheme.id (with optional overrides in reportTheme.tokens for brand colors, typography, spacing, logoText, and logoUrl):
| Theme ID | Alias | Visual Style | Default Palette |
|---|---|---|---|
premium_dark | — (default) | Dark navy cover (#0b1730), warm stone body pages (#f7f5f2), crisp white cards | Ink #122033, Accent #c4b5fd, Mark #1e3a5f |
light_cards | smart_enroll_v2 | High-contrast white pages (#ffffff) with soft light cards (#f3f5f1) and pill chips | Ink #0e0f0c, Accent #7145d6, Mark #163300 |
editorial | — | Warm paper surface (#fffdf8), serif display titles (Noto Serif), uppercase tracked labels | Ink #1b1a17, Accent #7145d6, Hairline borders |
dashboard | — | Clean white canvas with structured metric cards (#f6f7fb) and compact radius (12px) | Ink #111827, Accent #7145d6, Soft violet highlights |
Templates saved with reportTheme: "smart_enroll_v2" or reportTheme.id: "smart_enroll_v2" automatically resolve to light_cards at render time.
Verification Score Profiles (scoreProfile)
When scoring is enabled (score: true or automatically enabled by a themed template), SmartReports normalizes each executed verification step into a 0–1 score (score with 4 decimal places and score100 from 0–100), evaluates knockout rules and coverage (minimum 90% for approve), and produces a verdict:
approve— weighted score0.90–1.00, coverage>= 90%, all critical checks answeredreview— weighted score0.70–0.89(or non-knockout review findings)reject— weighted score< 0.70or an armed knockout rule triggeredpending— a critical check did not answer (for example upstream timeout/5xx) or coverage< 90%
Ten built-in score profiles are supported (query GET /v2/smart-report-templates/score-profiles for live IDs and labels):
| Profile ID | Label | Aliases | Category Weights (100% total) |
|---|---|---|---|
cabify_driver (default) | Driver onboarding | driver, cabify | records (25), driving (25), identity (15), biometrics (15), watchlists (10), vehicle (10) |
kyc | Generic KYC | generic_kyc | identity (25), biometrics (25), watchlists (25), records (20), contact (5) |
kyb | KYB | — | company (45), watchlists (25), identity (15), records (15) |
fleet | Vehicle / fleet | vehicle | vehicle (60), driving (15), identity (15), watchlists (10) |
vehicle_purchase | Vehicle purchase / dealer | dealer | vehicle (70), identity (15), watchlists (10), driving (5) |
identity_lookup | Identity only | identity_only | identity (100) |
background_check | Background screening | screening | records (45), watchlists (25), identity (20), company (10) |
lending | Lending | credit | identity (40), records (25), supporting (25), driving (10) |
healthcare_professional | Health professional | health_professional | supporting (55), identity (25), watchlists (20) |
biometrics | Biometrics | face | biometrics (70), identity (30) |
PDF Rendering Engines: puppeteer vs pdfkit
| Engine | Behavior | Features Supported |
|---|---|---|
puppeteer (default) | Renders full HTML/CSS through a pooled headless Chromium instance. | All 4 report themes, SVG score gauges & charts (pie/bar), dynamic dataTable & keyValueGrid layouts, custom fonts, image/text watermarks, signature overlays, and PDF password encryption. |
pdfkit | Accepted in templates and API requests for backward compatibility, and routed through the HTML/Puppeteer compatibility shim (pdf-pdfkit.service.js). | Existing templates configured with pdfEngine: "pdfkit" automatically benefit from full table rendering, watermarks, and signatures without degraded placeholders. |
Documentation Sections
Explore the SmartReports guides and API reference sections:
- Guides & Integration
- Headless API Guide — One-shot sync/async execution, webhooks, polling, custom recipes, and error handling without the UI.
- MCP & AI Agents — Streamable HTTP MCP server (
https://ai.verifik.co/mcp), all 10smart_report_*tools, OpenAPI discovery, and the in-app Developer & AI Agent Kit. - SmartReports Webhooks — All 6
smart_batch_*webhook events, payload schemas, URL resolution order, and retry schedule.
- Reports API
- Run a Smart Report (
POST /v2/smart-reports/run) — End-to-end headless execution. - List Smart Reports (
GET /v2/smart-reports) - Create a Smart Report (
POST /v2/smart-reports) - Retrieve a Smart Report (
GET /v2/smart-reports/{id}) - Update a Smart Report (
PUT /v2/smart-reports/{id}) - Delete a Smart Report (
DELETE /v2/smart-reports/{id}) - Generate Smart Report PDF (
POST /v2/smart-reports/{id}/generate) - Download Smart Report PDF (
GET /v2/smart-reports/{id}/download) - Retrieve Smart Report HTML (
GET /v2/smart-reports/{id}/html) - Send Smart Report by Email (
POST /v2/smart-reports/{id}/send-email)
- Run a Smart Report (
- Templates API
- List report templates (
GET /v2/smart-report-templates) - Create a report template (
POST /v2/smart-report-templates) - Retrieve a report template (
GET /v2/smart-report-templates/{id}) - Update a report template (
PUT /v2/smart-report-templates/{id}) - Delete a report template (
DELETE /v2/smart-report-templates/{id}) - Generate template layout (
POST /v2/smart-report-templates/generate-layout) - Preview template HTML (
POST /v2/smart-report-templates/preview-html) - Introspect sample data (
POST /v2/smart-report-templates/introspect) - List theme starters (
GET /v2/smart-report-templates/theme-starters) - List score profiles (
GET /v2/smart-report-templates/score-profiles) - List simulated responses (
GET /v2/smart-report-templates/simulated-responses) - Retrieve a simulated response (
GET /v2/smart-report-templates/simulated-responses/{code}) - Send template sample (
POST /v2/smart-report-templates/{id}/send-sample) - Download template sample (
POST /v2/smart-report-templates/{id}/download-sample)
- List report templates (
- Presets & Configurations API
- List report presets (
GET /v2/smart-batch-presets) - Clone a report preset (
POST /v2/smart-batch-presets/{systemKey}/clone) - List batch configurations (
GET /v2/batch-configurations) - Create a batch configuration (
POST /v2/batch-configurations) - Retrieve a batch configuration (
GET /v2/batch-configurations/{id}) - Retrieve configuration input schema (
GET /v2/batch-configurations/{id}/input-schema) - Update a batch configuration (
PUT /v2/batch-configurations/{id}) - Delete a batch configuration (
DELETE /v2/batch-configurations/{id})
- List report presets (
- Batch Execution API
- List Smart Batches (
GET /v2/smart-batches) - Create a Smart Batch (
POST /v2/smart-batches) - Create a Smart Batch from a file (
POST /v2/smart-batches/from-file) - Retrieve a Smart Batch (
GET /v2/smart-batches/{id}) - Update a Smart Batch (
PUT /v2/smart-batches/{id}) - Delete a Smart Batch (
DELETE /v2/smart-batches/{id}) - SmartBatch — UI wizard, Async vs Sync modes, and dashboard tracking.
- Call endpoints as queue (async) — Single-row
type=queueAPI integration onhttps://async.verifik.co.
- List Smart Batches (