KYB quick start
Step 1. Get a KYB API key
Step 2. Create a verification link
const crypto = require("crypto");
const https = require("https");
const body = JSON.stringify({
flow_id: "your_kyb_flow_id",
external_user_id: "company-001",
expires_in: 259200, // 72 hours in seconds
locale: "en",
});
const timestamp = Math.floor(Date.now() / 1000).toString();
const bodyHash = crypto.createHash("sha256").update(body).digest("hex");
const stringToSign = `${timestamp}\nPOST\n/tenant/v1/kyb/verification-links\n${bodyHash}`;
const signature = crypto
.createHmac("sha256", "your_api_secret")
.update(stringToSign)
.digest("hex");
// Request headers
const headers = {
"Content-Type": "application/json",
"X-Timestamp": timestamp,
Authorization: `HMAC-SHA256 Credential=kyb_live_your_key, Signature=${signature}`,
};Step 3. The user completes the KYB flow
Step 4. Receive the result
Next steps
Last updated