Stream EstateStream Estate
Getting Started

Authentication

Authenticate against the Stream Estate API with an API key

The Stream Estate API uses an API key passed in the X-API-KEY header on every request.

Get your API key

Create an account on the console, then generate a v2 key from the keys screen:

Account creation is currently done via GitHub or Google sign-in.

Required header

X-API-KEY: <your_key>

cURL example

curl https://api-v2.stream.estate/sources \
  -H "X-API-KEY: <your_key>"

Usage tracking

The GET /account/api-usage endpoint (tag Account) exposes billable usage aggregates for your account. It's the source of truth for monitoring consumption on the billing side. The response carries:

  • period — the window actually covered (start, end, granularity);
  • totals — calls and results (items returned) over the period, plus credits when your account is billed in credits;
  • timeSeries — one point per time bucket;
  • byApiKey, byRoute, byChannel — the same consumption broken down by key, by route, and by call channel (DIRECT for direct HTTP calls, MCP for calls made through the MCP server);
  • byAlert — your alerts' notifications, one row per alert and delivery channel (channel): notifications, delivered, failed, attempts. An alert deleted since keeps its row, its name (alertName) and its figures, with deleted: true; an alert that still exists, enabled or not, carries deleted: false. Notifications sent before they were recorded against their alert form a single row, with no alertId and no deleted.

Query parameters:

ParameterRole
startDate / endDatePeriod bounds (ISO 8601, start included, end excluded; a bare date covers that whole day in UTC). Default: last 30 days / now.
apiKeyIdOnly count calls made with one of your keys (public UUID).
channelOnly count calls issued through one channel: DIRECT or MCP.
granularityWidth of each timeSeries point: YEAR, MONTH or DAY. It does not group anything.
groupByDimension that splits each timeSeries point: API_KEY, ROUTE or CHANNEL. Each row then carries the matching field (apiKeyId / apiKeyName, route / routeType, channel).

See the reference for the full schema.

Treat your key like a password. Never commit it to a public Git repository.

Version 0.34.464Last updated

On this page