Api Endpoint

AgentPay Spend Cap & Receipts

A stateful, multi-chain spending session for AI agents. One session enforces a hard USDC budget cap across every tool call, with a verifiable receipt and running ledger for each payment — not a one-shot budget check, but persistent spend governance with a full audit trail. The gateway enforces the cap for the paying wallet on Stacks and Base. USDC on Base (standard x402) or Stellar (via the AgentPay SDK); sBTC on Stacks (any Stacks x402 client).

Open interactive test console

Offering

Provider
agentpay.tools
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Blockchain And Crypto
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://agentpay.tools/v1/session/create
MIME type
application/json
First seen
2026-10-16T01:52:13.818Z
Last seen
Tags
budget, receipts, session, spend-control, agent-commerce

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
100000 atomic units
Atomic price: 100000 · Network: stellar:pubnet · Asset: CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75 · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0xE8B25A72dD6aeF69515452a61AD231C7DF2843b7"
  },
  {
    "scheme": "exact",
    "network": "stellar:pubnet",
    "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75",
    "amount": "100000",
    "payTo": "GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2"
  }
]

Observed health

Status
Reachable
Latest latency
358 ms
Average latency
940 ms
HTTP status
405
Last checked
Reachability
100% over 15 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "required": [
    "type",
    "method",
    "body"
  ],
  "properties": {
    "type": {
      "type": "string"
    },
    "method": {
      "type": "string"
    },
    "bodyType": {
      "type": "string"
    },
    "body": {
      "type": "object",
      "required": [
        "agent_address"
      ],
      "properties": {
        "agent_address": {
          "type": "string",
          "description": "Paying agent's EVM wallet address"
        },
        "max_spend": {
          "type": "string",
          "description": "Hard budget cap in USDC, e.g. '0.10'"
        },
        "label": {
          "type": "string",
          "description": "Optional human-readable session label"
        }
      }
    }
  }
}

Output schema

{
  "type": "json",
  "example": {
    "session_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
    "max_spend": "0.10",
    "gateway_url": "https://agentpay.tools",
    "tools_endpoint": "https://agentpay.tools/tools",
    "created_at": "2026-05-29T00:00:00Z",
    "receipt": {
      "tx_hash": "0xee85d8dd374b5d1cb40bfa441086af557d356acc2bb4d5819f56331fce42adee",
      "network": "eip155:8453",
      "amount_usdc": "0.01"
    }
  }
}