Oblique Markets · Paid Compile Policy

by Oblique Markets

POSTBaseSolana

$0.02

per call · USD Coin on Base

Use when an agent needs compile policy. Returns Compile a merchant payment policy across x402, MPP, AP2, and card rails from product, risk, authorization, latency, asset, and refund constraints. $0.02.

Endpoint

POST https://api.oblique.markets/api/v1/paid/compile-policy

9

Calls / 30d

1

Unique payers / 30d

Sep 6

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://api.oblique.markets/api/v1/paid/compile-policy", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "human_authorization_required": true,
    "max_latency_ms": 1,
    "max_price_usdc": 1,
    "product_type": "digital_retrieval",
    "refund_capability": true,
    "reversible": true,
    "supported_assets": [
      "example"
    ]
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.oblique.markets/api/v1/paid/compile-policy" \
  -H "Content-Type: application/json" \
  -d '{"human_authorization_required":true,"max_latency_ms":1,"max_price_usdc":1,"product_type":"digital_retrieval","refund_capability":true,"reversible":true,"supported_assets":["example"]}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "authorization_policy": "Buyer authorization is required before settlement; enforce the stated per-call cap.",
  "deny_conditions": [
    "price exceeds max_price_usdc",
    "required human authorization is unavailable",
    "no supported settlement rail or asset",
    "refund requirement cannot be met"
  ],
  "policy_manifest": {
    "max_latency_ms": 3000,
    "product_type": "digital_retrieval",
    "reversible": false,
    "version": "1.0"
  },
  "receipt_schema": {
    "required": [
      "payment_id",
      "rail",
      "amount_usdc",
      "status",
      "settled_at"
    ],
    "type": "object"
  },
  "recommended_rails": [
    {
      "rail": "x402",
      "rationale": "Best fit for an automated digital retrieval with an immediate, bounded response.",
      "role": "primary settlement"
    },
    {
      "rail": "MPP",
      "rationale": "Useful when the buyer ecosystem already speaks machine payment protocols.",
      "role": "alternative settlement"
    },
    {
      "rail": "card",
      "rationale": "Provides broad coverage for buyers without a compatible crypto wallet.",
      "role": "fallback settlement"
    }
  ],
  "refund_owner": "merchant",
  "settlement_requirements": [
    "exact amount authorization",
    "idempotency key",
    "machine-readable receipt"
  ],
  "spending_cap_usdc": 0.02
}

Payment details

Pay to0x970007590acc5c938cd51345b17af51b1b40d3ab
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

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

Get featured →

More from Oblique Markets & similar services