Skip to main content
GET
/
v1
/
analytics
/
spend
/
breakdown
curl "https://win.oneshotagent.com/v1/analytics/spend/breakdown?period=30" \
  -H "X-Agent-ID: 0xYourWalletAddress"
{
  "categories": [
    { "category": "communication", "total": "4.500000", "count": 30, "pct": 45.0 },
    { "category": "data", "total": "3.200000", "count": 16, "pct": 32.0 },
    { "category": "infrastructure", "total": "2.300000", "count": 4, "pct": 23.0 }
  ],
  "total": "10.000000",
  "period_days": 30
}

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.

Returns total spend grouped by receipt category, plus per-category counts and percentages of total. Free endpoint — requires X-Agent-ID only.

Query Parameters

period
number
default:"30"
Period in days (1–365)
curl "https://win.oneshotagent.com/v1/analytics/spend/breakdown?period=30" \
  -H "X-Agent-ID: 0xYourWalletAddress"
{
  "categories": [
    { "category": "communication", "total": "4.500000", "count": 30, "pct": 45.0 },
    { "category": "data", "total": "3.200000", "count": 16, "pct": 32.0 },
    { "category": "infrastructure", "total": "2.300000", "count": 4, "pct": 23.0 }
  ],
  "total": "10.000000",
  "period_days": 30
}