Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.oneshotagent.com/llms.txt

Use this file to discover all available pages before exploring further.

Every tool execution generates a receipt — a transaction record with category, cost breakdown, optional value attribution, and the audit context (memo + decisionContext) the caller attached at call time. Receipts power spend tracking, RoCS computation, and supervisor-agent oversight.

Authentication

All analytics endpoints require the X-Agent-ID header with your wallet address. No x402 payment needed — these are free read endpoints (the value tag endpoint is also free).
-H "X-Agent-ID: 0xYourWalletAddress"

Endpoints

MethodPathDescription
GET/v1/analytics/receiptsList receipts with filters
GET/v1/analytics/spend/breakdownSpend by category
GET/v1/analytics/rocsReturn on Cognitive Spend
PATCH/v1/analytics/receipts/{receiptId}/valueTag receipt value

Receipt Categories

CategoryToolsDescription
dataresearch, browser, analyze, enrichInformation gathering
verificationverify_emailData validation
communicationemail, voice, smsOutbound messaging
commercecommerce_search, commerce_buyPurchases
infrastructurebuildWebsite/app creation
agent_to_agentsoulInter-agent transactions

Receipt Statuses

StatusMeaning
pendingExecution started, payment not yet settled
settledPayment verified on-chain (has settlement_tx)
failedExecution or payment failed
disputedUnder review

Return on Cognitive Spend (RoCS)

RoCS = total_value / total_spend
Only value tags with status: "confirmed" count toward total_value. Self-reported tags start as "pending" and must be validated by the judge service before they affect RoCS.