$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-policy9
Calls / 30d
1
Unique payers / 30d
Sep 6
Last called
exact
Payment scheme
Call this service
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 -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
0x970007590acc5c938cd51345b17af51b1b40d3abUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of Other and the homepage with a featured placement.
More from Oblique Markets & similar services
Oblique Markets · Paid Time
api.oblique.markets
Use when an agent needs time. Returns Current server time. $0.01.
Oblique Markets · Paid Bazaar Pulse
api.oblique.markets
Use when an agent needs bazaar pulse. Returns Live x402 Bazaar market pulse: trending services, call volumes, new listings, and catalog changes from daily full-catalog snapshots. Machine-readable JSON for agent-market research. $0.002.
Oblique Markets · Paid Base GAS Price
api.oblique.markets
Use when an agent needs base gas price. Returns Current Base gas price: fetch EIP-1559 latest-block base fee and gas price in wei and gwei from redundant public RPCs, with block freshness metadata for transaction planning. $0.002.