Useful for
- A revenue snapshot — total earnings per agent over any date range.
- Tracking MRR and active subscribers to see growth at a glance.
- Seeing which plans get used (credits burned, unique users) so you can price and iterate.
Try it yourself
How it works
There are two layers: aggregated organization analytics (Premium tier) and always-available building blocks.Organization analytics (Premium tier)
Set the analytics base once, then pull each metric (Discover your
from/to are ISO-8601; from inclusive, to exclusive):orgId from the records themselves — every item in GET /protocol/plans and /protocol/agents carries .orgId and .organizationName; take the most common non-null .orgId across your published items (no separate lookup endpoint exists). Only call analytics if it matches ^org-[0-9a-f-]+$. Three failure modes to handle:- A foreign / non-admin org returns
403 BCK.AUTH.0004(“Organisation admin privileges required”). - A non-Premium org returns
403 BCK.ORGANIZATIONS.0022. - A malformed or placeholder org id (e.g. an unsubstituted
<ORG_ID>) returns a silent200of all-zeros — never report that as real revenue. Validate the id shape first, and treat a zero result while you have published plans as a failure: fall back to the building blocks below.
The
revenue/usage rows are labelled agentId/agentName but are actually grouped by plan. Money fields like totalRevenue are stringified integers in 6-decimal token units — divide by 1,000,000 for USD. (creditsBurned is a plain credit count, not money.)Building blocks (any tier)
These need no Premium and no Each returns
orgId — they’re scoped to your API key:{ total, page, offset, plans|agents: [ … ] } where every item is the full record — read the name from metadata.main.name and the id from id. Combine with per-holder balances (GET /protocol/plans/{planId}/balance/{address}) to approximate usage when analytics aren’t available.Per-request usage (optional)
For token-level usage and cost tracking, the SDK integrates with Helicone via
payments.observability. See AI Agents Observability for the full picture.Related
Register a plan & agent
Publish the agents and plans this report measures.
AI Agents Observability
Usage, cost, and performance tracking for your agents.
Add payments to your agent
Start charging so there’s revenue to report.