Paid service
Carbon Intensity API
Replaceable with a real provider later
X402 payment simulation
A realistic X402-style flow shows how an agent can discover a paid API, evaluate budget, send payment, and log a receipt.
Paid service
Carbon Intensity API
Replaceable with a real provider later
API price
$4
Returned by HTTP 402 metadata
Agent budget
$12
Autonomous spend policy
Receipt
ackend_042
Logged in repair ledger
The Carbon Accountant Agent asks for regional carbon intensity factors to refine the estimate.
GET /v1/carbon-intensity/premium?audit=bloated-saas-backend
The API exposes a machine-readable price of $3.50 for a premium audit result.
Approved because $3.50 is within the $12.00 autonomous spend limit.
A replaceable mock signer creates an X402-style payment payload for the paid service.
The agent retries the same resource request with payment authorization attached.
GET /v1/carbon-intensity/premium
Premium data confirms 92 kgCO2e/month of avoidable waste with regional adjustment factors.
Receipt rcpt_x402_bloated_saas_backend_042 is attached to the repair ledger for auditability and finance review.