H

Heinrichstech · CDP Webhook SIG Verify

by Heinrichstech

POSTBaseXRP Ledgerstellar:pubneteip155:1440000

$0.0001

per call · USD Coin on Base

BitBooth Webhook Signature Verify: pay 0.001 USDC, verify a webhook signature against the provider's canonical HMAC scheme. Supports stripe, github, vercel, cdp, slack, and generic HMAC-SHA256. Constant-time compare, clock-skew tolerance on timestamp-bearing providers (Stripe / Slack / CDP). Stateless — caller supplies their secret in the request body, we never store it.

Endpoint

POST https://app.heinrichstech.com/v1/cdp/webhook-sig-verify

2

Calls / 30d

2

Unique payers / 30d

Sep 7

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://app.heinrichstech.com/v1/cdp/webhook-sig-verify", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "payload": "{\"id\":\"evt_test\",\"type\":\"checkout.session.completed\"}",
    "provider": "stripe",
    "secret": "whsec_test_secret",
    "signature": "t=1640000000,v1=abc...",
    "timestamp": "1640000000",
    "toleranceSeconds": 300
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://app.heinrichstech.com/v1/cdp/webhook-sig-verify" \
  -H "Content-Type: application/json" \
  -d '{"payload":"{\"id\":\"evt_test\",\"type\":\"checkout.session.completed\"}","provider":"stripe","secret":"whsec_test_secret","signature":"t=1640000000,v1=abc...","timestamp":"1640000000","toleranceSeconds":300}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "details": {
    "ageSeconds": 14,
    "checkedTolerance": true
  },
  "ok": true,
  "payment": {
    "network": "eip155:8453",
    "payer": "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
    "transaction": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "provider": "stripe",
  "scheme": "hmac-sha256-stripe",
  "valid": true
}

Payment details

Pay to0xda2f35d283c42dd60b965322394bc658a5c1769f
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, XRP Ledger, stellar:pubnet, eip155:1440000
Schemesexact, onchain

Is this your API?

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

Get featured →

More from Heinrichstech & similar services