Machine-to-machine payment protocol on Stellar. Pay-per-request billing for AI agents and APIs. Meter every request off-chain, settle on-chain with a Soroban escrow contract.
AgentPay pairs a metering and billing API with a Stellar smart contract, so usage is fast to record and trustworthy to settle.
Register a service with a price in stroops and record usage per agent. Every request is counted, capped and auditable.
A Soroban escrow contract on Stellar mirrors usage counters and settles balances with tiered pricing and admin controls.
API keys, idempotent writes, rate limits and cursor pagination make it safe for autonomous clients to call at machine speed.
Audit event log, webhooks with signed retries, Prometheus metrics and deep health checks for every subsystem.
POST /api/v1/services with a serviceId and per-request price.
Agents call your API; record each call with POST /api/v1/usage.
Billing endpoints compute what is owed; settlement drains counters on-chain.
The dashboard talks to the deployed backend. Browse services, agents and usage, or go straight to the API reference and the contract on stellar.expert.