← oblique.markets · all endpoints

POST /api/v1/paid/compile-policy — $0.02 per call

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.

Price$0.02 per call (20000 atomic USDC, scheme exact)
Categorypayments
Railsx402 · USDC on Base (eip155:8453) and Solana · MPP pathUSD on Tempo
Canonical URLhttps://api.oblique.markets/api/v1/paid/compile-policy

Try it

curl -i https://api.oblique.markets/api/v1/paid/compile-policy
# → HTTP 402 with the exact payment requirements; pay, then retry with PAYMENT-SIGNATURE (x402) or Authorization: Payment (MPP)

Input schema

{
 "type": "object",
 "required": [
  "product_type",
  "max_price_usdc",
  "reversible",
  "max_latency_ms",
  "supported_assets",
  "human_authorization_required",
  "refund_capability"
 ],
 "properties": {
  "product_type": {
   "type": "string",
   "enum": [
    "digital_retrieval",
    "inference",
    "reversible_action",
    "physical_goods"
   ]
  },
  "max_price_usdc": {
   "type": "number",
   "minimum": 0
  },
  "reversible": {
   "type": "boolean"
  },
  "max_latency_ms": {
   "type": "number",
   "minimum": 0
  },
  "supported_assets": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "minItems": 1
  },
  "human_authorization_required": {
   "type": "boolean"
  },
  "refund_capability": {
   "type": "boolean"
  }
 }
}

Example input

{
 "body": {
  "type": "object",
  "required": [
   "product_type",
   "max_price_usdc",
   "reversible",
   "max_latency_ms",
   "supported_assets",
   "human_authorization_required",
   "refund_capability"
  ],
  "properties": {
   "product_type": {
    "type": "string",
    "enum": [
     "digital_retrieval",
     "inference",
     "reversible_action",
     "physical_goods"
    ]
   },
   "max_price_usdc": {
    "type": "number",
    "minimum": 0
   },
   "reversible": {
    "type": "boolean"
   },
   "max_latency_ms": {
    "type": "number",
    "minimum": 0
   },
   "supported_assets": {
    "type": "array",
    "items": {
     "type": "string"
    },
    "minItems": 1
   },
   "human_authorization_required": {
    "type": "boolean"
   },
   "refund_capability": {
    "type": "boolean"
   }
  }
 }
}

Example output

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

Clients

Worked TypeScript/Python clients and MCP configs: oblique-markets/oblique-examples · Agent Skills: oblique-markets/skills

Pay per call with x402 (USDC on Base or Solana) or MPP (pathUSD on Tempo). No accounts. Machine doors: /.well-known/x402.json · /openapi.json · /llms-full.txt · MCP · humans: remote.observer