A-Pay Protocol
v0.1.8Universal HTTP 402 Micropayment Protocol & Autonomous Economic Settlement Engine for AI Agents
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
apay_request
Make an HTTP request (GET, POST, etc.) to any API or website. If the endpoint returns an HTTP 402 Payment Required challenge, A-Pay automatically signs the cryptographic payment authorization within your budget limits and unlocks the data in <25ms.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target endpoint URL to fetch or query |
headers | object | Optional additional HTTP headers |
json_body | object | Optional JSON payload for POST/PUT requests |
method | string | HTTP request method (default: GET) |
apay_get_wallet_status
Inspect the agent's active non-custodial wallet address, current spending guardrails, and total spent in USDC and $APAY.
apay_set_budget
Configure agent safety invariants and spending guardrails. Prevents runaway loops or overcharging.
| Parameter | Type | Description |
|---|---|---|
daily_budget_apay | number | Maximum $APAY token rolling 24-hour spending budget |
daily_budget_usdc | number | Maximum USDC rolling 24-hour spending budget |
max_per_call_apay | number | Maximum $APAY token allowance for a single API call |
max_per_call_usdc | number | Maximum USDC allowance for a single API call |
apay_inspect_endpoint
Inspect an endpoint to check if it requires an A-Pay micropayment, inspect the exact price quote, currency, and payout receiver without spending any funds.
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL to probe for HTTP 402 payment requirements |
apay_get_balance
Inspect the agent's live on-chain balances on Base Layer 2, including native ETH (for gas), USDC, and $APAY tokens.