How a paid request works
1
Call the endpoint without a key
Send the normal request, for example
GET https://api.aisa.one/apis/v1/polymarket/oi, with no Authorization header.2
Read the 402 challenge
AIsa responds with
402 Payment Required, returning an application/problem+json body and a WWW-Authenticate: Payment ... header. The challenge specifies the method (currently tempo), the intent (charge), an expiry, and the payment terms in its request parameter. The live challenge is the authoritative price for that request.3
Pay and retry
An MPP client pays the challenge and retries the same request with
Authorization: Payment <credential>. On success, the response carries the data, and the client retains the payment receipt.mppx, as well as other SDKs, are listed at mpp.dev. The same request with Authorization: Bearer $AISA_API_KEY skips the challenge and bills your AIsa balance instead.
Which endpoints accept MPP
The live list is maintained in the payment discovery document athttps://api.aisa.one/openapi.json (OpenAPI 3.1). Each operation in it carries x-payment-info with its MPP offer and documents the 402 response. Today it covers synchronous read-only data such as prediction markets, financial data, and web search; models, account endpoints such as Credits Balance, and write actions require an API key.
Check that document, not this page, before you design a flow: an endpoint that is not listed there does not accept MPP. Docs do not list MPP prices; read them from the discovery document as advisory hints and from the live challenge as the actual terms.
Controls to define first
Paying is an action with financial side effects. Treat it like any other privileged action, and decide these controls before an agent pays on its own:
Keep tool selection separate from authorization: an agent can decide a paid endpoint is useful without being allowed to buy it. Estimate the cost, compare it with the policy, get approval when the policy requires it, execute once, then verify both the receipt and the data before recording the outcome.
Safety rules for agents
- Holding a wallet, a key, or a connected MCP server does not grant permission to spend.
- Never print wallet keys, credentials, signatures, or authorization headers.
- Do not loop on billable retries; a new request is a new charge.
- Read the challenge terms before paying, and stop if they exceed the approved amount.
- Treat a settled payment as paid, not as a successful task: check the response too.
Related
Billing & Credits
How balance-based billing, cost quotes, and per-key limits work.
Autonomous API purchasing
A full purchasing workflow with approval and reconciliation steps.
Agent Discovery
Agent Card, OpenAPI, and MCP entry points for autonomous agents.
Security & Privacy
Key handling, actions, and payment safety.