Everything the dashboard shows is available as JSON, at https://millimetry.app/api/v1. Create a token under your organization’s settings → API tokens (admins and owners; read-only is all reading needs), then:
Requests carry an org token (Authorization:Bearermt_…) or the dashboard’s session cookie. A read-only token reads; one that can change settings also calls the management endpoints below (apps, keys, origins, funnels, members, exports, billing) as the person who made it, with their role, and needs no CSRF header. Deleting the organization, making tokens and changing owners take a signed-in session. Common query parameters for stats endpoints:
from, to: UTC dates, inclusive.
debug=true: debug data instead of production data.
filter=dimension:value: repeatable, for example filter=country:CA&filter=app_version:1.5.0.
compare=previous: adds the previous period of the same length.
Answers are cached for 30 seconds. Busy periods answer 503 with Retry-After. A query too heavy for its time or memory budget answers 422: narrow the dates or the filters.
The machine-readable document is at /api/v1/openapi.json. The same numbers are available to assistants and coding agents through the MCP server.
202 If the address can sign in, a link is on its way
400
429
503
POST/auth/verify
Uses a sign-in link: starts a session (the cookie) and returns who signed in. Needs
`X-Requested-With`, which a cross-site form cannot send. 404 when the link is unknown, used or
expired.
Allows or refuses the request and returns where to send the browser. Allowing makes a code
bound to the client, the redirect URI, the PKCE challenge, the resource and the ticked
organizations the person is a member of.
Deletes an app. Its keys stop at once; its data is purged after a 7-day undo window (§15.6).
Parameter
In
Type
Description
id
path
integer (int32)
204
403
404
POST/apps/{id}/export
Exports every event of the app to a file; poll `GET /jobs/{id}` for the download link (valid 7
days). Admins and owners: an export holds everything the app ever sent.
Subscribes. A webhook is challenged at once and must answer 2xx; an email goes to the person
who subscribes (a write token's maker), never to anyone else.
Creates an API token for the org: read-only, or one that also changes settings as the person
making it. Signed-in admins and owners only: a token cannot make another.
Who the calling API token is: its organization, its access and the role it acts with, so an
agent setting things up over REST knows where and what it may write. A session gets `403`
(`/me` describes a person).
AI agents (§9.1): who they are, how many requests they made for how many people, and what they
did. Totals, series and the agent list come from `agent_daily`; targets from `agent_events`.
Agents are never in the other endpoints' numbers, and `filter` does not apply here.
Parameter
In
Type
Description
id
path
integer (int32)
from (optional)
query
string
to (optional)
query
string
debug (optional)
query
boolean
agent (optional)
query
string
narrow the totals, series and targets to one agent
A funnel across what agents did (0.8.3): of the principals whose agents reached the first
target, how many went on to the next ones within the window. Requests without a principal
(crawlers; servers that report none) cannot be followed and are left out.
AI traffic in one place (spec §14.3, 0.8.0): who crawled and fetched (the agents tables), who
came from an assistant's answer (the `channel` dimension over `events`), and what those visitors
did (the first saved funnel). The two tables share nothing but the app and are never joined.
`filter` does not apply: the view narrows to AI traffic itself.
What moved since a date (spec 0.8.4): each headline metric and the top values of a few
dimensions against the window of the same length just before, with what moved beyond its
usual swing first, plus the hours the anomaly watch flagged. One call for a routine's morning
question. `from` is the start (at most 90 days back); `to` defaults to today.
One event: its trend, its text properties' top values, its number properties' statistics,
and optionally one number property by a dimension (revenue by version, §13).
Starts a subscription: a Stripe Checkout Session for the plan's Price. The plan changes only
when Stripe's webhook confirms it. An org that already pays changes plan in the Portal.
2 to 8 targets in order: tool names, endpoints (`GET /orders/:id`) or page paths, as the
agents report lists them.
window_seconds (optional)
integer (int32)
How long one principal has to go through the steps, 1 second to a day (the principal's
hash rotates daily). Default 3600.
AgentFunnelStep
Field
Type
Description
conversion
number (double)
Share of the first step's principals.
principals
integer (int64)
Principals (people the agents acted for, counted once a day) that reached this step.
step_conversion
number (double)
Share of the previous step's principals.
target
string
AgentSummary
Field
Type
Description
agent
string
denied
integer (int64)
errors
integer (int64)
failed
integer (int64)
kind
string
`assistant`, `browser`, `crawler`, `automation` or `unknown`.
ok
integer (int64)
How the requests ended (0.8.3): ok, errors, denied. The rest reported no outcome.
operator
string
The company that runs it; empty when unknown.
people
integer (int64)
requests
integer (int64)
verified
integer (int64)
Requests the customer's server (or Cloudflare) proved to be this agent; the rest are
claims read from headers.
AgentTarget
Field
Type
Description
agents
integer (int64)
channel
string
`web`, `api`, `mcp` or `agent`.
failed
integer (int64)
requests
integer (int64)
target
string
A page path or an action, with identifiers replaced by `:id`.
verified
integer (int64)
Requests the customer's server (or Cloudflare) proved; the rest are claims.
AgentTotals
Field
Type
Description
agents
integer (int64)
Distinct agents.
failed
integer (int64)
Requests that ended in an error or were denied.
for_people
integer (int64)
Requests by agents acting for someone: everything but crawlers.
missing
integer (int64)
Requests for a tool, endpoint or page the server does not offer (`outcome: missing`).
people
integer (int64)
People the agents acted for, as the customer's server reported them; counted once per day,
like visitors, because the hash rotates daily (§8).
requests
integer (int64)
verified
integer (int64)
Requests whose agent the customer's server (or Cloudflare) verified.
Agents
Field
Type
Description
agent (optional)
string, nullable
The agent the totals, series and targets are narrowed to, if any. The agent list is not.
agents
AgentSummary[]
from
string
missing
AgentTarget[]
What agents asked for and the server does not offer (0.8.3, `outcome: missing`): the
tools, endpoints and pages a customer could build next.
series
AgentDay[]
targets
AgentTarget[]
to
string
totals
AgentTotals
Ai
Field
Type
Description
agents
AiAgent[]
Crawlers and assistants that read the site or the API, by requests.
assistants
AiAssistant[]
Assistants that sent visitors, by visitors.
converted (optional)
AiFunnel | null
from
string
sampled
boolean
Whether the visitors' numbers are estimates from a sample (the agents' never are).
series
AiDay[]
to
string
totals
AiTotals
AiAgent
Field
Type
Description
agent
string
kind
string
`crawler` or `assistant`.
requests
integer (int64)
AiAssistant
Field
Type
Description
assistant
string
The referrer source: ChatGPT, Claude, Perplexity, Gemini, Copilot…
visitors
integer (int64)
AiDay
Field
Type
Description
crawled
integer (int64)
day
string
fetched
integer (int64)
visitors
integer (int64)
AiFunnel
Field
Type
Description
id
integer (int64)
name
string
steps
FunnelStep[]
The saved funnel's steps, counted over the sessions the channel referred.
AiTotals
Field
Type
Description
crawled
integer (int64)
Requests by AI crawlers: pages collected for training or an AI search index.
fetched
integer (int64)
Requests by assistants fetching or acting for a person right now.
sessions
integer (int64)
Their sessions.
visitors
integer (int64)
Visitors (daily-rotating) who arrived from an assistant's answer: the `AI assistants`
channel. An assistant that opens a page inside an app sends no referrer, so this is a floor.
AppChange
Field
Type
Description
name (optional)
string, nullable
origins (optional)
string[]
paused (optional)
boolean, nullable
A paused app's events are dropped and counted (§15.1).
AppView
Field
Type
Description
created_at
string
has_forwarding_secret
boolean
id
integer (int32)
keys
string[]
The active public keys (`ak_…` for apps, `wk_…` for sites), oldest first. Public: they go
in the app or the page.
kind
string
`app` (SDK batches) or `web` (the tracker).
name
string
org_id
integer (int64)
origins
string[]
Web only: origins allowed to send events.
paused
boolean
AuthorizeParams
The authorization request's parameters, as the client put them in the URL.
Field
Type
Description
client_id (optional)
string, nullable
code_challenge (optional)
string, nullable
code_challenge_method (optional)
string, nullable
redirect_uri (optional)
string, nullable
resource (optional)
string, nullable
response_type (optional)
string, nullable
scope (optional)
string, nullable
state (optional)
string, nullable
BillingView
Field
Type
Description
billing_enabled
boolean
Whether Checkout and the Portal are available on this server.
cancel_at (optional)
string, nullable
When the subscription ends instead of renewing (cancelled at period end); `null` while it renews.
effective_events_per_month
integer (int64)
The limit in force: the free plan's once a past-due grace period has ended.
events_per_month
integer (int64)
The plan's monthly events.
grace_until (optional)
string, nullable
hard_limit_percent
integer (int64)
Events are accepted up to this share of the limit, then dropped (§15.4).
has_billing_account
boolean
Whether the org has a Stripe customer, so the Portal can open.
period_end (optional)
string, nullable
plan
string
plans
PlanView[]
status
string
`none`, `active`, `past_due` or `canceled`.
used_this_month
integer (int64)
Breakdown
Field
Type
Description
dimension
string
metric
string
rows
Row2[]
sampled
boolean
source
string
Changes
Field
Type
Description
anomalies
string[]
Hours the anomaly watch flagged since `since`, as `YYYY-MM-DDTHH` UTC.
compared_from
string
The window of the same length just before, which everything is compared with.
compared_to
string
dimensions
ValueChange[]
The top values of a few dimensions in either window, with what moved first.
metrics
MetricChange[]
since
string
until
string
CheckoutRequest
Field
Type
Description
plan
string
The plan to subscribe to, e.g. `pro_1m`.
Connection
One of the person's grants, as the account page lists it.
Field
Type
Description
client_kind
string
`cimd` when the name comes from a document on a known host; `dcr` when the client named
itself, which the page says.
client_name
string
The client's name from its metadata document, or what it registered as.
created_at
string
id
integer (int64)
last_used_at (optional)
string, nullable
orgs
string[]
The organizations it may read (those still existing).
redirect_hosts
string[]
Where it sends the person back: the redirect hosts.
Consent
What the consent page shows.
Field
Type
Description
client_id
string
client_kind
string
`cimd` (named by a document on a known host) or `dcr` (named itself: "an unverified app").
client_name
string
The client's name: from its metadata document, or what it registered as.
loopback
boolean
Whether that is their own machine (a desktop client), which the page warns about.
orgs
ConsentOrg[]
redirect_host
string
Where the person will be sent back.
scope
string
ConsentOrg
An organization the person may let the client read.
Field
Type
Description
id
integer (int64)
name
string
role
string
CreatedApp
Field
Type
Description
app
AppView
key
string
The first public key (`ak_…` or `wk_…`).
CreatedSubscription
Field
Type
Description
secret (optional)
string, nullable
The webhook's signing key (`ws_…`), shown once; absent for email.
subscription
SubscriptionView
CreatedToken
object
DayPoint
Field
Type
Description
day
string
events
integer (int64)
sessions
integer (int64)
users
integer (int64)
Decision
The person's answer.
object
DeleteOrg
Field
Type
Description
confirm
string
The org's name, typed back: deleting is irreversible.
EventDetail
Field
Type
Description
name
string
number_properties
NumberProperty[]
property_by (optional)
PropertyGroup[]
With `property` and `by`: the number property per value of the dimension.
sampled
boolean
series
DayPoint[]
string_properties
StringProperty[]
EventSummary
Field
Type
Description
events
integer (int64)
name
string
series
integer (int64)[]
Events per day over the window, oldest first, one entry per day (zeros included).
users
integer (int64)
EventsList
Field
Type
Description
events
EventSummary[]
sampled
boolean
ExportFormat
"parquet" | "csv"
ExportRequest
Field
Type
Description
format (optional)
ExportFormat
`parquet` (default) or `csv`.
ForwardingSecret
Field
Type
Description
secret
string
Shown once; the previous secret stops working.
Funnel
Field
Type
Description
groups
FunnelGroup[]
One group without a breakdown; with one, the biggest groups by first-step sessions.
more_groups
boolean
Whether groups beyond the first 20 were left out.
sampled
boolean
FunnelComparison
Field
Type
Description
conversion_after
number (double)
conversion_before
number (double)
The last step's share of the first, before and after.
id
integer (int64)
name
string
sessions_after
integer (int64)
sessions_before
integer (int64)
FunnelGroup
Field
Type
Description
group
string
The breakdown value, or empty without a breakdown.
steps
FunnelStep[]
FunnelRequest
Field
Type
Description
breakdown (optional)
string, nullable
steps
string[]
window_seconds (optional)
integer (int32)
FunnelStep
Field
Type
Description
conversion
number (double)
Share of the first step's sessions.
name
string
sessions
integer (int64)
Sessions that reached this step.
step_conversion
number (double)
Share of the previous step's sessions.
FunnelView
Field
Type
Description
breakdown (optional)
string, nullable
created_at
string
id
integer (int64)
name
string
steps
string[]
window_seconds
integer (int32)
HeatCell
Sessions active in one weekday-hour: a session spanning two hours counts in both.
Field
Type
Description
hour
integer (int32)
0–23, UTC.
sessions
integer (int64)
weekday
integer (int32)
1 = Monday … 7 = Sunday.
Heatmap
Field
Type
Description
cells
HeatCell[]
sampled
boolean
InvitationInfo
Field
Type
Description
email
string
org_name
string
role
string
InvitationView
Field
Type
Description
email
string
expires_at
string
id
string
role
string
JobStarted
Field
Type
Description
job_id
integer (int64)
JobView
Field
Type
Description
created_at
string
error (optional)
string, nullable
id
integer (int64)
kind
string
result (optional)
object, nullable
state
string
`pending`, `running`, `done` or `failed`.
Joined
Field
Type
Description
org_id
integer (int64)
KeyView
Field
Type
Description
created_at
string
key
string
revoked_at (optional)
string, nullable
LinkInfo
Field
Type
Description
email
string
The address the link signs in as.
LinkRequest
Field
Type
Description
email
string
Live
Field
Type
Description
events
integer (int64)
minutes
integer (int32)
sessions
integer (int64)
Me
Field
Type
Description
orgs
object[]
user
object
Member
Field
Type
Description
email
string
name (optional)
string, nullable
role
string
`owner`, `admin`, `member` or `viewer`.
user_id
integer (int64)
MetricChange
Field
Type
Description
before
number (double)
change (optional)
number (double), nullable
`(now - before) / before`; null when there was nothing before.
metric
string
moved
boolean
Beyond the usual swing: a fifth of the old value and at least 10 (5 points for a rate).
now
number (double)
NewApp
Field
Type
Description
kind
string
`app`, `web`, or `agent` for loops (spec 0.8.2): the agents, routines and scripts you run.
name
string
org_id
integer (int64)
origins (optional)
string[]
NewInvitation
Field
Type
Description
email
string
role
string
`admin`, `member` or `viewer`; `owner` only from an owner.
NewKey
Field
Type
Description
key
string
NewOrg
Field
Type
Description
name
string
NewRelease
Field
Type
Description
at (optional)
string, nullable
When, RFC 3339; now when absent. Not in the future, not more than a year back.
name
string
What shipped: a version, a deploy, "the paywall change". 1 to 100 characters.
NewSavedFunnel
Field
Type
Description
breakdown (optional)
string, nullable
name
string
steps
string[]
window_seconds (optional)
integer (int32)
NewSubscriptionBody
Field
Type
Description
destination_kind
string
`email` (to your own address) or `webhook`.
kind
string
`daily_digest` or `anomaly`.
url (optional)
string, nullable
The webhook's https URL. Left out for email: it goes to the person who subscribes.
NewToken
Field
Type
Description
access (optional)
string
`read` (default): stats and settings, every app in the org. `write`: also creates and
changes apps, keys, origins, members and the rest, as the person making it, with their role
at the time of each request.
name
string
NumberProperty
Field
Type
Description
count
integer (int64)
key
string
mean
number (double)
median
number (double)
p95
number (double)
sum
number (double)
OrgChange
Field
Type
Description
name
string
OrgCreated
Field
Type
Description
id
integer (int64)
Overview
Field
Type
Description
current
Period
previous (optional)
Period | null
sampled
boolean
source
string
`daily_totals` (rollup) or `events` (raw, when filtered).
Paths
Field
Type
Description
after
string
next
Row2[]
sampled
boolean
PathsRequest
Field
Type
Description
after
string
Period
Field
Type
Description
from
string
series
DayPoint[]
to
string
totals
Totals
PlanView
Field
Type
Description
events_per_month
integer (int64)
id
string
price_usd_month
integer (int32)
purchasable
boolean
Whether it can be bought now (its Stripe Price is configured).
PropertyGroup
Field
Type
Description
count
integer (int64)
median
number (double)
sum
number (double)
value
string
Redirect
Field
Type
Description
url
string
Stripe's page; the browser goes there.
ReleaseComparison
Field
Type
Description
after
Period
before
Period
days
integer (int64)
How many days each side holds; the days after may be fewer when the release is recent.
funnels
FunnelComparison[]
release
ReleaseView
ReleaseView
Field
Type
Description
at
string
When it shipped, RFC 3339.
created_at
string
id
integer (int64)
name
string
RoleChange
Field
Type
Description
role
string
`owner`, `admin`, `member` or `viewer`.
Row2
Field
Type
Description
count
integer (int64)
value
string
SessionInfo
Field
Type
Description
created_at
string
current
boolean
expires_at
string
id
string
SessionItem
Field
Type
Description
app_version
string
country
string
duration_seconds
integer (int64)
ended
string
entry
string
First page (web) or `screen` property (apps).
events
integer (int64)
exit
string
id
string
pageviews
integer (int64)
platform
string
referrer_source
string
started
string
SessionSummary
Field
Type
Description
bounce_rate
number (double)
events_per_session
number (double)
median_seconds
number (double)
sessions
integer (int64)
Sessions
Field
Type
Description
sessions
SessionItem[]
summary
SessionSummary
StringProperty
Field
Type
Description
key
string
values
Row2[]
SubscriptionView
Field
Type
Description
confirmed
boolean
A webhook answered its challenge; an email is confirmed at once.
created_at
string
destination
string
The webhook's URL, or the email address.
destination_kind
string
`email` or `webhook`.
failures
integer (int32)
Deliveries failed in a row; paused after a day of them.
id
integer (int64)
kind
string
`daily_digest` or `anomaly`.
last_delivery_at (optional)
string, nullable
paused
boolean
ThisToken
Field
Type
Description
access
string
`read`, or `write`: also changes settings, as the person who made it.
org_id
integer (int64)
org_name
string
role
string
The role it acts with: `viewer` for a read token, its maker's role now for a write token.
TimelineEvent
Field
Type
Description
name
string
pathname
string
properties
object
screen
string
ts
string
TokenView
Field
Type
Description
access
string
`read`, or `write`: also changes settings, as the person who made it.
created_at
string
id
integer (int64)
name
string
Totals
Field
Type
Description
bounce_rate
number (double)
Sessions with at most one page view and one event (web).
events
integer (int64)
events_per_session
number (double)
median_session_seconds
number (double)
pageviews
integer (int64)
sessions
integer (int64)
users
integer (int64)
Daily-rotating visitors: a person counts once per day (§19).
Usage
Field
Type
Description
events_per_month
integer (int64)
from
string
org_events_this_month
integer (int64)
Accepted events this calendar month for the whole org (the quota counts per org).
outcomes
object
Ingest outcomes for this app over the window (§6 ingest_counters).
plan
string
to
string
ValueChange
Field
Type
Description
before
integer (int64)
dimension
string
moved
boolean
The share moved by 5 points or more, with at least 20 counts behind it.