{
  "info": {
    "name": "AsterPay Data API",
    "description": "EUR settlement and trust layer for AI agent commerce. Free read endpoints need no API key. Paid endpoints return HTTP 402 with payment instructions until an x402 (PAYMENT-SIGNATURE) or MPP (Authorization: Payment) proof is attached. Full machine-readable spec: https://asterpay.io/openapi.json",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://x402.asterpay.io",
      "type": "string"
    },
    {
      "key": "address",
      "value": "0x9CC42f3d9245B867ACccd630B43f906c1665b176",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Free (no API key)",
      "item": [
        {
          "name": "Health",
          "request": {
            "method": "GET",
            "header": [],
            "url": { "raw": "{{baseUrl}}/health", "host": ["{{baseUrl}}"], "path": ["health"] },
            "description": "Liveness probe. Returns 200 with a current ISO timestamp."
          }
        },
        {
          "name": "Settlement estimate (USDC to EUR)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/settlement/estimate?amount=100",
              "host": ["{{baseUrl}}"],
              "path": ["v1", "settlement", "estimate"],
              "query": [{ "key": "amount", "value": "100", "description": "USDC amount to settle to EUR" }]
            },
            "description": "Free EUR settlement estimate: net EUR, rate, fees, and SEPA Instant timing. No auth."
          }
        },
        {
          "name": "Agent trust score (KYA)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/agent/trust-score/{{address}}",
              "host": ["{{baseUrl}}"],
              "path": ["v1", "agent", "trust-score", "{{address}}"]
            },
            "description": "Free KYA trust score (0-100) for a wallet address."
          }
        },
        {
          "name": "Agent discovery",
          "request": {
            "method": "GET",
            "header": [],
            "url": { "raw": "{{baseUrl}}/v1/agent/discovery", "host": ["{{baseUrl}}"], "path": ["v1", "agent", "discovery"] },
            "description": "Free agent discovery card: capabilities, endpoints, supported protocols."
          }
        },
        {
          "name": "Market rates",
          "request": {
            "method": "GET",
            "header": [],
            "url": { "raw": "{{baseUrl}}/v2/x402/market/rates", "host": ["{{baseUrl}}"], "path": ["v2", "x402", "market", "rates"] },
            "description": "Free stablecoin / FX reference rates."
          }
        }
      ]
    },
    {
      "name": "Paid (x402 / MPP)",
      "description": "These return HTTP 402 until you attach a payment proof. x402: send USDC via EIP-3009 transferWithAuthorization on Base, base64-encode the signed payload, retry with header PAYMENT-SIGNATURE. MPP: retry with Authorization: Payment <credential>. See the 402 body's howToPay for full instructions.",
      "item": [
        {
          "name": "Agent trust score v2 (paid)",
          "request": {
            "method": "GET",
            "header": [{ "key": "PAYMENT-SIGNATURE", "value": "<base64 x402 payload>", "disabled": true }],
            "url": {
              "raw": "{{baseUrl}}/v2/x402/agent/trust-score/{{address}}",
              "host": ["{{baseUrl}}"],
              "path": ["v2", "x402", "agent", "trust-score", "{{address}}"]
            },
            "description": "Paid ($0.005 USDC). Enriched trust score. Returns 402 with payment instructions until a proof is attached."
          }
        },
        {
          "name": "Agent deep analysis (paid)",
          "request": {
            "method": "GET",
            "header": [{ "key": "PAYMENT-SIGNATURE", "value": "<base64 x402 payload>", "disabled": true }],
            "url": {
              "raw": "{{baseUrl}}/v1/agent/deep-analysis/{{address}}",
              "host": ["{{baseUrl}}"],
              "path": ["v1", "agent", "deep-analysis", "{{address}}"]
            },
            "description": "Paid ($0.01 USDC). Full behavioral + on-chain analysis for a wallet."
          }
        },
        {
          "name": "Offramp estimate (paid)",
          "request": {
            "method": "GET",
            "header": [{ "key": "PAYMENT-SIGNATURE", "value": "<base64 x402 payload>", "disabled": true }],
            "url": {
              "raw": "{{baseUrl}}/v2/x402/offramp/estimate",
              "host": ["{{baseUrl}}"],
              "path": ["v2", "x402", "offramp", "estimate"]
            },
            "description": "Paid ($0.005 USDC). USDC to EUR offramp estimate."
          }
        },
        {
          "name": "Offramp quote (paid, signed)",
          "request": {
            "method": "POST",
            "header": [
              { "key": "Content-Type", "value": "application/json" },
              { "key": "PAYMENT-SIGNATURE", "value": "<base64 x402 payload>", "disabled": true }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"amount\": \"100\",\n  \"currency\": \"USDC\",\n  \"target\": \"EUR\",\n  \"chain\": \"base\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/v2/x402/offramp/quote",
              "host": ["{{baseUrl}}"],
              "path": ["v2", "x402", "offramp", "quote"]
            },
            "description": "Paid ($0.005 USDC). Locks a rate and returns a signed, short-lived quote_id."
          }
        },
        {
          "name": "Offramp execute (free control-plane)",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"quote_id\": \"<signed quote_id from /offramp/quote>\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/v2/x402/offramp/execute",
              "host": ["{{baseUrl}}"],
              "path": ["v2", "x402", "offramp", "execute"]
            },
            "description": "Free. Submits a locked quote for settlement. Un-onboarded agents receive onboarding_required (gated execution; no anonymous money movement)."
          }
        }
      ]
    }
  ]
}
