{"schema_version":"1.0","name":"Agent Payment Ops","description":"Platform for managing autonomous agent wallets and stablecoin payments. Create agents with spending controls, fund wallets, and let agents pay for resources. Protocols: x402 (ERC-2612 permit) on Base and Radius; MPP (direct ERC-20 transfer) on Base, Radius, and Tempo.","url":"https://agents.stablecoin.xyz","authentication":{"type":"api_key","instructions":"Create an agent and generate an API key at https://agents.stablecoin.xyz. Include the key as X-Agent-Key header for agent-authenticated endpoints (/pay). Dashboard endpoints require a user session (NextAuth)."},"capabilities":{"x402_payments":true,"mpp_payments":true,"agent_wallets":true,"spending_controls":true,"seller_allowlists":true,"policy_rules":true,"webhooks":true,"analytics":true,"transaction_export":true,"multi_chain":["radius","radius-testnet","base","base-sepolia","tempo","tempo-testnet"]},"endpoints":[{"path":"/api/agents","methods":["GET","POST"],"description":"List or create agents with managed wallets","auth_required":true},{"path":"/api/agents/{id}","methods":["GET","PATCH","DELETE"],"description":"Get, update (name/spending limits/archive), or delete an agent","auth_required":true},{"path":"/api/agents/{id}/pay","methods":["POST"],"description":"Execute a payment — auto-detects x402 (ERC-2612 permit) or MPP (direct ERC-20 transfer) from the seller 402 response. Enforces spending limits, allowlist, and policy rules. Auth: X-Agent-Key header.","auth_required":true},{"path":"/api/agents/{id}/balance","methods":["GET"],"description":"Fetch agent wallet SBC balance on-chain. Params: address, chain. No auth required.","auth_required":false},{"path":"/api/agents/{id}/send","methods":["POST"],"description":"Send SBC from the agent wallet to any address. Supports all chains with chain-specific gas handling.","auth_required":true},{"path":"/api/agents/{id}/transactions","methods":["GET"],"description":"List agent transactions with cursor pagination, status filter, and full-text search (counterparty, txHash, sellerUrl).","auth_required":true},{"path":"/api/agents/{id}/transactions/export","methods":["GET"],"description":"Export agent transactions as CSV. Optional status filter.","auth_required":true},{"path":"/api/agents/{id}/api-keys","methods":["GET","POST","DELETE"],"description":"Manage API keys for programmatic agent access. Keys are hashed on creation and returned in plaintext only once.","auth_required":true},{"path":"/api/agents/{id}/allowlist","methods":["POST","DELETE"],"description":"Manage seller addresses the agent is allowed to pay. If non-empty, payments to unlisted addresses are rejected.","auth_required":true},{"path":"/api/agents/{id}/policy-rules","methods":["GET","POST","PATCH","DELETE"],"description":"Manage spending policy rules. Types: daily_spending_limit, monthly_spending_limit, per_tx_limit, max_amount, time_restriction, per_seller_cap.","auth_required":true},{"path":"/api/agents/{id}/webhooks","methods":["GET","POST","DELETE"],"description":"Manage webhook endpoints for payment events: payment.confirmed, payment.failed, payment.rejected. Deliveries are HMAC-signed.","auth_required":true},{"path":"/api/agents/{id}/test-buy","methods":["POST"],"description":"Run a test payment against the demo seller endpoint to validate the full x402/MPP flow.","auth_required":true},{"path":"/api/analytics","methods":["GET"],"description":"Spending and earning analytics across all agents. Params: range (7d, 30d, 90d, all). Returns totals, by-network, by-status, top counterparties, and daily timeseries.","auth_required":true}],"contact":{"website":"https://stablecoin.xyz","telegram":"https://t.me/stablecoin_xyz"}}