API Reference

Implement UseOneID consent workflows directly with our granular REST endpoints reference playground.

Pillar 1

Identity & 1-Click Reusable Onboarding

Real-time account detection, government registry checks, 3D face liveness, and document OCR.

POST/v1/verify/lookup-user

Checks whether a customer is already enrolled in the UseOneID digital vault. Supports querying multiple identifiers simultaneously (email, phone, NIN, BVN, or passport) in a single request. If verified, pass the matched identifier via login_hint and flow=reuse to /oauth/authorize for instant 2-second 3D face verification.

Multi-Identifier Payload Example
// Send individual fields or an identifiers array in a single call:
{
  "email": "buyer@example.com",
  "phone": "+2348012345678",
  "nin": "12345678901",
  "bvn": "22233344455",
  "passportNumber": "A12345678",
  "country": "NG"
}
Response (200 OK)
{
  "found": true,
  "user": {
    "maskedName": "J••• D•••",
    "tier": "Tier 2 Government Verified",
    "hasKyc": true,
    "hasEnrolledBiometrics": true,
    "documentExpired": false,
    "reuseEligible": true,
    "expiryWarning": null,
    "isPartnerMember": false,
    "targetAudience": "consumer"
  }
}
POST/v1/verify/initiate

Initiate a dynamic verification workflow redirect token. Returns a secure checkout URL to present to the user.

Request Payload Example
{
  "client_id": "your_client_id",
  "verification_level": "standard",
  "requested_fields": ["name", "dob"]
}
Response (200 OK)
{
  "verify_url": "https://verify.useoneid.com/...",
  "session_id": "sess_abc123"
}
Language Code:
curl -X POST https://useoneid.com/api/v1/verify/initiate \
  -H "Authorization: Bearer sk_live_your_secret" \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "your_client_id",
    "verification_level": "standard"
  }'
Try executing this request body inside Sandbox context.
GET/v1/verify/sessions/{id}

Audit current check status verification payloads and facial validation mismatch reports.

Request URL Parameter
id: "sess_sandbox_abc123"
Response (200 OK)
{
  "session_id": "sess_abc123",
  "status": "Success",
  "confidence_score": 97
}
Language Code:
curl -X GET https://useoneid.com/api/v1/verify/sessions/sess_abc123 \
  -H "Authorization: Bearer sk_live_your_secret"
Try querying verification session timelines in mock sandbox.
POST/v1/users/lookup

Perform a direct query lookup to retrieve the verified identity profiles of a customer using biometric matches, national registry records, or telephone indices.

Request Payload Example
{
  "nin_hash": "2a9e3d8f1b4c9e8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4a",
  "liveness_verified": true
}
Response (200 OK)
{
  "user_id": "usr_9f8d7c6b",
  "name": "Adeboye Kosoko",
  "dob": "1994-08-15",
  "tier": "Tier 3",
  "verified_at": "2026-03-12T14:22:00Z"
}
POST/v1/verify/biometric

Analyzes camera capture frames for ISO 30107-3 compliant passive liveness (blink, head tilt, micro-texture reflection) and computes a 128-dimensional biometric vector against enrolled credentials.

Request Payload Example
{
  "session_id": "sess_89a0b1c2",
  "image_data": "data:image/jpeg;base64,...",
  "liveness_challenge": "blink_and_turn"
}
Response (200 OK)
{
  "success": true,
  "liveness_passed": true,
  "confidence_score": 98.4,
  "anti_spoofing": {
    "presentation_attack": false,
    "deepfake_probability": 0.001,
    "mask_detected": false
  }
}
POST/v1/ocr/smart-extract

Extract structured identity fields from international passports (ICAO Doc 9303 TD1/TD2/TD3), state driver's licenses, and national IDs across 190+ jurisdictions using multimodal visual intelligence.

Request Payload Example
{
  "image_base64": "data:image/jpeg;base64,...",
  "document_type": "passport",
  "country_code": "NG"
}
Response (200 OK)
{
  "success": true,
  "document_type": "passport",
  "fields": {
    "full_name": "CHUKWUEMEKA OBI",
    "document_number": "A09182736",
    "date_of_birth": "1991-05-20",
    "expiry_date": "2029-05-19",
    "nationality": "NGA"
  },
  "mrz_verified": true,
  "tamper_detected": false
}
Pillar 2

Business & Corporate Compliance (KYB)

Automated commercial registry lookup, tax compliance verification, and live director identity resolution.

POST/v1/verify/kyb

Verify registered corporate files, business status, registered address, tax TIN, and director profiles directly from the Corporate Affairs Commission (CAC) and international commercial registries.

Request Payload Example
{
  "rc_number": "RC1829381",
  "company_name": "Lekki Prime Properties Ltd",
  "tin": "12345678-0001",
  "verify_directors": true,
  "unravel_ubo": true,
  "screen_aml": true
}
Response (200 OK)
{
  "success": true,
  "company_name": "Lekki Prime Properties Ltd",
  "rc_number": "RC1829381",
  "status": "active",
  "registered_address": "12 Admiralty Way, Lekki Phase 1, Lagos",
  "directors": [
    {
      "name": "Babatunde Adeleke",
      "kyc_status": "verified",
      "kyc_tier": "tier_3",
      "shareholding": "60%"
    }
  ],
  "tin_verified": true,
  "risk_tier": "low",
  "signature": "rsa_sha256:..."
}
POST/v1/verify/kyb/director-auth

Generates an encrypted, time-limited delegation link dispatched to a company director via email or SMS. Allows the director to authenticate and bind their authority to an enterprise application.

Request Payload Example
{
  "sessionId": "sess_kyb_9812",
  "directorId": "dir_001",
  "directorName": "Babatunde Adeleke",
  "rcNumber": "RC1829381",
  "companyName": "Lekki Prime Properties Ltd",
  "deliveryChannel": "email",
  "destination": "babatunde@lekki-prime.com"
}
Response (200 OK)
{
  "success": true,
  "delegation_token": "del_eyJhbGciOi...",
  "auth_url": "https://auth.useoneid.com/kyb/director-consent?token=del_eyJhb...",
  "expires_in": 86400,
  "dispatched_to": "babatunde@lekki-prime.com"
}
POST/v1/verify/rkyb

Instantly verifies an already-approved corporate entity by RC/BN number or business_id in under 200ms without re-uploading CAC or MEMART filings. Returns an RS256-signed Reusable KYB Compliance Certificate.

Request Payload Example
{
  "rc_number": "RC1829381"
}
Response (200 OK)
{
  "success": true,
  "reused": true,
  "session_id": "rkyb_cid_a442_1795308000000",
  "environment": "production",
  "latency_ms": 48,
  "business": {
    "business_id": "kyb_uuid_...",
    "rc_number": "RC1829381",
    "company_name": "Lekki Prime Properties Ltd",
    "tin": "12345678-0001",
    "directors": [],
    "corporate_documents": []
  },
  "signed_certificate": "eyJhbGciOiJSUzI1NiJ9..."
}
Pillar 3

Trust, Risk & Fraud Defense Shield

Zero-knowledge age assurance, carrier intelligence, global sanctions screening, and device telemetry.

POST/v1/verify/age-assurance

Verify user age eligibility without exposing or storing their underlying date of birth. Returns a cryptographically signed RS256 attestation token.

Request Payload Example
{
  "token": "eyUseOneID...",
  "required_age": 18,
  "scope": "age_over_18"
}
Response (200 OK)
{
  "success": true,
  "is_eligible": true,
  "required_age": 18,
  "assertion_token": "eyAgeAssertion...",
  "confidence": 0.99,
  "timestamp": "2026-11-27T21:45:30.389Z"
}
POST/v1/verify/phone-risk

Inspect phone numbers for recent SIM swap activity (last 72h), VOIP / virtual PBX routing, porting anomalies, and line disconnection status across 800+ global carriers.

Request Payload Example
{
  "phone": "+2348012345678",
  "country_code": "NG"
}
Response (200 OK)
{
  "success": true,
  "phone": "+2348012345678",
  "carrier": "MTN Nigeria",
  "line_type": "mobile",
  "is_voip": false,
  "sim_swap_detected": false,
  "risk_score": 12,
  "recommendation": "allow"
}
POST/v1/verify/aml-watchlist

Screen natural persons and corporate directors against OFAC, UN Security Council, EU CFSP, UK HMT, and domestic Politically Exposed Persons (PEP) lists.

Request Payload Example
{
  "name": "Alex Johnson",
  "country": "NG",
  "fuzzy_threshold": 0.85
}
Response (200 OK)
{
  "success": true,
  "total_hits": 0,
  "screened_at": "2026-11-27T21:45:30.389Z",
  "matches": [],
  "risk_rating": "clean",
  "assertion_hash": "sha256:7f8a9b..."
}
POST/v1/verify/address

Validates residential addresses using automated utility bill OCR (<180 days freshness) and live GPS geofencing (<250m accuracy) compliant with CBN Tier 3 guidelines.

Request Payload Example
{
  "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"
}
Response (200 OK)
{
  "success": true,
  "address_verified": true,
  "match_confidence": 0.94,
  "geofence_distance_meters": 38,
  "bill_issue_date": "2026-02-15",
  "freshness_days": 62,
  "tier": "Tier 3 Address Verified"
}
POST/v1/verify/device-risk

Partner-authenticated device and network signals. The server returns its own risk decision. A client-supplied score is not accepted.

Request Payload Example
{
  "device_fingerprint": "dfp_example",
  "user_id": "the UseOneID user id"
}
Response (200 OK)
{
  "success": true,
  "data": {
    "risk": {
      "score": 0,
      "trust_score": 100,
      "decision": "allow"
    }
  }
}
POST/v1/risk/events

One endpoint for every app. Send a catalog event_type. The server applies the score change and ignores any risk_weight in the body. Read the same person with GET /v1/risk/score?user_id=.

Request Payload Example
{
  "app_id": "your_client_id",
  "user_identifier": "the UseOneID user id",
  "event_type": "DELIVERY_FAILED",
  "metadata": { "order_id": "ORD-5542" }
}
Response (200 OK)
{
  "success": true,
  "user_id": "the UseOneID user id",
  "event_type": "DELIVERY_FAILED",
  "delta": 15,
  "risk_score": 15,
  "band": "elevated"
}
POST/v1/transactions/monitor

Evaluates transactions in real time against jurisdiction-aware CTR thresholds (US, EU, UK, NG, KE, ZA, GH, FATF), structuring/smurfing, rapid pass-through, fan-in/fan-out, cross-platform account-farming velocity, and zero-PII hashed mule destination graphs. Returns allow, step_up (with 2-second 3D Biometric Step-Up URL), hold, or block plus an RS256-signed decision token.

Request Payload Example
{
  "transaction_id": "tx_90218",
  "user_id": "usr_abc123",
  "amount": 4850000,
  "currency": "NGN",
  "direction": "outbound",
  "country": "NG",
  "counterparty_id": "0123456789:058",
  "channel": "bank_transfer"
}
Response (200 OK)
{
  "success": true,
  "transaction_id": "tx_90218",
  "decision": "step_up",
  "risk_score": 68,
  "triggered_rules": ["CTR_STRUCTURING_NEAR_THRESHOLD", "RAPID_PASS_THROUGH"],
  "step_up_url": "https://useoneid.com/oauth/authorize?client_id=...&flow=reuse&scope=openid+profile+kyc+biometric_step_up",
  "decision_token": "eyJhbGciOiJSUzI1NiIs..."
}
GET/v1/transactions/alerts

Query flagged transactions by decision (step_up, hold, block) for compliance review and SAR/STR filing.

Query Parameters
?decision=block&limit=50
Response (200 OK)
{
  "success": true,
  "count": 1,
  "alerts": [
    {
      "transactionId": "tx_90218",
      "amount": 4850000,
      "currency": "NGN",
      "decision": "block",
      "riskScore": 86,
      "triggeredRules": ["MULE_DESTINATION_CONVERGENCE"]
    }
  ]
}
POST/v1/verify/human

Verify that an actor is a unique real human (stopping AI bot farms, Sybil promo abuse, fake reviews, and ticket scalping). Issues a signed RS256 proof_token and a zero-PII uniqueness_hash.

Request Payload Example
{
  "user_id": "usr_abc123",
  "action_scope": "promo_claim",
  "require_biometric": true
}
Response (200 OK)
{
  "success": true,
  "is_human": true,
  "biometric_verified": true,
  "uniqueness_hash": "pop_91a8f3e2c7...",
  "proof_token": "eyJhbGciOiJSUzI1NiIs..."
}
GET/v1/trust-seal/{clientId}

Returns live cryptographic KYB verification status for a UseOneID partner. Public verification certificate is also served at /verify/seal/{clientId}.

Path Parameter
clientId: "cid_live_acme_01"
Response (200 OK)
{
  "verified": true,
  "business_name": "Acme Africa Ltd",
  "kyb_status": "Approved",
  "verification_url": "https://useoneid.com/verify/seal/cid_live_acme_01"
}
POST/v1/consumer/freeze

Freezes or unfreezes a consumer's identity across all connected partner apps, instantly revokes bound KYA™ AI agents, and broadcasts HMAC-signed identity.frozen / identity.unfrozen webhooks.

Request Payload Example
{
  "action": "freeze",
  "reason": "Lost mobile device"
}
Response (200 OK)
{
  "success": true,
  "frozen": true,
  "revoked_agents": 1,
  "notified_partners": 4
}
Pillar 4

Legal & Electronic Contracting

Cryptographically sealed electronic signatures, SHA-256 non-repudiation seals, and evidence certificates.

POST/v1/partner/signatures

Execute an immutable, cryptographically sealed digital contract. Generates a SHA-256 non-repudiation digest and legal certificate compliant with Evidence Act 2023 §84 & eIDAS standards.

Request Payload Example
{
  "document_title": "Tenancy Agreement - Flat 4B Lekki",
  "signer_email": "tenant@example.com",
  "document_content": "The tenant hereby enters into the standard lease agreement..."
}
Response (201 Created)
{
  "success": true,
  "message": "Digital contract successfully recorded with cryptographic non-repudiation.",
  "signature": {
    "id": "sig_92a8b7c6",
    "document_name": "Tenancy Agreement - Flat 4B Lekki",
    "signer_email": "tenant@example.com",
    "status": "Completed",
    "sha256_hash": "ba498e3d17e6de0ea198e9d05148543934984b4dddc470a35be10c62fba55d74",
    "created_at": "2026-11-27T21:45:30.389Z"
  }
}
GET/v1/partner/signatures

Retrieve all cryptographically sealed contracts executed by or issued to your partner workspace, including verification status and SHA-256 digests.

Request Query Parameters
?search=tenant@example.com&status=Completed
Response (200 OK)
{
  "success": true,
  "signatures": [
    {
      "id": "sig_92a8b7c6",
      "documentName": "Tenancy Agreement - Flat 4B Lekki",
      "signerEmail": "tenant@example.com",
      "status": "Completed",
      "hash": "ba498e3d17e6de0ea198e9d05148543934984b4dddc470a35be10c62fba55d74",
      "createdAt": "2026-11-27T21:45:30.389Z"
    }
  ],
  "stats": {
    "total": 1,
    "completed": 1,
    "pending": 0,
    "revoked": 0
  }
}
Pillar 5

Autonomous AI Agent Authority (KYA™ Protocol)

Cryptographic agent passports, enforceable spending limits, Model Context Protocol (MCP) gateway, and emergency kill-switch.

POST/v1/kya/bind

Programmatically bind an autonomous AI agent to a verified individual or enterprise account with strict spending boundaries, permissible tool actions, an agent_did, and a portable W3C Verifiable Credential 2.0 backed by did:web:useoneid.com. agent_id must be globally unique (a duplicate returns 409 Conflict). Use duration_days 1-365, or 0 for never-expires-until-revoked. Sub-agents use parent_agent_id (max depth 3).

Request Payload Example
{
  "agent_id": "acme_procure_v1",
  "agent_name": "Procurement Agent",
  "spending_limit": "$1000/month",
  "allowed_actions": ["data:read", "contract:review"],
  "duration_days": 30
}
Response (200 OK)
{
  "success": true,
  "status": "BOUND_AND_ACTIVE",
  "issuer_did": "did:web:useoneid.com",
  "agent_did": "did:web:useoneid.com:agents:acme_procure_v1",
  "data": {
    "agent_id": "acme_procure_v1",
    "kya_token": "eyJ...",
    "token_type": "Bearer+KYA"
  },
  "verifiable_credential": {
    "@context": ["https://www.w3.org/ns/credentials/v2"],
    "type": ["VerifiableCredential", "AgentDelegationCredential"]
  }
}
POST/v1/kya/verify

Verifies an AI agent's cryptographic delegation token, live revocation status, velocity anomalies, and remaining spending cap headroom in real time. Metered at $0.02/check in Production (free in Sandbox).

Request Payload Example
{
  "kya_token": "eyJhbGciOiJSUzI1NiIs...",
  "requested_action": "escrow:transact",
  "amount": 250,
  "currency": "USD"
}
Response (200 OK)
{
  "valid": true,
  "authorized": true,
  "agent_id": "acme_procure_v1",
  "remaining_budget_usd": 750,
  "revoked": false
}
GET/.well-known/did.json

Public W3C DID Core 1.0 document exposing UseOneID's RS256 public verification key (JsonWebKey2020) and live KYA control plane service endpoints for independent offline credential verification.

Request Parameters
None required (public discovery endpoint).
Response (200 OK)
{
  "id": "did:web:useoneid.com",
  "verificationMethod": [
    { "id": "did:web:useoneid.com#key-1", "type": "JsonWebKey2020" }
  ]
}
Pillar 6

Document Forensics & Anti-Tampering

Binary PDF & EXIF/XMP manipulation detection, cross-account recycled template SHA-256 radar, and Production Vision AI financial balance math reconciliation.

POST/v1/verify/document-forensics

Analyzes uploaded bank statements, payslips, utility bills, invoices, tax certificates, and corporate filings (max 10 MB). Returns an RS256-signed forensics_token, verdict (authentic | suspicious | forged), risk score (0-100), risk indicators, and positive trust indicators. Metered at $0.45/check in Production, free in Sandbox.

Request Payload Example
{
  "document_base64": "data:application/pdf;base64,JVBERi0xLjcK...",
  "document_type": "bank_statement",
  "expected_holder_name": "Ada Lovelace",
  "user_id": "usr_987654",
  "run_vision_ai": true
}
Response (200 OK)
{
  "success": true,
  "session_id": "dfx_1795799100_a1b2c3",
  "verdict": "authentic",
  "tamper_score": 0,
  "file_type": "pdf",
  "indicators": [],
  "trust_indicators": [
    { "code": "TYPICAL_INTERNAL_STRUCTURE", "title": "Document has typical internal structure" },
    { "code": "TRUSTED_FONTS", "title": "Trusted fonts" },
    { "code": "NO_METADATA_MODIFICATION", "title": "No modification in document metadata" }
  ],
  "forensics_token": "eyJhbGciOiJSUzI1NiIs..."
}
POST/v1/kya/mcp

JSON-RPC 2.0 gateway enabling Claude Desktop, Cursor, and Windsurf AI agents to query verified identity state and execute authorized actions under policy boundaries.

Request Payload Example
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "verify_authority",
    "arguments": {
      "agent_token": "kya_eyPassport...",
      "requested_amount": 250
    }
  },
  "id": 1
}
Response (200 OK)
{
  "jsonrpc": "2.0",
  "result": {
    "authorized": true,
    "remaining_budget": "750_USD",
    "assertion_seal": "sha256:88ab7c..."
  },
  "id": 1
}
POST/v1/kya/revoke

Instantly revoke an autonomous AI agent authority passport. By default all of its sub-agents are revoked too; pass cascade=false to revoke only this agent. The record stores who revoked it, when, and why.

Request Payload Example
{
  "agent_id": "acme_procure_v1",
  "reason": "Anomaly detected: unusual transaction velocity",
  "cascade": true
}
Response (200 OK)
{
  "success": true,
  "data": {
    "agent_id": "acme_procure_v1",
    "status": "REVOKED",
    "revocation_timestamp": "2026-11-27T21:45:30.389Z",
    "cascade_revoked_subagents": [],
    "total_cascade_revoked": 0
  }
}

System Utilities & Diagnostics

GET/v1/health

Verify UseOneID internal registry microservice status and edge availability.

Request URL Parameters
None required.
Response (200 OK)
{
  "status": "healthy",
  "timestamp": "2026-11-27T21:45:30.389Z"
}

Error Codes & Troubleshooting

List of response payloads returned by our check servers during validations.

Code IDHTTP CodeDescriptionRetryableResolution Guide
INVALID_API_KEY401The provided API key is invalid or revoked. NoCheck your key configurations in the Partner Portal.
RATE_LIMITED429Too many requests dispatched within 1 minute. YesSlow down requests. Check your current billing tier limits.
NIMC_UNAVAILABLE503National Identity database gateway is down. YesRetry transaction check or use BVN fallback parameters.
FACE_MATCH_FAILED400Face match score threshold is under 0.8. NoHave the user retake the photo in a better lit room.