Changes, releases and subscriptions
Three things an assistant, a routine or a personal agent asks for that a chart does not answer on its own: what changed, whether a release helped, and a note each morning without asking. All three are plain stats API calls, so they work from a script, from the dashboard, and from the MCP server’s tools (get_changes, list_releases, mark_release, compare_release, create_subscription, list_subscriptions, delete_subscription).
What changed
Section titled “What changed”GET /api/v1/apps/{id}/changes?from=2026-10-14 compares the window from from to to (today by default, at most 90 days) with the window of the same length just before it, and says what moved (the answer calls the two windows since and until, compared_from and compared_to); filter does not apply, since changes look at the whole app:
| Field | What it holds |
|---|---|
metrics |
Users, sessions, events, and for a website page views and bounce rate: now, before, change (a ratio; null when there was nothing before) and moved |
dimensions |
The top values of a few dimensions in either window (countries, versions, screens or pages, sources, channels, for loops the loops and outcomes), each with its count and share in both windows, what moved first |
anomalies |
The hours the anomaly watch flagged in the window, as YYYY-MM-DDTHH in UTC |
moved is a fixed rule, not a model: a metric moved when it changed by a fifth of its old value and by at least 10 (5 points for a rate); a share moved by 5 points or more with at least 20 counts behind it. A flat app answers with every moved false and an empty anomalies, so a routine that asks each morning gets “nothing moved” most days and a short list on the others.
Through MCP, get_changes takes app_id, since (the last 7 days when left out) and debug.
Releases
Section titled “Releases”A release is a named moment: a version, a deploy, “the paywall change”. Mark one in Settings → Releases, with mark_release, or from a deploy script:
curl --fail-with-body -sS -X POST "https://millimetry.app/api/v1/apps/42/releases" \ -H "Authorization: Bearer $MILLIMETRY_API_TOKEN" -H "Content-Type: application/json" \ -d '{"name": "2.4.0"}'at (RFC 3339) places it in the past, up to a year back; left out, it is now. A name is 1 to 100 characters. An app keeps at most 200 marks; DELETE /apps/{id}/releases/{release_id} removes one.
Every release is a tick on the overview’s chart on its UTC day, named in the day’s readout, and GET /apps/{id}/releases/{release_id}/compare?days=7 answers “did it help”: the days before the release (1 to 30, 7 by default) against the days after, as two overview periods, plus every saved funnel’s conversion on each side. The days after may be fewer when the release is recent, and the answer says how many. Marking a release needs a role that can change settings; reading and comparing needs any role, a read token included.
Subscriptions
Section titled “Subscriptions”A subscription delivers without being asked, once a day or when something happens:
| Kind | What arrives | When |
|---|---|---|
daily_digest |
Yesterday’s users, sessions and events against the day before, and every saved funnel’s conversion yesterday | Within the first hour of each UTC day |
anomaly |
The anomaly watch’s finding, the same text the organization’s owners are emailed | The hour it is found |
Two destinations. Email goes to the address of the person who subscribes, and to no one else: there is no field for another address, so a token cannot point someone else’s inbox at an app. A webhook is an https URL you run, for a personal agent, a chat bot or a script:
- The URL resolves to a public address (never loopback, private or link-local, by every name it resolves to), carries no credentials or fragment, and is at most 512 characters. Redirects are not followed.
- Before it is kept, Millimetry posts a signed challenge (
"type": "subscription.challenge") and the URL must answer 2xx within 5 seconds; otherwise the subscription is not created. - Creating it answers with the signing key once (
ws_…). Every delivery carriesx-millimetry-signature: t=<unix seconds>,v1=<hex>, wherev1is HMAC-SHA256 with that key over"{t}.{body}". Check it before trusting a delivery, and refuse atolder than a few minutes. - A delivery that fails is retried at the next hourly sweep; after a day of failures in a row the subscription is paused, and shows so in Settings and in
list_subscriptions. Unsubscribe and subscribe again to resume. - An app has at most 10 subscriptions.
The bodies hold numbers and names only, never a session, an address or anything of a visitor beyond an event’s or a funnel’s name, cut at 200 characters:
{ "type": "daily_digest", "app_id": 42, "app": "Slicks", "day": "2026-10-20", "totals": { "users": 1203, "sessions": 1890, "events": 14022, "...": "..." }, "day_before": { "users": 1150, "...": "..." }, "funnels": [{ "name": "Paywall", "sessions": 412, "conversion": 0.061 }]}{ "type": "anomaly", "app_id": 42, "hour": "2026-10-20T14", "text": "Slicks accepted 9,000 events in an hour, 12 times the usual", "dashboard": "https://millimetry.app/apps/42/settings"}Manage them in Settings → Subscriptions, or with GET, POST and DELETE on /api/v1/apps/{id}/subscriptions: {"kind": "daily_digest", "destination_kind": "email"} or {"kind": "anomaly", "destination_kind": "webhook", "url": "https://example.com/millimetry"}. Through MCP, create_subscription takes the same three fields and delete_subscription an id from list_subscriptions.
From a routine
Section titled “From a routine”A Claude Code routine, a cron job or an n8n flow that asks get_changes each morning gets one answer and can decide whether to tell anyone. A personal agent that listens on a webhook gets the digest pushed, signed, and can read it without a token. Both are the point: the numbers come to where the work happens, and nothing about a visitor leaves with them.