X

x402-gateway · Tools Verify Worldid

by x402-gateway

POSTBase

$0.005

per call · USD Coin on Base

x402-gateway tool: verify_worldid — Verify a World ID 4.0 proof via the Worldcoin Developer Portal API. Generates an RP signature server-side, then proxies the full IDKit proof to developer.world.org. Returns { valid, nullifier, worldcoin_response }.

Endpoint

POST https://x402.freeq.one/tools/verify_worldid

2

Calls / 30d

1

Unique payers / 30d

Aug 22

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402.freeq.one/tools/verify_worldid", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "action": {
      "description": "Action string (must match what IDKit used). Required for uniqueness proofs, omitted for session proofs.",
      "type": "string"
    },
    "environment": {
      "description": "Worldcoin environment. Defaults to production.",
      "enum": [
        "production",
        "staging"
      ],
      "type": "string"
    },
    "proof": {
      "description": "IDKit proof payload: { protocol_version, responses, action?, session_id? }",
      "type": "object"
    }
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402.freeq.one/tools/verify_worldid" \
  -H "Content-Type: application/json" \
  -d '{"action":{"description":"Action string (must match what IDKit used). Required for uniqueness proofs, omitted for session proofs.","type":"string"},"environment":{"description":"Worldcoin environment. Defaults to production.","enum":["production","staging"],"type":"string"},"proof":{"description":"IDKit proof payload: { protocol_version, responses, action?, session_id? }","type":"object"}}' \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0x90b0dc893406d6ea63bb077ed59f5e8340f98d84
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from x402-gateway & similar services