REST API
The REST API
Create a read-only key, then call the Analytics REST API from a terminal with the report request the dashboard sends, get the same total, and revoke the key.
Transcript
Sooner or later, somebody wants subscription numbers next to everything else the company measures. And “log into our vendor’s dashboard” isn’t an answer, because that’s not where the rest of the business lives.
This one is about the REST API: one endpoint, for BI tools and backends.
Keys are made here. The same keys that connect an AI assistant also work for the read-only Analytics REST API, and every plan, free included, can create one.
Untick MCP access, and this key is for the REST API alone. It’s made on the server, and shown exactly once.
After that, the dashboard only shows its prefix, and the database keeps a hash. The thing that’s stored isn’t the thing in your config file.
Now, this revenue page. The dashboard draws it from a report request: a source, a metric, and a date range.
In the terminal, the key sits in an environment variable, and only its prefix is ever printed. Here’s the request, exactly as the dashboard sent it.
The REST API is one endpoint that takes that same request, minus the project, because the key already says which project you are. Same vocabulary, and the same total as the card.
And a client can’t override it. Put another project’s id in the body, and it’s replaced with the key’s own. The project isn’t a parameter you can set.
After that, it’s just HTTP. A nightly job like this one, a notebook, a warehouse loader: anything that can send a POST with a bearer token and a JSON body. No SDK, no user account, nobody’s session.
Two things to know before you build on it. The limit is per project, not per key: a sliding per-minute budget and a daily one, both set by your plan, and shared by every key. Go over either, and the call gets a 429, with a Retry-After header saying when to try again.
And it’s read-only analytics. Changing your catalogue is the dashboard’s job, not this endpoint’s.
If a key ends up somewhere it shouldn’t, revoke it here.
The very next call is refused.
One endpoint, one request shape, and one key that decides what you can see.