Server route for your website
// app/api/yieldboost/anti-sybil-zk-fingerprint/route.ts
import { NextRequest, NextResponse } from "next/server";

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

  const response = await fetch(
    "https://dev.yieldboostai.xyz/api/dev/store/anti-sybil-zk-fingerprint",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
        Authorization: `Bearer ${process.env.YIELDBOOST_API_KEY}`,
      },
      body: JSON.stringify(payload),
    },
  );

  const data = await response.json();
  return NextResponse.json(data, { status: response.status });
}
Browser calls your own backend
// Browser code in your web app
const response = await fetch("/api/yieldboost/anti-sybil-zk-fingerprint", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "requestId": "anti-sybil-demo-001",
    "walletAddress": "0x8a3c7524Aaed081825aC88eC7f4cCECFc583ee7D",
    "network": "mainnet",
    "intent": "screen a wallet before issuing a high-value API key",
    "sessionId": "sess_live_01",
    "deviceLabel": "chrome-macbook-pro"
  }),
});

const verified = await response.json();
Node or edge runtime
const response = await fetch("https://dev.yieldboostai.xyz/api/dev/store/anti-sybil-zk-fingerprint", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    Authorization: `Bearer ${process.env.YIELDBOOST_API_KEY}`,
  },
  body: JSON.stringify({
    "requestId": "anti-sybil-demo-001",
    "walletAddress": "0x8a3c7524Aaed081825aC88eC7f4cCECFc583ee7D",
    "network": "mainnet",
    "intent": "screen a wallet before issuing a high-value API key",
    "sessionId": "sess_live_01",
    "deviceLabel": "chrome-macbook-pro"
  }),
});

const verified = await response.json();
cURL smoke test
curl -X POST https://dev.yieldboostai.xyz/api/dev/store/anti-sybil-zk-fingerprint \
  -H "Authorization: Bearer $YIELDBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{  "requestId": "anti-sybil-demo-001",  "walletAddress": "0x8a3c7524Aaed081825aC88eC7f4cCECFc583ee7D",  "network": "mainnet",  "intent": "screen a wallet before issuing a high-value API key",  "sessionId": "sess_live_01",  "deviceLabel": "chrome-macbook-pro"}'
Response shape
{
  "status": "success",
  "security": "Anti-Sybil + ZK Verified",
  "network": "mainnet",
  "anti_sybil": {
    "wallet_bound": true,
    "alibaba_behavior_fingerprint": "checked",
    "risk_level": "low",
    "review_status": "verified"
  },
  "data": {
    "accepted": true
  },
  "zk_proof": "0x...",
  "zk_envelope": {
    "proof_type": "anti-sybil-mainnet-envelope"
  },
  "0g_storage_url": "0g://..."
}