Build identity verification in minutes

One API. One SDK. AI-Agent ready. Implement instant reusable KYC, corporate KYB, transaction monitoring, and cryptographic authority across 190+ jurisdictions.

AI Coding Agent Prompt — AGENTS.md
# Integrate UseOneID Across This Application
# Works with Cursor, Claude Code, Codex, Windsurf, Antigravity & Copilot

Read https://useoneid.com/AGENTS.md first, then study this codebase and
integrate UseOneID across every relevant touchpoint:

1. Signup / Onboarding / Forms:
   POST /api/v1/verify/lookup-user -> 1-Click Reuse (flow=reuse) or
   Full KYC (flow=fkyc) via @useoneid/react (<UseOneIDButton />)
   Verify RS256 tokens via jose against https://useoneid.com/.well-known/jwks.json

2. Payouts / Transfers / High-Risk Flows:
   POST /api/v1/transactions/monitor (KYT + 2-sec 3D Biometric Step-Up)

3. B2B / Anti-Bot / Contracts (wherever needed):
   KYB/RKYB, Proof of Personhood (/api/v1/verify/human), Digital Signatures

4. Real-Time Security Webhooks:
   Scaffold /api/webhooks/useoneid with HMAC-SHA256 verification for
   identity.verified, kyb.approved, identity.frozen & transaction.flagged

Env: NEXT_PUBLIC_USEONEID_CLIENT_ID=cid_... | USEONEID_SECRET_KEY=sk_...

Get started in 3 steps

Fast-track your onboarding and send your first request using our simple timeline structure.

01

Get API Keys

Sign up for a B2B partner account to automatically generate keys for Sandbox testing.

02

Copy the Code

Integrate our responsive client-side SDKs or run direct HTTP requests using our developer guides.

03

Go Live

Request production access, swap your sandbox tokens with live keys, and go live instantly.

Key Integrations Features

Explore core services and features provided natively by the UseOneID infrastructure.

Government Registry Verified (190+ Countries)

Query live registry details and matching biometric profiles from official government databases across the US, UK, EU, Africa, and Latin America.

5-Second Biometric Reuse

Return users verify instantly using biometric data. Avoid upload friction and document drops across any platform.

Universal Drop-in SDKs

Polished SDK packages built for Web (React), Flutter, React Native, Node.js, Python, Android, and iOS.

AI Fraud Detection Engine

Automatically flag synthetic identities, deepfakes, document bypasses, template reuse, and liveness mismatch spoofing.

Global Compliance (GDPR, SOC2 & NDPR)

Consent-based architecture, full activity logs, and encrypted audit trails mapping cross-border privacy rights.

Sandbox Simulation First

Validate edge cases and payload variables in Sandbox using detailed mock responses across all global regions.


Quickstart Guide

Getting verified with UseOneID requires three simple steps: first, retrieve your API credential keys from the Partner Dashboard. Second, request a transaction session token from our core verification server. Third, launch the drop-in client SDK widget within your application to capture user consent and biometric liveness checks.

Sandbox Endpoint URLPOST /api/v1/verify/initiate

Body: { "client_id": "cid_..." } opens a sandbox session. Send Authorization: Bearer sk_sandbox_... from Partner → API Keys for authenticated sandbox calls. Sandbox calls are limited to 1,000 per day.


Authentication

Copy the secret key from Partner → API Keys. It is shown once. Sandbox secrets start with `sk_sandbox_` and live secrets start with `sk_live_`. Send that secret as `Authorization: Bearer` on server calls. A `pk_` key does not authenticate. The `client_id` (`cid_...`) is what you pass to the button. A `client_id` alone opens a sandbox session.

Authorization: Bearer sk_sandbox_your_secret
Content-Type: application/json

{ "client_id": "cid_your_client_id" }

Error Handling

UseOneID utilizes standard HTTP status codes to communicate response failures. Responses in the 2xx tier indicate success, 4xx tier errors point to missing parameter arguments or authentication locks, while 5xx tier responses represent temporary registry gateway outages.

CodeError TypeDescription
400INVALID_PARAMETERRequired fields Dob or Hash are missing or malformed.
401UNAUTHORIZEDAPI key is missing or invalid.

Pillar 1

Identity & 1-Click Reusable Onboarding

Eliminate friction and identity fraud simultaneously. Transition your customers from tedious form-filling to 5-second 1-click biometric authorization.

Real-Time Account Detection & 1-Click Autofill

POST /api/v1/verify/lookup-user

Eliminate manual form-filling and repetitive KYC forever. As a customer enters their details into your checkout, onboarding, or tenant application form, your backend or client performs an asynchronous zero-knowledge presence lookup. You can pass multiple candidate identifiers (email, phone number, NIN, BVN, or passport number) in a single request.

// Backend REST Request (Single Multi-Identifier Call): const res = await fetch("https://useoneid.com/api/v1/verify/lookup-user", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ email: "buyer@example.com", phone: "+2348012345678", nin: "12345678901", // Optional: National ID passportNumber: "A12345" // Optional: Global Passport }), }); const { found, user } = await res.json(); if (found) { // 1-Click Fast-Track: User exists -> Launch straight to 3D Face Biometric Scan! const authUrl = "https://useoneid.com/oauth/authorize?" + new URLSearchParams({ client_id: "your_client_id", login_hint: "buyer@example.com", flow: "reuse" // Bypasses welcome toggle & phone entry directly to 3D Face ID }); } else { // First-Time KYC: User does not have an account -> Launch directly to Onboarding! const authUrl = "https://useoneid.com/oauth/authorize?" + new URLSearchParams({ client_id: "your_client_id", login_hint: "buyer@example.com", flow: "fkyc" // Pre-fills contact details & lands directly on ID/Face enrolment }); }

Government Registry & National ID Verification (190+ Jurisdictions)

POST /api/v1/verify/initiate

Verify identity profiles against authoritative national registries using zero-knowledge hashed lookup tokens. Seamlessly connects to NIMC (Nigeria NIN/vNIN), NIBSS (BVN), US Social Security Administration (SSN), UK HMRC (NINO), Ghana NIA, Kenya KRA/IPRS, and South Africa DHA. Returns authenticated legal names, confirmed date-of-birth records, and cryptographic registry avatar matches.

curl -X POST https://auth.useoneid.com/api/v1/verify/initiate \ -H "Authorization: Bearer sec_live_your_key" \ -H "Content-Type: application/json" \ -d '{ "client_id": "cid_live_90281", "verification_level": "enhanced_tier_3", "requested_fields": ["name", "dob", "nin", "address"], "redirect_url": "https://yourapp.com/onboarding/callback" }'

3D Passive Face Liveness Check & Biometric Vector Matching

POST /api/v1/verify/biometric

Mitigate presentation attacks, deepfakes, 3D silicone masks, and photos on screen with iBeta ISO 30107 Level 2 compliant passive liveness detection. Computes a 468-point 3D landmark facial topology mesh, validates pupil micro-dilation and parallax head movement, and matches 128-dimensional Euclidean biometric vectors against enrolled identity vaults.

curl -X POST https://auth.useoneid.com/api/v1/verify/biometric \ -H "Authorization: Bearer sec_live_your_key" \ -H "Content-Type: application/json" \ -d '{ "session_id": "sess_89a0b1c2", "image_data": "data:image/jpeg;base64,...", "liveness_challenge": "blink_and_turn" }'

Global Document OCR & MRZ Engine (190+ Jurisdictions)

POST /api/v1/ocr/smart-extract

Extract machine-readable text records and verify security features from international passports (ICAO Doc 9303 TD1, TD2, TD3), state driver's licenses, and national ID cards across 190+ jurisdictions. Combines UseOneID proprietary neural vision intelligence, optical hologram inspection, and microprint authenticity verification.

curl -X POST https://auth.useoneid.com/api/v1/ocr/smart-extract \ -H "Authorization: Bearer sec_live_your_key" \ -H "Content-Type: application/json" \ -d '{ "image_base64": "data:image/jpeg;base64,...", "document_type": "passport", "country_code": "NG" }'

High-Value & High-Risk Biometric Step-Up Guard

scope="kyc+biometric_step_up"

For transactions involving high financial value (e.g. transfers > $1,000, tenancy lease execution, or withdrawal mandates), partners can enforce a step-up biometric challenge. Passing scope="kyc+biometric_step_up" prevents standard PIN bypass and requires an active live 3D face liveness scan before releasing funds or counter-signing agreements.

<UseOneIDButton clientId={process.env.NEXT_PUBLIC_USEONEID_CLIENT_ID} scope="openid profile kyc biometric_step_up" text="Authorize High-Value Transfer" onSuccess={(identityPayload) => { // Cryptographically signed token confirms passed 3D Face Biometric Liveness console.log("Biometrically verified token:", identityPayload.token); }} />

Pillar 2

Business & Corporate Compliance (KYB)

Verify registered companies, commercial entities, and corporate directors with automated regulatory lookup, tax compliance, and remote director identity resolution.

Corporate KYB & CAC Business Verification API

POST /api/v1/verify/kyb

Verify corporate entities, commercial landlords, SMEs, and MSMEs across Africa and global commercial registers. Query official Corporate Affairs Commission (CAC) index records by RC or Business Name (BN) number, cross-reference FIRS Tax Identification Numbers (TIN), verify registered addresses, and link verified company directors and Ultimate Beneficial Owners (UBO > 25%) via biometric KYC.

1. First-Time KYB

Unverified businesses undergo automated CAC lookup, director biometric verification (NIN/BVN + liveness), FIRS TIN validation, and corporate bank confirmation.

2. 1-Click KYB Reuse

Returning companies or verified directors use the Reusable Corporate Vault to authorize platforms in 5 seconds. Pre-populates business profile, RC number, and tax ID instantly.

// Server-to-Server KYB Verification: curl -X POST https://auth.useoneid.com/api/v1/verify/kyb \ -H "Authorization: Bearer sec_live_your_key" \ -H "Content-Type: application/json" \ -d '{ "rc_number": "RC1829381", "company_name": "Lekki Prime Properties Ltd", "tin": "12345678-0001", "verify_directors": true, "unravel_ubo": true, "screen_aml": true }'

Corporate Director Resolution & Live Remote Delegation

POST /api/v1/verify/kyb/director-auth

When onboarding corporate entities, resolve legal directors directly from the registry index. Generate an encrypted, time-limited delegation link dispatched to the director via SMS or email. The director authenticates securely on their mobile device via Face Liveness or UseOneID PIN, immediately authorizing the corporate application without manual board resolutions.

curl -X POST https://auth.useoneid.com/api/v1/verify/kyb/director-auth \ -H "Authorization: Bearer sec_live_your_key" \ -H "Content-Type: application/json" \ -d '{ "sessionId": "sess_kyb_9812", "directorId": "dir_001", "directorName": "Babatunde Adeleke", "rcNumber": "RC1829381", "companyName": "Lekki Prime Properties Ltd", "deliveryChannel": "email", "destination": "babatunde@lekki-prime.com" }'

Pillar 3

Trust, Risk & Fraud Defense Shield

Multi-layered defensive telemetry to prevent sybil attacks, SIM swaps, adverse media association, and fraudulent geo-spoofing in real time.

Zero-Knowledge Age Assurance API (13+, 18+, 21+)

POST /api/v1/verify/age-assurance

Verify whether a user satisfies age thresholds (13+, 18+, or 21+) without collecting or viewing their raw date of birth. Returns a cryptographically signed RS256 assertion token with zero underlying PII leakage, satisfying UK Online Safety Act, California Age-Appropriate Design Code, and EU GDPR Article 8.

curl -X POST https://auth.useoneid.com/api/v1/verify/age-assurance \ -H "Authorization: Bearer sec_live_your_key" \ -H "Content-Type: application/json" \ -d '{ "token": "eyUseOneID...", "required_age": 18, "scope": "age_over_18" }'

Phone & Carrier Risk Intelligence API

POST /api/v1/verify/phone-risk

Evaluate telecom risk before sending OTPs or extending credit. Detects virtual PBX / VOIP numbers, recent carrier SIM swaps within the last 72 hours, line disconnections, porting history, and disposable burner numbers across MTN, Airtel, Glo, AT&T, Verizon, Vodafone, and 800+ international telcos.

curl -X POST https://auth.useoneid.com/api/v1/verify/phone-risk \ -H "Authorization: Bearer sec_live_your_key" \ -H "Content-Type: application/json" \ -d '{ "phone": "+2348012345678", "country_code": "NG" }'

Adverse Media & Global Sanctions Watchlist API

POST /api/v1/verify/aml-watchlist

Screen natural persons and business directors against UN Security Council, US OFAC Specially Designated Nationals (SDN), UK HM Treasury, EU CFSP, INTERPOL Red Notices, and domestic Politically Exposed Persons (PEP) lists. Returns structured match classifications and a verifiable compliance assertion token.

curl -X POST https://auth.useoneid.com/api/v1/verify/aml-watchlist \ -H "Authorization: Bearer sec_live_your_key" \ -H "Content-Type: application/json" \ -d '{ "name": "Alex Johnson", "country": "NG", "fuzzy_threshold": 0.85 }'

Proof of Address (PoA) & Utility Geocoding API

POST /api/v1/verify/address

Automate residential address validation to satisfy CBN Tier 3 regulations and global banking standards. Supports automated utility bill OCR (electricity, water, bank statements < 180 days freshness), live GPS geofence auditing (< 250m accuracy verification), and Jaro-Winkler string similarity matching against declared residential addresses.

curl -X POST https://auth.useoneid.com/api/v1/verify/address \ -H "Authorization: Bearer sec_live_your_key" \ -H "Content-Type: application/json" \ -d '{ "session_id": "sess_addr_9012", "method": "hybrid", "declared_address": "12 Admiralty Way, Lekki Phase 1, Lagos", "latitude": 6.4474, "longitude": 3.4723, "bill_document_url": "https://storage.useoneid.com/bills/bill_102.pdf" }'

Device & Network Telemetry API

POST /api/v1/verify/device-risk

Passive fraud and sybil defense. Detects VPN / Tor proxy exit nodes, automated headless browser environments (Puppeteer, Playwright), device hardware fingerprint collisions, and multi-accounting risk without adding user friction. Computes a 250–990 credit-style trust score.

curl -X POST https://auth.useoneid.com/api/v1/verify/device-risk \ -H "Authorization: Bearer sec_live_your_key" \ -H "Content-Type: application/json" \ -d '{ "device_fingerprint": "dfp_9a8b7c6d5e", "ip_address": "102.89.33.12" }'

Financial Account & Banking Shield Endpoint

Verify bank accounts and financial credentials securely across international banking rails. Instantly confirm account ownership, match names, phone records, and billing profiles without storing raw banking numbers on your servers.


Pillar 4

Legal & Electronic Contracting

Execute binding, tamper-proof electronic contracts backed by cryptographic non-repudiation and admissible legal evidence certificates.

Digital Signatures & Non-Repudiation API

POST /api/v1/partner/signatures

Execute legally binding digital contracts and agreements. Employs SHA-256 non-repudiation hashing, RFC 3161 trusted timestamping, and biometric or PIN authentication. Generates printable compliance proof certificates admissible under Evidence Act (2023) Section 84, US ESIGN Act, and EU eIDAS regulation.

curl -X POST https://auth.useoneid.com/api/v1/partner/signatures \ -H "Authorization: Bearer sec_live_your_key" \ -H "Content-Type: application/json" \ -d '{ "document_title": "Tenancy Agreement - Lekki Phase 1", "signer_email": "tenant@example.com", "document_content": "The tenant hereby agrees to the standard tenancy terms..." }'

Cryptographic Evidence Certificates & Audit Seals

GET /api/v1/partner/signatures

Every signed document includes a tamper-evident audit trail: signer IP address, GPS coordinate verification, browser user-agent hash, biometric match score (98%+ confidence), and an immutable SHA-256 hash seal. Partners can download audit certificates directly from the Partner Portal or retrieve signatures programmatically for automated contract management.

curl -X GET "https://auth.useoneid.com/api/v1/partner/signatures?search=tenant@example.com" \ -H "Authorization: Bearer sec_live_your_key"

Pillar 5

Autonomous AI Agent Authority (KYA™)

Bind AI agents to verified individuals and corporate entities with enforceable spending limits, scope boundaries, and Model Context Protocol (MCP) compatibility for Claude Desktop and Cursor.

Explore KYA™ Protocol

Pillar 6

Global Transaction Monitoring (KYT), Network Shield & Proof of Personhood

Protect every industry — fintech, e-commerce, PropTech, crypto, logistics, and gaming — with multi-currency KYT rules, cross-partner mule & account-farming protection, human-vs-AI verification, and unforgeable KYB business seals.

Global Multi-Currency Transaction Monitoring (KYT) & Network Trust Shield

POST /api/v1/transactions/monitor · GET /api/v1/transactions/alerts

Evaluate transfers in real time across 12 rules: global CTR thresholds (FinCEN USD, EU AMLD6 EUR, UK FCA GBP, CBN/NFIU NGN, FRC KES, FIC ZAR/GHS, FATF), structuring/smurfing, 30-minute rapid pass-through, mule fan-in/fan-out, FATF corridors, privacy-preserving NETWORK_ACCOUNT_FARMING, and hashed NETWORK_MULE_DESTINATION_DETECTED. Returns an RS256 signed decision (ALLOW, STEP_UP, REVIEW, BLOCK) plus a ready-to-launch 2-second 3D Face Biometric Step-Up URL when STEP_UP is triggered.

curl -X POST https://useoneid.com/api/v1/transactions/monitor \ -H "Authorization: Bearer sk_live_your_secret_key" \ -H "Content-Type: application/json" \ -d '{ "transaction_id": "tx_982341", "user_id": "usr_987654", "amount": 9200, "currency": "USD", "direction": "outbound", "country": "US", "counterparty_id": "acct_destination_8841", "counterparty_country": "GB", "email": "customer@company.com" }'

Proof of Personhood (Human-vs-AI Verification)

POST /api/v1/verify/human

Block bots, sybil farms, and AI impersonators with a single PII-free API call backed by 3D passive face liveness and Passkey assurance. Returns is_verified_human, assurance_level (high | medium | none), and a signed RS256 proof_token.

curl -X POST https://useoneid.com/api/v1/verify/human \ -H "Authorization: Bearer sk_live_your_secret_key" \ -H "Content-Type: application/json" \ -d '{ "user_id": "usr_987654" }'

Verified Business Trust Seal & Network Identity Freeze Webhooks

GET /api/v1/trust-seal/{clientId} · POST /api/v1/consumer/freeze

Embed a live, unforgeable KYB verification badge on any merchant storefront via GET /api/v1/trust-seal/{clientId} (linking to /verify/seal/{clientId}). For consumer safety, when a user triggers Emergency Identity Freeze (or a partner reports confirmed fraud), UseOneID broadcasts HMAC-SHA256 signed identity.frozen and identity.risk_escalated webhooks to every connected partner.

curl -X GET https://useoneid.com/api/v1/trust-seal/cid_your_partner_id

1-Click Frontend Widget (@useoneid/react)

Mount the official <UseOneIDButton /> on your login, signup, or checkout page. Returns cryptographically verified identity tokens and user avatars in 5 seconds with zero form filling.

// Install: npm install @useoneid/react
import { UseOneIDButton } from "@useoneid/react";

export function AuthCard() {
  const handleSuccess = async ({ token, user }: { token: string; user: any }) => {
    // Verified user returned instantly: name, email, avatar, kyc_tier
    console.log("Verified User Profile:", user);
    await fetch("/api/auth/useoneid", {
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify({ token }),
    });
  };

  return (
    <UseOneIDButton
      clientId={process.env.NEXT_PUBLIC_USEONEID_CLIENT_ID || "cid_sandbox_demo"}
      redirectUri="https://yourapp.com/auth/callback"
      onSuccess={handleSuccess}
      theme="light"
      text="Continue with UseOneID"
    />
  );
}

Backend RS256 Edge Token Verification (@useoneid/node)

Verify the cryptographically signed JWT token returned by the 1-Click widget at your API edge against UseOneID JWKS with zero network roundtrips.

// app/api/auth/useoneid/route.ts (Next.js / Node.js)
import { NextRequest, NextResponse } from "next/server";
import { verifyUseOneIDToken } from "@useoneid/node";

export async function POST(req: NextRequest) {
  const { token } = await req.json();

  // Stateless RS256 verification against Edge JWKS
  const verification = await verifyUseOneIDToken(token, {
    expectedAudience: process.env.USEONEID_CLIENT_ID,
  });

  if (!verification.valid) {
    return NextResponse.json({ error: "Unauthorized token" }, { status: 401 });
  }

  // Identity verified against official government registries
  const { sub, email, full_name, kyc_tier, picture } = verification.claims;

  return NextResponse.json({
    success: true,
    user: { id: sub, email, name: full_name, tier: kyc_tier, avatar: picture },
  });
}

Flutter Native Plugin (Dart)

Add useoneid_flutter: ^1.2.0 to your pubspec.yaml. Launch native biometric consent sheets inside iOS and Android viewports.

final result = await UseOneID.verify(
  context: context,
  apiKey: "sk_live_your_secret",
  country: "US", // or "GB", "NG", "DE" (190+ jurisdictions)
);
if (result.isSuccess) {
  print("User: ${result.user.name}, Avatar: ${result.user.avatarUrl}");
}

React Native SDK (@useoneid/react-native)

Install @useoneid/react-native to render native hardware-accelerated verification modals.

import { launchUseOneID } from "@useoneid/react-native";

const onVerifyPress = async () => {
  const result = await launchUseOneID({
    clientId: "client_live_id",
    country: "NG",
  });
  if (result.verified) {
    setUser({ ...result.user, avatar: result.user.picture });
  }
};

Webhooks Dispatch & Signature Verification

Process verification events asynchronously. Every webhook payload is signed with HMAC SHA-256 in the x-useoneid-signature header.

import crypto from "crypto";

app.post("/api/v1/webhooks/useoneid", (req, res) => {
  const signature = req.headers["x-useoneid-signature"];
  const hmac = crypto
    .createHmac("sha256", process.env.USEONEID_WEBHOOK_SECRET!)
    .update(JSON.stringify(req.body))
    .digest("hex");

  if (signature !== hmac) {
    return res.status(401).send("Invalid webhook signature");
  }

  const { event, data } = req.body;
  if (event === "verification.completed") {
    // data.user_sub, data.tier, data.avatar_url, data.documents
    console.log("Verification succeeded for:", data.user_sub);
  }
  res.status(200).json({ received: true });
});

Production Deployment & Go-Live Checklist

Review this checklist before moving from Developer Sandbox to Live Production.

StepSandbox ModeLive ProductionAction Required
1. API Keyssk_sandbox_...sk_live_...Switch environment variable in production vault
2. Allowed Originslocalhost:3000, 127.0.0.1https://yourdomain.comWhitelist callback URLs in Partner Portal
3. Webhooksngrok / local tunnelhttps://api.yourdomain.com/webhooksVerify HMAC signature on all incoming events
4. User AvatarsMock CDN URLsOfficial encrypted registry CDNStore picture / avatarUrl in your user database
5. Multi-CountryDefault Sandbox region190+ jurisdictions supportedPass ISO-2 code (e.g. US, GB, NG, DE) dynamically