81trust / 100

Callbacks

by api.x-402.online in Other

x402 APIPassing, checked 3 min ago

A temporary public webhook URL: give it to any service, then long-poll the events that arrived (method, query, headers, body). Free to receive and read, up to 100 events for 1 to 24…

POST https://api.x-402.online/v1/callbacks

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
145 ms typical, 145 ms slowest 5%
Last check
3 min ago
Next check
in 28 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.x-402.online/v1/callbacks" \
  -H "content-type: application/json" \
  -d '{"label":"job-42","ttl_hours":24}'
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%2Fapi.x-402.online%2Fv1%2Fcallbacks
const res = await pay("https://api.x-402.online/v1/callbacks", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"label":"job-42","ttl_hours":24}),
});
console.log(await res.json());

Example input

{
  "label": "job-42",
  "ttl_hours": 24
}

Example output

{
  "callback_url": "https://api.x-402.online/hook/3f9c0a1e5b7d4c2a9e8f6b1d0c3a5e7f",
  "events_url": "https://api.x-402.online/hook/3f9c0a1e5b7d4c2a9e8f6b1d0c3a5e7f/events?key=…",
  "expires_at": "2026-10-01T12:00:00.000Z",
  "id": "3f9c0a1e5b7d4c2a9e8f6b1d0c3a5e7f",
  "limits": {
    "max_body_bytes": 65536,
    "max_events": 100
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 min agoPassed402145 ms$0.005
5 h agoPassed402227 ms$0.005