claude
The Claude source reads daily token usage and cost reports along with the
organization, workspaces, members, invites, API keys, and rate limits behind
them. It calls the Claude Admin API
through an HTTP manifest.
It has been checked against Anthropic’s API docs and tested with mock
responses, but has not yet been tested against a live organization.
It targets API version 2026-10-21.
Configuration
Create the key in the Claude Console under Settings → Admin keys. Only
organization admins can create one. The Admin API needs a Console
organization. Individual Console accounts and the claude.ai Team plan cannot
create Admin keys. Workspace-scoped API keys are rejected.
Claude Enterprise organizations use a different Admin key from claude.ai that
reaches only members, invites, and organization info. The usage and cost
reports in this connector are not available to them.
Resources
Every resource is selected by default.
usage_report has one row per UTC day. Its results column is a JSON array
with one entry per combination of model, workspace, API key, account, service
account, service tier, context window, inference geography, and speed. Each
entry holds uncached input, cache creation, cache read, and output tokens plus
web search requests. A dimension is null when it does not apply, such as
api_key_id for Console Workbench usage or workspace_id for the default
workspace. Days with no usage are returned with an empty results array.
cost_report has one row per UTC day. Its results array has one entry per
workspace and cost description, with the model, cost type, token type, and
service tier. amount is a decimal string in cents, so "123.45" is $1.23.
Priority Tier spend is not included in this report.
workspaces includes archived workspaces and the default workspace.
workspace_members and workspace_rate_limits read only active, non-default
workspaces. workspace_rate_limits lists the overrides set on each workspace.
Organization-wide values are in rate_limits. api_keys lists keys in every
status and adds a workspace_id column taken from the key’s scope. Nested
objects such as tags, data residency, rate limit groups, and limits are stored
as JSON.
The connector leaves out several Admin API families.
- Usage and Cost Analytics API.
GET /v1/organizations/analytics/usageand/analytics/costcap each request at 31 days and require an end date whenever results are bucketed by day. HTTP manifests cannot step a date window yet, so the connector reads the daily usage and cost reports instead. - Claude Code analytics.
GET /v1/organizations/usage_report/claude_codereturns a single day per request, which needs the same date stepping. - Service accounts. These endpoints accept only an OAuth token with the
org:adminscope, not an Admin key. - Spend limits and the Compliance API. These are Claude Enterprise only and use their own keys.
Modes
All resources support full reads.usage_report and cost_report also support
incremental reads on the day’s starting_at. Each run sends the saved day as
starting_at, with a three-day lookback by default. Usage takes about
30 minutes to appear and a day is only returned once it ends, so the lookback
re-reads recent days to pick up late data. The checkpoint keys are
usage_report_starting_at and cost_report_starting_at and use the time
comparator.
Use upsert keyed on starting_at for both reports. A re-read day replaces
the stored row and its whole results array, so per-group totals stay correct.
Full reads and the first incremental run start at January 1, 2023, before the
Claude API launched, so they cover an organization’s whole history.
The other resources are read in full. Full replacement removes deleted invites
and members. Archived workspaces and API keys keep appearing with their status.
Behavior
- Auth. The Admin key is sent in the
x-api-keyheader withanthropic-version: 2026-10-21. The connection test reads/v1/organizations/me. - Pagination. Organization lists page with
after_idandhas_more. Rate limits and the usage and cost reports page with thepagecursor untilnext_pageis empty. - Report size.
usage_reportasks for seven days per page andcost_reportfor 31. An organization with very many API keys and models could still exceed the response size limit, which fails the read withreport_page_too_large. - Rate limits. Requests are paced at two per second. Anthropic documents
polling the usage report once a minute as sustainable. HTTP 429 responses
are retried after
Retry-After.