# How Agents Buy API Calls Safely

AgentPay MCP is the flagship AgentIndex payment offer because it makes paid tool use policy-aware before any money moves.

Safe agent purchasing follows this flow:

1. Discover an agent-readable offer through offers.json or AgentIndex search.
2. Check trust metadata, identity support, proof format, and sponsored disclosure.
3. Request a quote before charge.
4. Compare the quoted amount against the agent budget and max-spend policy.
5. Execute only through a sandbox or approved payment rail.
6. Store the structured receipt and work evidence.

The public AgentIndex demo is sandbox-only. Quote and purchase endpoints return JSON proof artifacts and never move funds.

Flagship sandbox files:

- /sandbox/quote/agentpay-mcp.json
- /sandbox/purchase/agentpay-mcp.json
- /mcp/compare_offer_trust.agentpay-mcp.json
