IamBishal
FinTechFeatured

KYC & Verification API Platform

100+ verification APIs behind one key. Locked down by design.

Triaja's multi-tenant API platform for lenders, NBFCs and HR teams: identity, employment, credit, bank and business checks by API or bulk upload, with security enforced at every layer from the edge to the database.

Triaja API Services: the line '100+ verification APIs. One key. Locked down by design.' beside the customer portal running a bulk file, with notices that a key was refused from an unknown address and a batch resumed after a worker restart
Role
Architect and sole engineer
Status
Active
Type
Client platform · multi-tenant API SaaS

Overview

The problem it solves

Triaja sells verification as a service. Lenders, NBFCs, payroll and HR platforms call one API, or upload a file to one portal, to check a PAN, an employment history, a bank account, a credit report or a company, and Triaja routes each check to the right government source, bureau or registry. Customers sign one contract and integrate once; they never see the providers behind the platform. I built the first version as its sole engineer. Version 2 is the platform rebuilt around two things the business depends on: security that holds up to a bank's questionnaire, and volume, from steady API traffic to month-end files of lakhs of rows.

The catalogue holds more than 100 verification APIs across 15 families: identity documents, employment and EPFO, credit bureaus, bank accounts and payments, company and MCA data, business registrations, tax, DigiLocker, mobile and email, vehicle and FASTag, utility and property, address and geo, biometrics and document intelligence, professional bodies, and risk checks. They are normalised into one catalogue of canonical products with one request and response shape. Each product carries its data sensitivity and consent rule, and runs as a synchronous call, an asynchronous job or a multi-step OTP flow. Providers plug in as adapters, so a product can move to another provider, or fail over to a standby, without any change for customers.

Security is designed in, not added on. Every live API key is bound to an IP allowlist; the secret is 256 bits, shown once and stored only as a keyed hash, and the key carries a checksum so typos and random tokens are refused before any database lookup. Organisations choose a security tier: a bearer key with an allowlist, HMAC-signed requests that cannot be replayed, or signed and encrypted payloads with optional mutual TLS for banks. Tenant isolation is enforced twice, in the application and by row-level security in PostgreSQL. Personal fields are encrypted with per-organisation keys held in AWS KMS in Mumbai, searchable only through blind indexes, and masked in every screen and log. Staff sign in with passkeys over a VPN, sensitive actions need a fresh passkey check, money and access changes need a second approver, and every action lands in an append-only, hash-chained audit log. Consent and purpose are checked before every call, results are erased on a retention schedule, and deleting an organisation's key erases its data everywhere, backups included.

Volume is handled the same way. Bulk files in CSV or Excel are validated and previewed before anything runs or is charged, the whole batch is reserved up front, and each row becomes a job in a Postgres-backed work queue with its own idempotency key. A crashed worker resumes from the last row, a retry can never charge twice, and a fair-share cap per organisation keeps one bank's month-end file from slowing anyone else's real-time calls. Billing runs on a double-entry ledger with reservations and idempotency, so every call is charged exactly once and reconciles to the paisa.

The platform is a Java 25 and Spring Boot modular monolith with four runtime roles (edge API, BFF, worker and scheduler), PostgreSQL, Angular apps for customers and staff on a shared design system, Caddy with the Coraza WAF at the edge, and everything hosted in India.

Topics

  • API Security
  • Multi-tenant SaaS
  • Bulk Processing
  • KYC
  • Fintech
  • DPDP Compliance

Highlights

What makes it different

  • 100+ APIs, one integration

    Identity, employment, credit, bank, company, tax, DigiLocker and more in 15 families, with one key, one request shape and one response envelope.

  • Keys that are useless if stolen

    Every live key is bound to an IP allowlist, its secret is stored only as a keyed hash, and only the key ID ever appears in logs or screens.

  • Security tiers per customer

    Bearer key with allowlist, HMAC-signed requests that cannot be replayed, or signed and encrypted payloads with mutual TLS for banks.

  • Bulk files of lakhs of rows

    Validated and previewed first, reserved up front, one job per row, resumed after a crash and never charged twice.

  • Fair share under load

    A per-organisation cap on the work queue keeps a month-end batch from slowing other customers' real-time calls.

  • Isolation in the database

    Row-level security in PostgreSQL, per-organisation encryption keys and masked personal data for every role, including staff.

Features

What it can do

  • A catalogue of 100+ verification APIs as canonical products, each with its data sensitivity, consent rule and sync, async or multi-step mode
  • Provider adapters with safe failover: a standby is used only when a call is known not to have reached the first provider
  • API keys with a checksum, 256-bit secrets shown once, keyed-hash storage, scopes, per-key rate and spend limits, expiry and rotation with overlap
  • Mandatory IP allowlists on live keys, resolved from the TCP peer address so forwarded headers cannot be spoofed
  • Three security tiers: allowlisted bearer key, HMAC request signing with replay protection, and JWS-in-JWE payloads with optional mutual TLS
  • Bulk upload of CSV and Excel files with a validation preview, reservation of the whole batch, progress, retries and an encrypted results file
  • A Postgres-backed work queue with SKIP LOCKED claims, backoff, crash recovery and a fair-share cap per organisation
  • Idempotency keys on every write and a double-entry ledger, so each call is charged exactly once
  • Consent and purpose checked before every call, retention-based erasure, and crypto-shredding with per-organisation AWS KMS keys
  • Encrypted reports with one-time download links, and signed webhooks that carry no personal data
  • Staff console with passkeys over VPN, step-up checks, maker-checker approvals, just-in-time unmasking and a hash-chained audit log
  • Edge protection with Caddy and the Coraza WAF: TLS 1.3, no plain HTTP for the API, OWASP rules and rate limits

Screens

A look inside

01API catalogue: 100+ APIs, one request shape
02Bulk upload: validated, resumable, charged once
03API keys, IP allowlists and security tiers
04Live traffic, fair-share queue and failover
05Masked request log, consent and one-time report
06Security centre: maker-checker and step-up

Tech stack

Built with

Platform
  • Java 25
  • Spring Boot
  • Spring Modulith
  • Spring Security
Apps
  • Angular
  • Nx monorepo
  • Customer portal
  • Staff console
Data
  • PostgreSQL
  • Row-level security
  • Blind indexes
  • Partitioned request logs
Async and bulk
  • Postgres work queue
  • Idempotency keys
  • Double-entry ledger
  • Signed webhooks
Security
  • AWS KMS
  • Passkeys (WebAuthn)
  • HMAC signing
  • JWS and JWE
  • sops
Edge and hosting
  • Caddy
  • Coraza WAF
  • TLS 1.3
  • DigitalOcean Bengaluru
  • Amazon S3 Mumbai
Observability
  • OpenTelemetry
  • Grafana Cloud
  • Audit trail

Architecture

How it fits together

A modular monolith where every request is authenticated, allowlisted and scoped before business logic runs. Bulk rows and async products flow through a Postgres work queue; providers sit behind adapters and are never exposed to customers.

Challenges

Hard problems along the way

  1. Security a bank will sign off

    Allowlisted keys, signed or encrypted requests, database-level tenant isolation, per-organisation encryption keys, passkeys and maker-checker for staff, mapped to the OWASP API Top 10.

  2. Large files without starving live traffic

    Every bulk row is its own queued job under a fair-share cap per organisation, so a file of lakhs of rows and real-time API calls run side by side.

  3. Never charge twice

    Idempotency keys, reservations and a double-entry ledger make retries, crashes and provider timeouts safe for the customer's balance.

  4. Many providers, one contract

    Each provider has its own auth, encryption and error codes. Adapters normalise them into one response shape and fail over only when it is safe.

Results

The impact

Verification APIs behind one key, 15 families
100+
Sustained throughput (design target)
1k RPS
Burst throughput (design target)
3k RPS
Bulk rows a day (design target)
5M rows

What's next

On the roadmap

  1. SDKs for Java, Node, Python and .NET that handle every security tier
  2. Hosted consent journeys for credit and other highly sensitive products
  3. ISO 27001 and ISO 27701 certification and an annual DPDP audit report
  4. Postpaid credit lines for enterprise customers
  5. More products from the remaining catalogue waves, after legal review where needed

Bishal SahaLet's build together

Have a system to design, or an AI feature to get right?

Tell me about the problem. You'll get a clear, honest view of the best way forward.

  • Reply within 24 hoursOn business days, with my honest view and a next step.
  • Accepting select engagementsArchitecture, AI features and full builds.
  • Remote, worldwideWorking with startups, SMEs and enterprises.