Skip to content

Stats API

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:

Terminal window
curl -H "Authorization: Bearer mt_…" \
"https://millimetry.app/api/v1/apps/42/overview?from=2026-09-01&to=2026-09-30"

Requests carry an org token (Authorization: Bearer mt_…) 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.

Auth

Sign-in links, sessions.

POST /auth/logout

Ends this session.

  • 204

POST /auth/magic-link

Sends a sign-in link.

Body: LinkRequest

  • 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.

Body: VerifyRequest

  • 200 LinkInfo Signed in; the session cookie is set
  • 403
  • 404

GET /me

Who is signed in, and their orgs and roles.

GET /me/connections

The assistants connected to this account (spec §16.1 phase M2).

DELETE /me/connections/{id}

Ends a connection: its tokens stop working on the next call.

ParameterInTypeDescription
idpathinteger (int64)
  • 204
  • 401
  • 403
  • 404

GET /me/sessions

The signed-in person's active sessions.

DELETE /me/sessions/{id}

Signs out one session (another device).

ParameterInTypeDescription
idpathstringThe session id from /me/sessions
  • 204
  • 404

GET /oauth/authorize

What the consent page shows for this request, once every parameter checks out.

ParameterInTypeDescription
client_idquerystring
redirect_uriquerystring
response_typequerystring
code_challengequerystring
code_challenge_methodquerystring
state (optional)querystring
scope (optional)querystring
resource (optional)querystring

POST /oauth/authorize

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.

Body: Decision

Apps

Apps, web sites and their keys.

GET /apps

The apps the caller may see, across their orgs.

POST /apps

Creates an app or web site with its first key.

Body: NewApp

GET /apps/{id}

One app.

ParameterInTypeDescription
idpathinteger (int32)

PATCH /apps/{id}

Renames an app, replaces a site's origins, or pauses and resumes ingest.

ParameterInTypeDescription
idpathinteger (int32)

Body: AppChange

DELETE /apps/{id}

Deletes an app. Its keys stop at once; its data is purged after a 7-day undo window (§15.6).

ParameterInTypeDescription
idpathinteger (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.

ParameterInTypeDescription
idpathinteger (int64)

Body: ExportRequest

POST /apps/{id}/forwarding-secret

Issues a new forwarding secret: for a proxied web install (§12.2) and for reporting AI agents server to server (§7.5).

ParameterInTypeDescription
idpathinteger (int32)

GET /apps/{id}/funnels

The app's saved funnels.

ParameterInTypeDescription
idpathinteger (int32)

POST /apps/{id}/funnels

Saves a funnel for everyone in the org to reuse.

ParameterInTypeDescription
idpathinteger (int32)

Body: NewSavedFunnel

DELETE /apps/{id}/funnels/{funnel_id}

Deletes a saved funnel.

ParameterInTypeDescription
idpathinteger (int32)
funnel_idpathinteger (int64)
  • 204
  • 403
  • 404

GET /apps/{id}/keys

The app's keys, active and revoked.

ParameterInTypeDescription
idpathinteger (int32)

POST /apps/{id}/keys

Adds a key. Rotation is an overlap: add, ship it, revoke the old one later.

ParameterInTypeDescription
idpathinteger (int32)

DELETE /apps/{id}/keys/{key}

Revokes a key. Ingest stops accepting it within a minute (its key cache).

ParameterInTypeDescription
idpathinteger (int32)
keypathstring
  • 204
  • 403
  • 404

GET /apps/{id}/releases

The app's releases, newest first.

ParameterInTypeDescription
idpathinteger (int32)

POST /apps/{id}/releases

Marks a release.

ParameterInTypeDescription
idpathinteger (int32)

Body: NewRelease

DELETE /apps/{id}/releases/{release_id}

Removes a release mark.

ParameterInTypeDescription
idpathinteger (int32)
release_idpathinteger (int64)
  • 204
  • 403
  • 404

GET /apps/{id}/subscriptions

The app's subscriptions.

ParameterInTypeDescription
idpathinteger (int32)

POST /apps/{id}/subscriptions

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.

ParameterInTypeDescription
idpathinteger (int32)

Body: NewSubscriptionBody

DELETE /apps/{id}/subscriptions/{subscription_id}

Unsubscribes.

ParameterInTypeDescription
idpathinteger (int32)
subscription_idpathinteger (int64)
  • 204
  • 403
  • 404

GET /jobs/{id}

A job the caller's org started (exports).

ParameterInTypeDescription
idpathinteger (int64)

Orgs

Orgs, members and API tokens.

GET /invitations

What an invitation link is for, before signing in to accept it. 404 when used or expired.

ParameterInTypeDescription
tokenquerystring

POST /invitations/accept

Joins the org. The signed-in address must be the invited one; otherwise, and when the link is used or expired, 404.

Body: AcceptInvitation

POST /orgs

Creates an org with the caller as its owner, on the free plan.

Body: NewOrg

PATCH /orgs/{id}

Renames the org.

ParameterInTypeDescription
idpathinteger (int64)

Body: OrgChange

  • 204
  • 400
  • 403
  • 404

DELETE /orgs/{id}

Deletes the org: every app stops at once and all its data is purged within minutes (§15.6). Owners only, and the body must repeat the org's name.

ParameterInTypeDescription
idpathinteger (int64)

Body: DeleteOrg

  • 204
  • 400
  • 403
  • 404

GET /orgs/{id}/invitations

Pending invitations.

ParameterInTypeDescription
idpathinteger (int64)

POST /orgs/{id}/invitations

Invites someone by email. Inviting the same address again replaces the earlier invitation.

ParameterInTypeDescription
idpathinteger (int64)

Body: NewInvitation

DELETE /orgs/{id}/invitations/{invitation_id}

Withdraws a pending invitation; its link stops working.

ParameterInTypeDescription
idpathinteger (int64)
invitation_idpathstring
  • 204
  • 403
  • 404

GET /orgs/{id}/members

The org's members and roles. Invitations come with Milestone B (§20 phase 7).

ParameterInTypeDescription
idpathinteger (int64)

PATCH /orgs/{id}/members/{user_id}

Changes a member's role. Admins change admins, members and viewers; owners also owners.

ParameterInTypeDescription
idpathinteger (int64)
user_idpathinteger (int64)

Body: RoleChange

  • 204
  • 400
  • 403
  • 404

DELETE /orgs/{id}/members/{user_id}

Removes a member; any member may remove themselves (leave). The last owner cannot go.

ParameterInTypeDescription
idpathinteger (int64)
user_idpathinteger (int64)
  • 204
  • 400
  • 403
  • 404

GET /orgs/{id}/tokens

The org's API tokens (never the tokens themselves).

ParameterInTypeDescription
idpathinteger (int64)

POST /orgs/{id}/tokens

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.

ParameterInTypeDescription
idpathinteger (int64)

Body: NewToken

DELETE /orgs/{id}/tokens/{token_id}

Revokes an API token at once.

ParameterInTypeDescription
idpathinteger (int64)
token_idpathinteger (int64)
  • 204
  • 403
  • 404

GET /token

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).

Stats

Dashboard queries.

GET /apps/{id}/agents

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.

ParameterInTypeDescription
idpathinteger (int32)
from (optional)querystring
to (optional)querystring
debug (optional)queryboolean
agent (optional)querystringnarrow the totals, series and targets to one agent

POST /apps/{id}/agents/funnel

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.

ParameterInTypeDescription
idpathinteger (int32)
from (optional)querystring
to (optional)querystring
debug (optional)queryboolean

Body: AgentFunnelRequest

GET /apps/{id}/ai

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.

ParameterInTypeDescription
idpathinteger (int32)
from (optional)querystring
to (optional)querystring
debug (optional)queryboolean
  • 200 Ai
  • 400
  • 404

GET /apps/{id}/breakdown

Top values of one dimension by events, sessions or users (§16).

ParameterInTypeDescription
idpathinteger (int32)
dimensionquerystring
metric (optional)querystring
limit (optional)queryinteger (int32)
from (optional)querystring
to (optional)querystring
filter (optional)querystring[]

GET /apps/{id}/changes

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.

ParameterInTypeDescription
idpathinteger (int32)
from (optional)querystring
to (optional)querystring
debug (optional)queryboolean

GET /apps/{id}/events

The app's events by count, each with a daily series for a sparkline (§14.3).

ParameterInTypeDescription
idpathinteger (int32)
limit (optional)queryinteger (int32)
from (optional)querystring
to (optional)querystring
filter (optional)querystring[]

GET /apps/{id}/events/{name}

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).

ParameterInTypeDescription
idpathinteger (int32)
namepathstring
property (optional)querystring
by (optional)querystring
from (optional)querystring
to (optional)querystring
filter (optional)querystring[]

POST /apps/{id}/funnel

Ordered steps within a session and a time window (§13 funnel), optionally per dimension value.

ParameterInTypeDescription
idpathinteger (int32)
from (optional)querystring
to (optional)querystring
filter (optional)querystring[]

Body: FunnelRequest

GET /apps/{id}/heatmap

Sessions by weekday and hour (§13).

ParameterInTypeDescription
idpathinteger (int32)
from (optional)querystring
to (optional)querystring
filter (optional)querystring[]

GET /apps/{id}/live

Sessions active in the last 5 minutes (§14.3). Never cached.

ParameterInTypeDescription
idpathinteger (int32)
debug (optional)queryboolean

GET /apps/{id}/overview

KPIs and the daily series, from `daily_totals` when unfiltered and raw `events` when filtered.

ParameterInTypeDescription
idpathinteger (int32)
from (optional)querystring
to (optional)querystring
debug (optional)queryboolean
filter (optional)querystring[]dimension:value, repeatable
compare (optional)querystring

POST /apps/{id}/paths

What happens next after an event, within a session (§13).

ParameterInTypeDescription
idpathinteger (int32)
from (optional)querystring
to (optional)querystring
filter (optional)querystring[]

Body: PathsRequest

GET /apps/{id}/releases/{release_id}/compare

The days before a release against the days after: the overview and every saved funnel, so "did the 1.5 paywall convert better?" is one call.

ParameterInTypeDescription
idpathinteger (int32)
release_idpathinteger (int64)
days (optional)queryinteger (int64)
debug (optional)queryboolean

GET /apps/{id}/sessions

Recent sessions and the window's session statistics. No user identity exists to show (§14.3).

ParameterInTypeDescription
idpathinteger (int32)
limit (optional)queryinteger (int32)
from (optional)querystring
to (optional)querystring
filter (optional)querystring[]platform, country, os_name or app_version only

GET /apps/{id}/sessions/{session_id}

One session's events in order.

ParameterInTypeDescription
idpathinteger (int32)
session_idpathstring
debug (optional)queryboolean

GET /apps/{id}/usage

Ingest health and the org's quota (§16).

ParameterInTypeDescription
idpathinteger (int32)
from (optional)querystring
to (optional)querystring

Billing

Plans, usage and Stripe billing.

GET /orgs/{id}/billing

The org's plan, usage and the plans on offer.

ParameterInTypeDescription
idpathinteger (int64)

POST /orgs/{id}/billing/checkout

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.

ParameterInTypeDescription
idpathinteger (int64)

Body: CheckoutRequest

POST /orgs/{id}/billing/portal

Opens the Stripe Customer Portal: change plan, update the card, invoices, cancel.

ParameterInTypeDescription
idpathinteger (int64)

Schemas

AcceptInvitation

FieldTypeDescription
tokenstring

AgentDay

FieldTypeDescription
daystring
for_peopleinteger (int64)
requestsinteger (int64)

AgentFunnel

FieldTypeDescription
stepsAgentFunnelStep[]

AgentFunnelRequest

FieldTypeDescription
agent (optional)string, nullableNarrow to one agent, by name.
stepsstring[]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

FieldTypeDescription
conversionnumber (double)Share of the first step's principals.
principalsinteger (int64)Principals (people the agents acted for, counted once a day) that reached this step.
step_conversionnumber (double)Share of the previous step's principals.
targetstring

AgentSummary

FieldTypeDescription
agentstring
deniedinteger (int64)
errorsinteger (int64)
failedinteger (int64)
kindstring`assistant`, `browser`, `crawler`, `automation` or `unknown`.
okinteger (int64)How the requests ended (0.8.3): ok, errors, denied. The rest reported no outcome.
operatorstringThe company that runs it; empty when unknown.
peopleinteger (int64)
requestsinteger (int64)
verifiedinteger (int64)Requests the customer's server (or Cloudflare) proved to be this agent; the rest are claims read from headers.

AgentTarget

FieldTypeDescription
agentsinteger (int64)
channelstring`web`, `api`, `mcp` or `agent`.
failedinteger (int64)
requestsinteger (int64)
targetstringA page path or an action, with identifiers replaced by `:id`.
verifiedinteger (int64)Requests the customer's server (or Cloudflare) proved; the rest are claims.

AgentTotals

FieldTypeDescription
agentsinteger (int64)Distinct agents.
failedinteger (int64)Requests that ended in an error or were denied.
for_peopleinteger (int64)Requests by agents acting for someone: everything but crawlers.
missinginteger (int64)Requests for a tool, endpoint or page the server does not offer (`outcome: missing`).
peopleinteger (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).
requestsinteger (int64)
verifiedinteger (int64)Requests whose agent the customer's server (or Cloudflare) verified.

Agents

FieldTypeDescription
agent (optional)string, nullableThe agent the totals, series and targets are narrowed to, if any. The agent list is not.
agentsAgentSummary[]
fromstring
missingAgentTarget[]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.
seriesAgentDay[]
targetsAgentTarget[]
tostring
totalsAgentTotals

Ai

FieldTypeDescription
agentsAiAgent[]Crawlers and assistants that read the site or the API, by requests.
assistantsAiAssistant[]Assistants that sent visitors, by visitors.
converted (optional)AiFunnel | null
fromstring
sampledbooleanWhether the visitors' numbers are estimates from a sample (the agents' never are).
seriesAiDay[]
tostring
totalsAiTotals

AiAgent

FieldTypeDescription
agentstring
kindstring`crawler` or `assistant`.
requestsinteger (int64)

AiAssistant

FieldTypeDescription
assistantstringThe referrer source: ChatGPT, Claude, Perplexity, Gemini, Copilot…
visitorsinteger (int64)

AiDay

FieldTypeDescription
crawledinteger (int64)
daystring
fetchedinteger (int64)
visitorsinteger (int64)

AiFunnel

FieldTypeDescription
idinteger (int64)
namestring
stepsFunnelStep[]The saved funnel's steps, counted over the sessions the channel referred.

AiTotals

FieldTypeDescription
crawledinteger (int64)Requests by AI crawlers: pages collected for training or an AI search index.
fetchedinteger (int64)Requests by assistants fetching or acting for a person right now.
sessionsinteger (int64)Their sessions.
visitorsinteger (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

FieldTypeDescription
name (optional)string, nullable
origins (optional)string[]
paused (optional)boolean, nullableA paused app's events are dropped and counted (§15.1).

AppView

FieldTypeDescription
created_atstring
has_forwarding_secretboolean
idinteger (int32)
keysstring[]The active public keys (`ak_…` for apps, `wk_…` for sites), oldest first. Public: they go in the app or the page.
kindstring`app` (SDK batches) or `web` (the tracker).
namestring
org_idinteger (int64)
originsstring[]Web only: origins allowed to send events.
pausedboolean

AuthorizeParams

The authorization request's parameters, as the client put them in the URL.

FieldTypeDescription
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

FieldTypeDescription
billing_enabledbooleanWhether Checkout and the Portal are available on this server.
cancel_at (optional)string, nullableWhen the subscription ends instead of renewing (cancelled at period end); `null` while it renews.
effective_events_per_monthinteger (int64)The limit in force: the free plan's once a past-due grace period has ended.
events_per_monthinteger (int64)The plan's monthly events.
grace_until (optional)string, nullable
hard_limit_percentinteger (int64)Events are accepted up to this share of the limit, then dropped (§15.4).
has_billing_accountbooleanWhether the org has a Stripe customer, so the Portal can open.
period_end (optional)string, nullable
planstring
plansPlanView[]
statusstring`none`, `active`, `past_due` or `canceled`.
used_this_monthinteger (int64)

Breakdown

FieldTypeDescription
dimensionstring
metricstring
rowsRow2[]
sampledboolean
sourcestring

Changes

FieldTypeDescription
anomaliesstring[]Hours the anomaly watch flagged since `since`, as `YYYY-MM-DDTHH` UTC.
compared_fromstringThe window of the same length just before, which everything is compared with.
compared_tostring
dimensionsValueChange[]The top values of a few dimensions in either window, with what moved first.
metricsMetricChange[]
sincestring
untilstring

CheckoutRequest

FieldTypeDescription
planstringThe plan to subscribe to, e.g. `pro_1m`.

Connection

One of the person's grants, as the account page lists it.

FieldTypeDescription
client_kindstring`cimd` when the name comes from a document on a known host; `dcr` when the client named itself, which the page says.
client_namestringThe client's name from its metadata document, or what it registered as.
created_atstring
idinteger (int64)
last_used_at (optional)string, nullable
orgsstring[]The organizations it may read (those still existing).
redirect_hostsstring[]Where it sends the person back: the redirect hosts.

What the consent page shows.

FieldTypeDescription
client_idstring
client_kindstring`cimd` (named by a document on a known host) or `dcr` (named itself: "an unverified app").
client_namestringThe client's name: from its metadata document, or what it registered as.
loopbackbooleanWhether that is their own machine (a desktop client), which the page warns about.
orgsConsentOrg[]
redirect_hoststringWhere the person will be sent back.
scopestring

ConsentOrg

An organization the person may let the client read.

FieldTypeDescription
idinteger (int64)
namestring
rolestring

CreatedApp

FieldTypeDescription
appAppView
keystringThe first public key (`ak_…` or `wk_…`).

CreatedSubscription

FieldTypeDescription
secret (optional)string, nullableThe webhook's signing key (`ws_…`), shown once; absent for email.
subscriptionSubscriptionView

CreatedToken

object

DayPoint

FieldTypeDescription
daystring
eventsinteger (int64)
sessionsinteger (int64)
usersinteger (int64)

Decision

The person's answer.

object

DeleteOrg

FieldTypeDescription
confirmstringThe org's name, typed back: deleting is irreversible.

EventDetail

FieldTypeDescription
namestring
number_propertiesNumberProperty[]
property_by (optional)PropertyGroup[]With `property` and `by`: the number property per value of the dimension.
sampledboolean
seriesDayPoint[]
string_propertiesStringProperty[]

EventSummary

FieldTypeDescription
eventsinteger (int64)
namestring
seriesinteger (int64)[]Events per day over the window, oldest first, one entry per day (zeros included).
usersinteger (int64)

EventsList

FieldTypeDescription
eventsEventSummary[]
sampledboolean

ExportFormat

"parquet" | "csv"

ExportRequest

FieldTypeDescription
format (optional)ExportFormat`parquet` (default) or `csv`.

ForwardingSecret

FieldTypeDescription
secretstringShown once; the previous secret stops working.

Funnel

FieldTypeDescription
groupsFunnelGroup[]One group without a breakdown; with one, the biggest groups by first-step sessions.
more_groupsbooleanWhether groups beyond the first 20 were left out.
sampledboolean

FunnelComparison

FieldTypeDescription
conversion_afternumber (double)
conversion_beforenumber (double)The last step's share of the first, before and after.
idinteger (int64)
namestring
sessions_afterinteger (int64)
sessions_beforeinteger (int64)

FunnelGroup

FieldTypeDescription
groupstringThe breakdown value, or empty without a breakdown.
stepsFunnelStep[]

FunnelRequest

FieldTypeDescription
breakdown (optional)string, nullable
stepsstring[]
window_seconds (optional)integer (int32)

FunnelStep

FieldTypeDescription
conversionnumber (double)Share of the first step's sessions.
namestring
sessionsinteger (int64)Sessions that reached this step.
step_conversionnumber (double)Share of the previous step's sessions.

FunnelView

FieldTypeDescription
breakdown (optional)string, nullable
created_atstring
idinteger (int64)
namestring
stepsstring[]
window_secondsinteger (int32)

HeatCell

Sessions active in one weekday-hour: a session spanning two hours counts in both.

FieldTypeDescription
hourinteger (int32)0–23, UTC.
sessionsinteger (int64)
weekdayinteger (int32)1 = Monday … 7 = Sunday.

Heatmap

FieldTypeDescription
cellsHeatCell[]
sampledboolean

InvitationInfo

FieldTypeDescription
emailstring
org_namestring
rolestring

InvitationView

FieldTypeDescription
emailstring
expires_atstring
idstring
rolestring

JobStarted

FieldTypeDescription
job_idinteger (int64)

JobView

FieldTypeDescription
created_atstring
error (optional)string, nullable
idinteger (int64)
kindstring
result (optional)object, nullable
statestring`pending`, `running`, `done` or `failed`.

Joined

FieldTypeDescription
org_idinteger (int64)

KeyView

FieldTypeDescription
created_atstring
keystring
revoked_at (optional)string, nullable

LinkInfo

FieldTypeDescription
emailstringThe address the link signs in as.

LinkRequest

FieldTypeDescription
emailstring

Live

FieldTypeDescription
eventsinteger (int64)
minutesinteger (int32)
sessionsinteger (int64)

Me

FieldTypeDescription
orgsobject[]
userobject

Member

FieldTypeDescription
emailstring
name (optional)string, nullable
rolestring`owner`, `admin`, `member` or `viewer`.
user_idinteger (int64)

MetricChange

FieldTypeDescription
beforenumber (double)
change (optional)number (double), nullable`(now - before) / before`; null when there was nothing before.
metricstring
movedbooleanBeyond the usual swing: a fifth of the old value and at least 10 (5 points for a rate).
nownumber (double)

NewApp

FieldTypeDescription
kindstring`app`, `web`, or `agent` for loops (spec 0.8.2): the agents, routines and scripts you run.
namestring
org_idinteger (int64)
origins (optional)string[]

NewInvitation

FieldTypeDescription
emailstring
rolestring`admin`, `member` or `viewer`; `owner` only from an owner.

NewKey

FieldTypeDescription
keystring

NewOrg

FieldTypeDescription
namestring

NewRelease

FieldTypeDescription
at (optional)string, nullableWhen, RFC 3339; now when absent. Not in the future, not more than a year back.
namestringWhat shipped: a version, a deploy, "the paywall change". 1 to 100 characters.

NewSavedFunnel

FieldTypeDescription
breakdown (optional)string, nullable
namestring
stepsstring[]
window_seconds (optional)integer (int32)

NewSubscriptionBody

FieldTypeDescription
destination_kindstring`email` (to your own address) or `webhook`.
kindstring`daily_digest` or `anomaly`.
url (optional)string, nullableThe webhook's https URL. Left out for email: it goes to the person who subscribes.

NewToken

FieldTypeDescription
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.
namestring

NumberProperty

FieldTypeDescription
countinteger (int64)
keystring
meannumber (double)
mediannumber (double)
p95number (double)
sumnumber (double)

OrgChange

FieldTypeDescription
namestring

OrgCreated

FieldTypeDescription
idinteger (int64)

Overview

FieldTypeDescription
currentPeriod
previous (optional)Period | null
sampledboolean
sourcestring`daily_totals` (rollup) or `events` (raw, when filtered).

Paths

FieldTypeDescription
afterstring
nextRow2[]
sampledboolean

PathsRequest

FieldTypeDescription
afterstring

Period

FieldTypeDescription
fromstring
seriesDayPoint[]
tostring
totalsTotals

PlanView

FieldTypeDescription
events_per_monthinteger (int64)
idstring
price_usd_monthinteger (int32)
purchasablebooleanWhether it can be bought now (its Stripe Price is configured).

PropertyGroup

FieldTypeDescription
countinteger (int64)
mediannumber (double)
sumnumber (double)
valuestring

Redirect

FieldTypeDescription
urlstringStripe's page; the browser goes there.

ReleaseComparison

FieldTypeDescription
afterPeriod
beforePeriod
daysinteger (int64)How many days each side holds; the days after may be fewer when the release is recent.
funnelsFunnelComparison[]
releaseReleaseView

ReleaseView

FieldTypeDescription
atstringWhen it shipped, RFC 3339.
created_atstring
idinteger (int64)
namestring

RoleChange

FieldTypeDescription
rolestring`owner`, `admin`, `member` or `viewer`.

Row2

FieldTypeDescription
countinteger (int64)
valuestring

SessionInfo

FieldTypeDescription
created_atstring
currentboolean
expires_atstring
idstring

SessionItem

FieldTypeDescription
app_versionstring
countrystring
duration_secondsinteger (int64)
endedstring
entrystringFirst page (web) or `screen` property (apps).
eventsinteger (int64)
exitstring
idstring
pageviewsinteger (int64)
platformstring
referrer_sourcestring
startedstring

SessionSummary

FieldTypeDescription
bounce_ratenumber (double)
events_per_sessionnumber (double)
median_secondsnumber (double)
sessionsinteger (int64)

Sessions

FieldTypeDescription
sessionsSessionItem[]
summarySessionSummary

StringProperty

FieldTypeDescription
keystring
valuesRow2[]

SubscriptionView

FieldTypeDescription
confirmedbooleanA webhook answered its challenge; an email is confirmed at once.
created_atstring
destinationstringThe webhook's URL, or the email address.
destination_kindstring`email` or `webhook`.
failuresinteger (int32)Deliveries failed in a row; paused after a day of them.
idinteger (int64)
kindstring`daily_digest` or `anomaly`.
last_delivery_at (optional)string, nullable
pausedboolean

ThisToken

FieldTypeDescription
accessstring`read`, or `write`: also changes settings, as the person who made it.
org_idinteger (int64)
org_namestring
rolestringThe role it acts with: `viewer` for a read token, its maker's role now for a write token.

TimelineEvent

FieldTypeDescription
namestring
pathnamestring
propertiesobject
screenstring
tsstring

TokenView

FieldTypeDescription
accessstring`read`, or `write`: also changes settings, as the person who made it.
created_atstring
idinteger (int64)
namestring

Totals

FieldTypeDescription
bounce_ratenumber (double)Sessions with at most one page view and one event (web).
eventsinteger (int64)
events_per_sessionnumber (double)
median_session_secondsnumber (double)
pageviewsinteger (int64)
sessionsinteger (int64)
usersinteger (int64)Daily-rotating visitors: a person counts once per day (§19).

Usage

FieldTypeDescription
events_per_monthinteger (int64)
fromstring
org_events_this_monthinteger (int64)Accepted events this calendar month for the whole org (the quota counts per org).
outcomesobjectIngest outcomes for this app over the window (§6 ingest_counters).
planstring
tostring

ValueChange

FieldTypeDescription
beforeinteger (int64)
dimensionstring
movedbooleanThe share moved by 5 points or more, with at least 20 counts behind it.
nowinteger (int64)
share_beforenumber (double)
share_nownumber (double)
valuestring

VerifyRequest

FieldTypeDescription
tokenstring