GET /usage?from=<instant>&to=<instant> answers the project’s total for each
meter over the window: from from, included, to to, excluded. Both are
required RFC 3339 instants, and from must be before to (else 422 unprocessable). Every meter is in the answer, 0 when nothing was used.
Totals update every few minutes; the current hour is not in them yet. These
are raw units, not a bill.
The route takes a secret key (
dtn_sk_); any other key is 403 api_key_kind_not_allowed.
Console and management
The console reads the same totals atGET /workflow_usage?projectId=<id>&from=<instant>&to=<instant>
on its own address, signed in or with an OAuth token, for a member who may
read runs (admins and developers). The MCP tool workflows_get_usage takes
projectId, from and to (MCP tools).
Every other meter of the project, the gateway’s and the database’s included,
is in Project usage.