NEW Digital Identity API v1 — Now with Passkey Authentication

One API
Multiple Identity providers

Free to integrate. Define custom trust rules with simple logic. Stop managing KYC/KYB vendors.

● No KYC vendor lock-in
● Free for every platform
● Passkey + Handshake built-in

Built for high-stakes platforms

Shift the cost and complexity of verification to the user.

FOR PLATFORMS

Free API + Zero vendor management

One integration. You define trust rules using simple AND/OR logic across any KYC provider. Users pay for their own verification.

FOR USERS

Reusable Digital identity

Users verify once (Basic, Premium, VIP). Their identity is valid for 1 year and accepted instantly across every integrated platform.

FOR BOTH

Cryptographic Handshake

Real-time mutual verification using Passkeys. Stops impersonation and link-sharing fraud before any transaction happens.

Example SDK Integration with npm

01 Installation & Prerequisites

Install the SDK via npm. Requires Node.js and a modern bundler (Webpack, Vite, Rollup).

Terminal

npm install sts-digital-identity

package.json

{
  "dependencies": {
    "sts-digital-identity": "^1.0.1"
  }
}

02 TypeScript Client-Side Integration

Initialize the SDK and trigger a hardware-backed verification with custom trust logic.

import { DigitalIdentity, TrustRequirement } from 'sts-digital-identity';

// 1. Initialize with your API Key
DigitalIdentity.init("sk_live_xxxxxx");

// 2. Build your verification requiremets with custom logic
const requirements: TrustRequirement = {
    "and": [
        { "or": ["persona:identity", "sumsub:document"] },
        "plaid:bank_account"
    ]
};

// 3. Verify the user
const verificationId: string = await DigitalIdentity.verify(
    // 4. The user's public token you collect from your website form.
    "user_token_789",
    // 5. Apply your verification requirements
    requirements
);

if (verificationId != "") {
    
    // 1. To verify that the user passed the challenge, make a POST request from your backend to:
    //    https://api.safetradeservices.com/fido/validate
    //
    // 2. Include your API key and Content-Type in the request headers:
    //    {
    //        'Content-Type': 'application/json',
    //        'X-API-KEY': 'your_api_key_here'
    //    }
    //
    // 3. Send the following JSON payload in the request body:
    //    {
    //        "verificationId": "your_verification_id", // Note: verificationId is only valid for 60 seconds
    //        "token": "user_token_789"
    //    }
    //
    // 4. The API will respond with a boolean value (true or false).
    //    Once you confirm the response is true, you can safely proceed with your logic.
    
} else {
    // API automatically emails user with your complete requirements
}
Note: The SDK automatically handles the browser's Native Passkey prompt and cryptographic handshake with our servers.

Why leading platforms choose Trust Passport

Eliminate friction, reduce costs, and secure your ecosystem with a single integration.

Instant Onboarding

One API integration replaces multiple fragmented KYC vendors. Get up and running in hours, not weeks.

Passkey Authentication

Built on FIDO2 & WebAuthn standards. Enjoy phishing-resistant, hardware-backed security for every login.

Higher Conversion Rates

Users complete their identity verification once and enjoy frictionless, one-click access everywhere.

Zero Verification Costs

Users pay for their own secure identity token which aggregates verifications accross multiple KYC providers. You get guaranteed trust with absolutely zero overhead.

Ready to add Trust Passport to your platform?

Join forward-thinking platforms. Get your free API key in under 60 seconds. No credit card required.

Start testing instantly!