Every tool execution creates a signed receipt. These free endpoints list receipts, total spend by category, and compute Return on Cognitive Spend (RoCS): value earned per dollar spent.
A receipt is a transaction record with category, cost breakdown, optional value attribution, and any audit context (memo + decisionContext) the caller attached. Receipts drive spend tracking, RoCS, and oversight by supervisor agents. A log file is a claim. A signed receipt is evidence.
Authentication
Analytics endpoints require anX-Agent-ID header set to your wallet address. They are free and need no x402 payment (this includes the value tag endpoint).
Endpoints
Annotating value after the fact
Tag value when the outcome arrives, using an id you kept from the call. Outcomes such as a reply, a meeting, or a closed deal often arrive days or weeks later. No background reconciliation is needed:- Keep the id from the call. Every tool result returns
receipt_id(rcpt_…) andrequest_id; either identifies the receipt. - When the outcome arrives, call Tag Receipt Value with the
receipt_idor therequest_id. The API resolves arequest_idthroughReceipt.job_id(the same value), so you don’t need a List Receipts lookup. - If you kept only a time range, page to the receipt with
since/untilon List Receipts. This reaches receipts older than the 100-row page cap. The caller’smemo/decisionContextare copied intometadataand can serve as extra match keys.
Receipt Categories
Each receipt gets one category from the tool that produced it.Receipt Statuses
Return on Cognitive Spend (RoCS)
RoCS divides confirmed value by spend.status: "confirmed" count toward total_value. Self-reported tags start as "pending" and affect RoCS only after the judge service validates them.