A

Aura Agent Commerce · Audit X402 Preflight

by Aura Agent Commerce

POSTBase

$0.01

per call · USD Coin on Base

Aura deterministic x402 purchase preflight from supplied OpenAPI metadata

Endpoint

POST https://aura-revenue.helionixlabs.com/x402/audit/x402-preflight

5

Calls / 30d

4

Unique payers / 30d

Sep 5

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://aura-revenue.helionixlabs.com/x402/audit/x402-preflight", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "intendedTask": "research a topic",
    "maxPriceUsd": 1,
    "openapi": {
      "info": {
        "title": "Example"
      },
      "openapi": "3.1.0",
      "paths": {},
      "servers": [
        {
          "url": "https://example.com"
        }
      ]
    }
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://aura-revenue.helionixlabs.com/x402/audit/x402-preflight" \
  -H "Content-Type: application/json" \
  -d '{"intendedTask":"research a topic","maxPriceUsd":1,"openapi":{"info":{"title":"Example"},"openapi":"3.1.0","paths":{},"servers":[{"url":"https://example.com"}]}}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "affordableRoutes": [],
  "passed": false,
  "recommendedCall": null,
  "verdict": "preflight_rejected",
  "warnings": []
}

Payment details

Pay to0x56a093255d6e0536109b5f255fc71bb74bfe5838
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from Aura Agent Commerce & similar services