{"uid":"cap_sxusBv8foCr3QKcX7QGqI","slug":"rubric-protocol-x402-spend-statement-1d89ca13","name":"Rubric Protocol x402 Spend Statement","description":"Signed monthly x402 spend statement for one agent: totals, per-payment lines, Merkle root. The statement is itself an ML","url":"https://rubric-protocol.com/v1/x402/statement","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"format":{"type":"string"},"example":{}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.5","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IbdbL3WOwLoZwOktqGqNS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a signed monthly x402 spend statement for a single agent, including payment totals, per-payment line items, and a Merkle root, returned as a signed ML document.","exampleAgentPrompt":"Can you pull the signed monthly x402 spend statement for my agent, including the payment totals, all individual payment lines, and the Merkle root for this billing period?","exampleUseCases":[{"title":"Monthly agent billing audit","prompt":"Generate a signed x402 spend statement for my agent for last month — I need the total spend, each payment line, and the Merkle root so I can reconcile with our accounting records."},{"title":"Compliance attestation for agent payments","prompt":"I need an attested, Merkle-rooted payment statement for my AI agent covering this month's x402 transactions so I can submit it to our compliance team as proof of spend."},{"title":"Multi-party billing verification","prompt":"Produce a cryptographically signed monthly spend statement for my agent's x402 activity, including per-payment line items and the Merkle root, so the counterparty can independently verify what was charged."}],"resultDescription":"A signed monthly statement document (itself an ML artifact) containing the agent's total x402 spend for the period, individual per-payment line items, and a Merkle root that allows independent verification of the statement's completeness and integrity.","failureModes":["No payment records found for the specified agent in the given period — returns empty or error response","Invalid or missing agent identifier — 400 bad request","Billing period out of range or malformed — 422 validation error","Payment processing failure for the $0.5 USDC service fee — request rejected before statement is generated","Internal signing or Merkle computation failure — 500 server error"],"whenToPreferThis":"Choose this endpoint when you need a cryptographically signed, Merkle-rooted monthly financial statement for a single AI agent's x402 payment activity — particularly for compliance reporting, cross-party billing verification, or auditable accounting records. Prefer it over generic payment logs when tamper-proof attestation and a structured ML document format are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:49:49.239Z","isFirstParty":false}