81trust / 100
Execute Webhook
by action402.vercel.app in Markets & finance
x402 APIPassing, checked 5 h ago
Paid webhook/API execution for autonomous agents. Executes one public HTTPS action after x402 payment, applies retries and idempotency, then returns a signed receipt with request hash, response hash, target, status, and attempt count.
POST https://action402.vercel.app/api/execute/webhook
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 559 ms typical, 559 ms slowest 5%
- Last check
- 5 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://action402.vercel.app/api/execute/webhook" \
-H "content-type: application/json" \
-d '{"body":{"event":"agent.test","message":"hello from an x402 buyer"},"headers":{"content-type":"application/json"},"idempotencyKey":"agent-test-001","method":"POST","retry":{"attempts":2,"backoffMs":300},"timeoutMs":10000,"url":"https://httpbin.org/anything"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Faction402.vercel.app%2Fapi%2Fexecute%2Fwebhook
const res = await pay("https://action402.vercel.app/api/execute/webhook", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"body":{"event":"agent.test","message":"hello from an x402 buyer"},"headers":{"content-type":"application/json"},"idempotencyKey":"agent-test-001","method":"POST","retry":{"attempts":2,"backoffMs":300},"timeoutMs":10000,"url":"https://httpbin.org/anything"}),
});
console.log(await res.json());Example input
{
"body": {
"event": "agent.test",
"message": "hello from an x402 buyer"
},
"headers": {
"content-type": "application/json"
},
"idempotencyKey": "agent-test-001",
"method": "POST",
"retry": {
"attempts": 2,
"backoffMs": 300
},
"timeoutMs": 10000,
"url": "https://httpbin.org/anything"
}Example output
{
"idempotentReplay": false,
"job": {
"attempts": 1,
"id": "job_...",
"status": "succeeded"
},
"links": {
"job": "/api/jobs/job_...",
"receipt": "/api/receipts/rcpt_..."
},
"mode": "x402",
"receipt": {
"id": "rcpt_...",
"signature": "hmac-sha256:..."
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 5 h ago | Passed | 402 | 559 ms | $0.003 |