Skip to main content

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).

Tenant isolation and per-client authentication

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 BlockPrimary EndpointsPurpose
Report PresetsGET /v2/smart-batch-presets
POST /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 ConfigurationsGET / POST / PUT / DELETE /v2/batch-configurations
GET /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 TemplatesGET / POST / PUT / DELETE /v2/smart-report-templates
POST /v2/smart-report-templates/generate-layout
POST /v2/smart-report-templates/preview-html
POST /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 & SmartReportsPOST /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​

  1. Discover or clone a preset with GET /v2/smart-batch-presets and POST /v2/smart-batch-presets/{systemKey}/clone, or build a custom BatchConfiguration from any catalog endpoints in your account.
  2. Inspect required inputs via GET /v2/batch-configurations/{id}/input-schema (or the preset's inputSchema object) to obtain requiredFields, optionalFields, jsonSchema, exampleInput, and estimatedCreditsPerRow.
  3. Customize a template in /v2/smart-report-templates using 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).
  4. Execute and deliver either in one headless call via POST /v2/smart-reports/run (with systemKey or batchConfigurationId), or at high volume via /v2/smart-batches and /v2/smart-batches/from-file followed by /v2/smart-reports/{id}/generate, /download, /html, and /send-email.

Three Integration Surfaces​

SurfaceEntry PointBest For
Smart-Agent Portalhttps://ai.verifik.coInteractive template builder, preset gallery, batch monitoring, report viewer, and the built-in Developer & AI Agent Kit (API & AI Agent / API / MCP).
Headless REST APIhttps://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 Serverhttps://ai.verifik.co/mcp
https://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.
Same /v2/... paths on api.verifik.co and ai.verifik.co

You 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/proxy equivalents) without a valid per-client Bearer JWT is rejected before x402 payment handling with HTTP 403 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, while tools/call strictly requires a per-client Authorization: Bearer <VERIFIK_JWT> header and returns HTTP 401 (JSON-RPC -32001) if missing or if a shared service token is supplied.
  • No x-payment-info on SmartReports routes: In https://ai.verifik.co/openapi.json, SmartReports routes use bearerAuth security 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-presets and GET /v2/batch-configurations/{id}/input-schema return estimatedCreditsPerRow before 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 (returning 409 Conflict with endpoints_not_in_account if 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 IDAliasVisual StyleDefault Palette
premium_dark— (default)Dark navy cover (#0b1730), warm stone body pages (#f7f5f2), crisp white cardsInk #122033, Accent #c4b5fd, Mark #1e3a5f
light_cardssmart_enroll_v2High-contrast white pages (#ffffff) with soft light cards (#f3f5f1) and pill chipsInk #0e0f0c, Accent #7145d6, Mark #163300
editorial—Warm paper surface (#fffdf8), serif display titles (Noto Serif), uppercase tracked labelsInk #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
Legacy theme alias

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 score 0.90–1.00, coverage >= 90%, all critical checks answered
  • review — weighted score 0.70–0.89 (or non-knockout review findings)
  • reject — weighted score < 0.70 or an armed knockout rule triggered
  • pending — 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 IDLabelAliasesCategory Weights (100% total)
cabify_driver (default)Driver onboardingdriver, cabifyrecords (25), driving (25), identity (15), biometrics (15), watchlists (10), vehicle (10)
kycGeneric KYCgeneric_kycidentity (25), biometrics (25), watchlists (25), records (20), contact (5)
kybKYB—company (45), watchlists (25), identity (15), records (15)
fleetVehicle / fleetvehiclevehicle (60), driving (15), identity (15), watchlists (10)
vehicle_purchaseVehicle purchase / dealerdealervehicle (70), identity (15), watchlists (10), driving (5)
identity_lookupIdentity onlyidentity_onlyidentity (100)
background_checkBackground screeningscreeningrecords (45), watchlists (25), identity (20), company (10)
lendingLendingcreditidentity (40), records (25), supporting (25), driving (10)
healthcare_professionalHealth professionalhealth_professionalsupporting (55), identity (25), watchlists (20)
biometricsBiometricsfacebiometrics (70), identity (30)

PDF Rendering Engines: puppeteer vs pdfkit​

EngineBehaviorFeatures 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.
pdfkitAccepted 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: