> ## Documentation Index
> Fetch the complete documentation index at: https://filament.getgalaxy.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude source connector

> Read token usage, cost, workspaces, members, API keys, and rate limits from a Claude Console organization

Connector ID `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](https://platform.claude.com/docs/en/manage-claude/admin-api)
through an [HTTP manifest](https://filament.getgalaxy.io/pages/connectors/building-a-connector/http-manifests.md).
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

| Field | Scope | Default | Description |
| - | - | - | - |
| `admin_api_key` | Connection | | Required. Secret. Admin API key that starts with `sk-ant-admin`. |

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

| Resource | Endpoint | Parent |
| - | - | - |
| `organization` | `GET /v1/organizations/me` | |
| `workspaces` | `GET /v1/organizations/workspaces` | |
| `workspace_members` | `GET /v1/organizations/workspaces/{workspace_id}/members` | `workspaces` |
| `users` | `GET /v1/organizations/users` | |
| `invites` | `GET /v1/organizations/invites` | |
| `api_keys` | `GET /v1/organizations/api_keys` | |
| `rate_limits` | `GET /v1/organizations/rate_limits` | |
| `workspace_rate_limits` | `GET /v1/organizations/workspaces/{workspace_id}/rate_limits` | `workspaces` |
| `usage_report` | `GET /v1/organizations/usage_report/messages` | |
| `cost_report` | `GET /v1/organizations/cost_report` | |

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/usage`
  and `/analytics/cost` cap 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_code`
  returns a single day per request, which needs the same date stepping.
* **Service accounts.** These endpoints accept only an OAuth token with the
  `org:admin` scope, 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-key` header with
  `anthropic-version: 2026-10-21`. The connection test reads
  `/v1/organizations/me`.
* **Pagination.** Organization lists page with `after_id` and `has_more`. Rate
  limits and the usage and cost reports page with the `page` cursor until
  `next_page` is empty.
* **Report size.** `usage_report` asks for seven days per page and
  `cost_report` for 31. An organization with very many API keys and models
  could still exceed the response size limit, which fails the read with
  `report_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`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.