VeriSec

Identity, documents and payments, in one API.

Face, documents, MRZ, NFC, AML, cheques and cards. One key, 69 endpoints, seven official SDKs.

Quickstart

First call in 3 steps

Time to first response ≈ 2 minutes
1

Create a project

Sign up and name your project. Every new project starts with free credits, no card and no approval.

2

Copy your test key

Portal → API Keys. Test keys start with sk_test_ and are sent straight as a bearer token.

3

Make your first request

Run the snippet below. It reads a passport's machine-readable zone and checks every check digit.

read a passport MRZ
curl -X POST https://verisec.mmose.me/v1/mrz/parse \
  -H "Authorization: Bearer sk_test_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "lines": [
      "P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<",
      "L898902C36UTO7408122F1204159ZE184226B<<<<<10"
    ]
  }'
Products as APIs

Nine products, one key.

Code examples

Verify a face, in your language.

curl -X POST https://verisec.mmose.me/v1/face/verify \
  -H "Authorization: Bearer $VERISEC_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{
    \"image1\": \"$(base64 -w0 selfie.jpg)\",
    \"image2\": \"$(base64 -w0 id-photo.jpg)\",
    \"threshold\": 0.8
  }"
response
{
  "ok": true,
  "request_id": "req_cd1d47ea5bf34b7a",
  "latency_ms": 2362,
  "data": {
    "similarity": 0.9984,
    "score": 0.2399,
    "match": true,
    "threshold": 0.75,
    "compared": [
      { "image": "image1", "roi": [182, 241, 173, 220] },
      { "image": "image2", "roi": [940, 245, 176, 216] }
    ]
  }
}
SDKs & libraries

Official clients, generated from the same contract.

Server SDKs

One per language, version 1.0.0, generated from the API spec: typed requests and answers, images from files, safe retries that never charge a call twice, and webhook verification.

Python

Live · PyPI
pip install verisec
from verisec import VeriSec
client = VeriSec()
client.face.verify(image1="a.jpg", image2="b.jpg")

Node.js

Live · npm
npm install @veriseclabs/node
import { VeriSec } from "@veriseclabs/node";
const client = new VeriSec();
await client.bin.lookup("424242");

Go

Live · Go
GitHub
go get github.com/mosesmmoisebidth/verisec-go
import "github.com/mosesmmoisebidth/verisec-go"
client, _ := verisec.New(key)
client.Bin.Lookup(ctx, "424242")

Java

Live · Maven Central
implementation("io.github.mosesmmoisebidth:verisec-java:1.0.0")
import dev.verisec.VeriSec;
VeriSec client = VeriSec.builder().build();
client.bin().lookup("424242");

.NET

Live · NuGet
GitHub
dotnet add package VeriSec
using VeriSec;
var client = new VeriSecClient();
await client.Bin.LookupAsync("424242");

PHP

Live · Packagist
GitHub
composer require verisec/verisec-php
use VeriSec\Client;
$client = new Client($key);
$client->bin->lookup('424242');

Ruby

Live · RubyGems
gem install verisec
require "verisec"
client = VeriSec::Client.new
client.bin.lookup("424242")

Mobile capture SDKs

On-device capture with quality checks before an image leaves the handset. React Native, Android and Flutter are live; iOS is publishing soon.

React Native

Live · npm
npm install @veriseclabs/capture-react-native
import { VeriSecCapture } from "@veriseclabs/capture-react-native";
const result = await VeriSecCapture.start({
  steps: ["id-front", "id-back", "selfie"],
});

Android · Kotlin

Live · JitPack
GitHub
implementation("com.github.mosesmmoisebidth:verisec-kotlin:0.1.0")
// settings.gradle: maven { url "https://jitpack.io" }
val capture = VeriSecCapture(context)
capture.start(listOf(Step.ID_FRONT, Step.SELFIE))

Flutter

Live · pub.dev
flutter pub add verisec_api
import 'package:verisec_api/verisec_api.dart';
final result = await VeriSecCapture.start(
  steps: [Step.idFront, Step.selfie],
);

iOS · Swift

Publishing soon
pod 'VeriSecCapture'
import VeriSecCapture
let capture = VeriSecCapture()
capture.start(steps: [.idFront, .selfie])
Authentication & environments

Two key types, one code path.

Test

sk_test_…

A test key is sent straight as Authorization: Bearer. It runs against the real engines at https://verisec.mmose.me, with your free credits and no live data.

Every endpoint is available. Refused calls are never charged.

Live

ak_live_…

A live key is paired with a client id and secret. Your SDK exchanges them at POST /v2/oauth/token for a short-lived bearer token and renews it for you; the long-lived key is never sent on a request.

Per-key rate limits, an optional spend cap, and an IP allow-list.

Keys are created in the console, scoped per project, and shown once. Each call is charged in credits only when it succeeds; a refused call (no credits, no permission, rate limited) is free.

Test data

Try the APIs with a test key.

A test key runs against the real engines for free. Use the Playground for the image APIs, or send one of these ready-made inputs straight to the live endpoints.

Sample cheques and cards

Three cheques and three cards, run through our engines. Each image shows every text region found; on cheques the MICR line the read returned is outlined in amber. Open one in the Playground to try it yourself.

US bank cheque, with every detected text region outlinedCheque25 text regions

US bank cheque

read
// POST /v2/cheques/micr-line
{
  "object": "micr_line",
  "status": "read",
  "lines_found": 1,
  "processing_ms": 536,
  "line": {
    "text": "C370694CA102000979A68008192429291C",
    "printed": "⑈370694⑈⑆102000979⑆68008192429291⑈",
    "font": "E-13B",
    "confidence": 88,
    "min_char_confidence": 88,
    "box": [
      163,
      444,
      630,
      444,
      630,
      516,
      163,
      516
    ]
  },
  "fields": [
    {
      "name": "Auxiliary On-Us",
      "value": "370694"
    },
    {
      "name": "EPC",
      "value": ""
    },
    {
      "name": "Routing",
      "value": "102000979"
    },
    {
      "name": "Account",
      "value": "68008192429291"
    },
    {
      "name": "Check number",
      "value": ""
    },
    {
      "name": "Amount",
      "value": ""
    }
  ],
  "template": "us_business",
  "routing": {
    "valid": true,
    "checksum_pass": true,
    "check_digit": 9,
    "expected_check_digit": 9,
    "prefix_valid": true,
    "institution_type": "bank",
    "federal_reserve_district": "Kansas City"
  }
}
Open in Playground
Brazilian cheque (CMC-7), with every detected text region outlinedCheque52 text regions

Brazilian cheque (CMC-7)

read
// POST /v2/cheques/micr-line
{
  "object": "micr_line",
  "status": "read",
  "lines_found": 1,
  "processing_ms": 1735,
  "line": {
    "text": "H10443928H0183012765I700600004022F",
    "printed": "|10443928|0183012765|700600004022|",
    "font": "CMC-7",
    "confidence": 90.3,
    "min_char_confidence": 90.3,
    "box": [
      0,
      473,
      1168,
      473,
      1168,
      540,
      0,
      540
    ]
  },
  "fields": [
    {
      "name": "Bank",
      "value": "104"
    },
    {
      "name": "Agency",
      "value": "4392"
    },
    {
      "name": "DV2",
      "value": "8"
    },
    {
      "name": "Bank code",
      "value": "018"
    },
    {
      "name": "Check number",
      "value": "301276"
    },
    {
      "name": "Typification",
      "value": "5"
    },
    {
      "name": "DV1",
      "value": "7"
    },
    {
      "name": "Account",
      "value": "0060000402"
    },
    {
      "name": "DV3",
      "value": "2"
    }
  ],
  "template": "br_cmc7"
}
Open in Playground
Canadian certificate (E-13B), with every detected text region outlinedCheque12 text regions

Canadian certificate (E-13B)

read
// POST /v2/cheques/micr-line
{
  "object": "micr_line",
  "status": "read",
  "lines_found": 1,
  "processing_ms": 503,
  "line": {
    "text": "C35141075CA97832D002A02349D15C",
    "printed": "⑈35141075⑈⑆97832⑉002⑆02349⑉15⑈",
    "font": "E-13B",
    "confidence": 89.8,
    "min_char_confidence": 89.8,
    "box": [
      185,
      492,
      801,
      492,
      801,
      553,
      185,
      553
    ]
  },
  "fields": [
    {
      "name": "Auxiliary On-Us",
      "value": ""
    },
    {
      "name": "EPC",
      "value": ""
    },
    {
      "name": "Routing",
      "value": ""
    },
    {
      "name": "Account",
      "value": ""
    },
    {
      "name": "Check number",
      "value": ""
    },
    {
      "name": "Amount",
      "value": ""
    }
  ],
  "standard": {
    "id": "ca_cpa_006",
    "name": "Canada (Payments Canada Standard 006)",
    "country": "CA",
    "fields": [
      {
        "name": "Serial Number",
        "value": "35141075"
      },
      {
        "name": "Branch (Transit)",
        "value": "97832"
      },
      {
        "name": "Institution",
        "value": "002"
      },
      {
        "name": "Account",
        "value": "02349D15"
      }
    ],
    "field_list": [
      {
        "name": "Serial Number",
        "value": "35141075"
      },
      {
        "name": "Branch (Transit)",
        "value": "97832"
      },
      {
        "name": "Institution",
        "value": "002"
      },
      {
        "name": "Account",
        "value": "02349D15"
      },
      {
        "name": "Transaction Code",
        "value": ""
      },
      {
        "name": "Amount",
        "value": ""
      }
    ]
  },
  "country": {
    "code": "CA",
    "name": "Canada",
    "flag": "🇨🇦",
    "flag_url": "/v2/flags/ca.svg"
  }
}
Open in Playground
Mastercard at a terminal, with every detected text region outlinedCard12 text regions

Mastercard at a terminal

read
// POST /v2/cards/number
{
  "object": "card_number",
  "status": "read",
  "processing_ms": 1324,
  "number": "5391232061279498",
  "first6": "539123",
  "last4": "9498",
  "length": 16,
  "network": "Mastercard",
  "luhn_valid": true,
  "scheme_valid": true,
  "confidence": 88.3
}

// POST /v2/cards/expiry
{
  "object": "card_expiry",
  "status": "read",
  "valid_thru": "05/19",
  "expired": true,
  "expires_in_days": -2699,
  "expiry_status": "expired",
  "confidence": 89.4,
  "processing_ms": 1041
}
Open in Playground
Visa specimen card, with every detected text region outlinedCard7 text regions

Visa specimen card

read
// POST /v2/cards/number
{
  "object": "card_number",
  "status": "read",
  "processing_ms": 1294,
  "number": "4025820012345678",
  "first6": "402582",
  "last4": "5678",
  "length": 16,
  "network": "Visa",
  "luhn_valid": true,
  "scheme_valid": true,
  "confidence": 87.3
}

// POST /v2/cards/expiry
{
  "object": "card_expiry",
  "status": "read",
  "valid_thru": "07/19",
  "expired": true,
  "expires_in_days": -2638,
  "expiry_status": "expired",
  "confidence": 62,
  "processing_ms": 1181
}
Open in Playground
Visa Classic specimen, with every detected text region outlinedCard7 text regions

Visa Classic specimen

partial
// POST /v2/cards/number
{
  "object": "card_number",
  "status": "partial",
  "issue_code": "luhn_failed",
  "issue": "The number failed its checksum, so a digit was probably misread. Try again with less glare.",
  "processing_ms": 1583,
  "number": "4000123456789010",
  "first6": "400012",
  "last4": "9010",
  "length": 16,
  "network": "Visa",
  "luhn_valid": false,
  "scheme_valid": false,
  "confidence": 88.3
}

// POST /v2/cards/expiry
{
  "object": "card_expiry",
  "status": "read",
  "valid_thru": "12/20",
  "expired": true,
  "expires_in_days": -2119,
  "expiry_status": "expired",
  "confidence": 89.3,
  "processing_ms": 1346
}
Open in Playground

Test inputs for the other APIs

Copy a value and paste it into the matching endpoint. Every one is synthetic test data.

Passport MRZ/v1/mrz/read
P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<
L898902C36UTO7408122F1204159ZE184226B<<<<<10

An ICAO specimen passport. Paste both lines into the MRZ reader.

AML screening name/v1/screen/sanctions
Vladimir Vladimirovich Putin

A sanctioned public figure, so the screen returns scored hits.

BIN lookup/v2/bin
42424242

The first 8 digits resolve to the network, country and issuing bank.

Sample passports, IDs, cheques and selfies for the image APIs are built into the Playground, so you do not need your own files to start.

Open the Playground

The Playground runs inside the portal and asks you to sign in first.

Webhooks

Every decision, pushed to you.

EventDescription
verification.completedA verification finished and a decision is available.
verification.needs_reviewA verification landed in the manual review queue.
verification.declinedA verification was declined by the workflow rules.
aml.hitA screening returned one or more scored hits.
credits.lowRemaining credits fell below your configured threshold.
sample payload
{
  "type": "verification.completed",
  "timestamp": "2026-10-17T14:02:15.221Z",
  "environment": "test",
  "data": {
    "verification_id": "ver_7Kq2W9xLm3Ab",
    "reference": "u_10422",
    "decision": "approved",
    "trust_seal": { "score": 94 },
    "checks": {
      "document_authenticity": "pass",
      "face_match": "pass",
      "liveness": "pass",
      "aml_screening": "clear"
    }
  }
}

Verifying the signature

Deliveries are signed as Standard Webhooks: webhook-id, webhook-timestamp and webhook-signature. Your SDK verifies them in one call; here it is by hand. Pass the raw body before parsing, and reject a stale timestamp.

verify-signature.js
import crypto from "node:crypto";

// Headers: webhook-id, webhook-timestamp, webhook-signature: "v1,<base64 HMAC>"
export function verify(rawBody, headers, secret) {
  const id = headers["webhook-id"];
  const ts = headers["webhook-timestamp"];
  const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64");

  const expected = crypto
    .createHmac("sha256", key)
    .update(`${id}.${ts}.${rawBody}`)
    .digest("base64");

  const ok = headers["webhook-signature"]
    .split(" ")
    .some((part) => {
      const [, value] = part.split(",");
      return value && crypto.timingSafeEqual(Buffer.from(value), Buffer.from(expected));
    });

  const fresh = Math.abs(Date.now() / 1000 - Number(ts)) < 300;
  return ok && fresh;
}
Guides & tutorials

Task-based walkthroughs.

API reference

Endpoints, grouped by product.

  • POST/v1/face/verifyCompare two faces (1:1) and decide on a threshold.
  • POST/v1/face/matchMatch faces across images and return every pair.
  • POST/v1/face/searchSearch a gallery (1:N) for the closest faces.
  • POST/v1/livenessPassive liveness from one image.
  • POST/v1/face/attributesAge, expression, glasses, mask and more.
  • POST/v1/age/verifyEstimate age and check a minimum.

Response shape

A KYC answer comes in an envelope { ok, request_id, latency_ms, data, warnings, error } and the SDKs return its data. A Financial answer is an object with an object type. A field with no value is left out, never null.

Status codes

  • 200The call ran. Check ok in the body: a result is in data.
  • 400A field is missing or not valid, see error.code and error.param.
  • 401Missing, malformed, revoked or expired key.
  • 402Not enough credits, or the key hit its spend cap. Nothing was charged.
  • 403The key may not call this API, or live access isn't approved.
  • 404Nothing was found.
  • 429Rate limited, retry after the Retry-After header. Not charged.
  • 5xxOur side. The call did not complete and was not charged.
standard error format
{
  "ok": false,
  "request_id": "req_9Xb2LpQ4",
  "error": {
    "code": "document_image_unreadable",
    "message": "The front image could not be read. Send a JPEG or PNG under 12 MB.",
    "param": "image_front"
  }
}
Changelog & versioning

What shipped.

The API is versioned in its path: KYC under /v1, Financial under /v2. New fields are added without breaking the ones already there, and a field is never removed from a version, so your integration keeps working. There is no version header to set.

  1. v1.017 Oct 2026

    First public release: 69 endpoints across Face, Documents, MRZ, NFC, AML, Contact & risk, Cheques, Cards and BIN, with seven official server SDKs (Python, Node, Go, Java, .NET, PHP, Ruby) generated from the same contract.