Anthropic Admin API (Claude API)
Analytics
Anthropic Admin API (Claude API) data, published as Anthropic Admin API (Claude API) publishes it. Ingest delivers this data to a data warehouse you own as 14 tables, and updates it on the schedule you choose. There is no code to write and nothing to install.
What you get
| Table | Each row is |
|---|---|
api_keysapi_keys | Every API key in the organization: name, status, scope, expiry and who created it, one row per key merged on `id` and re-read about once a day, so new keys and status changes appear. Only a partial hint of each key is returned, never the key itself. Anthropic has deprecated the top-level `workspace_id`, which is null both for keys in the Default workspace and for keys with no workspace scope; `scope` says which. `created_by`, `principal` (the user or service account a key acts as) and `scope` are kept as JSON. |
claude_codeclaude_code | Daily Claude Code activity from the Claude Code Analytics API: one row per UTC day (`date_`, Anthropic's `date`), person or API key (`actor`), terminal (`terminal_type`), `customer_type` and remote or local use (`is_remote`), with sessions, lines of code added and removed, commits and pull requests made by Claude Code, and accepted and rejected Edit, MultiEdit, Write and NotebookEdit proposals. Tokens and estimated cost per model are in the `claude_code__model_breakdown` child table; `estimated_cost__amount` is in cents of USD. `actor` is JSON: `{"email_address": ..., "type": "user_actor"}` for a person signed in to Claude Code, `{"api_key_name": ..., "type": "api_actor"}` for an API key. A day is read once it has ended, so the newest is yesterday (UTC), over the last 90 days by default (lookback_days). Anthropic includes activity about an hour after it happens, so each day is read again the next day, and older days wait longer, a twentieth of their age at their last read. Claude Code used through Amazon Bedrock, Google Cloud, Microsoft Foundry or Claude Platform on AWS is not in this report. |
compliance_settingscompliance_settings | Whether the organization's Compliance API is turned on: one row, `state__type` enabled or disabled, re-read about once a day. |
cost_reportcost_report | Daily Claude API cost in USD. Each `cost_report` row is one UTC day, and its cost lines are in the `cost_report__results` child table: one line per workspace and description (such as "Claude Sonnet 5 - Input Tokens"), with the model, cost type, token type, service tier, context window and inference geography Anthropic parses from it. `amount` is a decimal string in cents of USD (598.0346 is $5.98). Priority Tier costs are not in this report; Anthropic reports Priority Tier only as usage. `workspace_id` is null for the Default workspace. Days load the same way as usage_report: once the day has ended, each day once, and the first sync loads all history, from 2023-01-01, unless you choose how far back it reaches. |
invitesinvites | Every invitation to join the organization that is pending, accepted or expired: the email it was sent to, the organization `role` it offers, when it was sent (`invited_at`) and when it expires, and its `status`. An accepted invitation stays in the list with its `accepted_at`, so this is also a record of who joined by invitation and when; a deleted one leaves the list. One row per invitation, replaced with the current list about once a day. |
organizationorganization | The Claude Console organization the admin key belongs to: its `id` and `name`, one row, re-read about once a day. |
rate_limitsrate_limits | The organization's Messages API rate limits, as the Console's Rate limits page shows them. One row per rate limit group: a model family (`group__display_name`, such as Claude Sonnet 5) or an API such as Message Batches, Files, Token Counting, Skills or web search (`group__type`). Each group's limits are in the `rate_limits__limits` child table, one line per limiter (`type`, such as requests_per_minute, and `value`); `models` lists the model IDs and aliases a model group covers, as JSON. `group__id` is the same in every organization. The table is replaced about once a day, so a limit Anthropic changes appears. Each workspace's limits are in `workspace_rate_limits`. |
telemetry_destination_workspacestelemetry_destination_workspaces | The workspace list of each telemetry destination whose `workspaces__type` is include or exclude: one row per destination and workspace, with when it was added (`created_at`), joined to `telemetry_destinations` on `telemetry_destination_id` and to `workspaces` on `workspace_id`. For an include destination these are the workspaces it covers, and for an exclude destination the ones it leaves out. A destination that covers every workspace (all) has no list, so it is not read. The list includes archived workspaces. The table is replaced whenever `telemetry_destinations` is re-read, about once a day; once no destination has a list, the read finds nothing, and the table keeps the rows it last held. |
telemetry_destinationstelemetry_destinations | Where the organization exports OpenTelemetry traces of its Claude API requests (an Anthropic beta): one row per destination, with its `endpoint_url` and `display_name`, `state__type` (enabled, or disabled with `state__reason__type` caller, sustained_failure, invalid_address or redirect), whether it takes traces (`traces__enabled`) and with what content (`traces__content_mode`, metadata_only or content), which workspaces it covers (`workspaces__type`: all, include or exclude; the lists are in `telemetry_destination_workspaces`), and its delivery health (`delivery_health__last_error`, with the last error and the last success as ISO-8601 text). `header_names` lists the request headers registered on it, as JSON; Anthropic never returns their values. An organization holds at most 10 destinations, and most hold none. The table is replaced with the current list about once a day, so a deleted destination leaves it at the next read, except the last one: a read that finds no destination changes nothing, and the table keeps the rows it last held. |
usage_reportusage_report | Daily Claude API token usage. Each `usage_report` row is one UTC day (`starting_at` to `ending_at`), and its usage lines are in the `usage_report__results` child table: one line per model, workspace, API key, service tier and context window used that day, with uncached input, cache read, cache creation and output tokens and web search requests. Anthropic allows five group-by dimensions, so inference geography and speed are not split out and come back null. `workspace_id` is null for the Default workspace and `api_key_id` is null for Console playground usage. A day is loaded once it has ended, so the newest day is yesterday (UTC). Each run asks from the last day it loaded, which comes back again and is skipped, so a day is loaded once and not refreshed. A day with no usage still has a row, with no lines. The first sync loads all history, from 2023-01-01, unless you choose how far back it reaches. |
usersusers | Every member of the organization: name, email, organization role and when they joined (`added_at`), one row per member. The table is replaced with the current list about once a day, so a member who is removed leaves it and a role change appears. Invitations, pending and accepted, are in `invites`. |
workspace_membersworkspace_members | Who belongs to each workspace, and with what `workspace_role` (workspace_user, workspace_developer, workspace_restricted_developer, workspace_admin or workspace_billing): one row per workspace and member, joined to `users` on `user_id` and to `workspaces` on `workspace_id`. Organization admins are admins of every workspace without being members of it, so Anthropic does not list them here. The Default workspace and archived workspaces are not read, because Anthropic returns no member list for either. The table is replaced with the current lists whenever `workspaces` is re-read, about once a day. |
workspace_rate_limitsworkspace_rate_limits | Each workspace's rate limits: one row per workspace and rate limit group, with its limiters in the `workspace_rate_limits__limits` child table, one line each with its `type` (such as requests_per_minute), the workspace's `value`, the organization's `org_limit`, and `source__type`: workspace for a limit set on the workspace, organization for one it inherits. `rate_limit_id` is the group's `id` in `rate_limits`, and `models` lists the model IDs and aliases a model group covers, as JSON. The Default workspace is not read, because some organizations answer its limits with 404, and neither are archived workspaces, whose API keys are archived with them. The table is replaced whenever `workspaces` is re-read, about once a day. |
workspacesworkspaces | Every workspace in the organization, including the Default workspace and archived workspaces (the request asks for both: without include_default an organization with only the Default workspace returns nothing, and without include_archived an archived workspace would drop out of the list and keep a null `archived_at`). One row per workspace, merged on `id` and re-read about once a day, so a new workspace appears and an archived one gets its `archived_at`. In usage_report and cost_report the Default workspace appears as a null `workspace_id`, not as its `id` here. |
How it works
- Choose Anthropic Admin API (Claude API). Connect your Anthropic Admin API (Claude API) account once, from Ingest.
- Pick where it goes. BigQuery, Snowflake, Databricks, Redshift and 11 more, in an account you own.
- Pick a schedule. Daily is the default, and weekly and monthly are there too.
- Ingest runs it from then on. If a run fails, your dashboard shows which table and why.
Anthropic Admin API (Claude API) to your warehouse
Each Anthropic Admin API (Claude API) table lands in the warehouse you pick, in an account you own, and is kept current on your schedule.
- Anthropic Admin API (Claude API) to Snowflake: set up Snowflake, then choose Anthropic Admin API (Claude API) as the source.
- Anthropic Admin API (Claude API) to BigQuery: set up BigQuery, then choose Anthropic Admin API (Claude API) as the source.
- Anthropic Admin API (Claude API) to Redshift: set up Redshift, then choose Anthropic Admin API (Claude API) as the source.
- Anthropic Admin API (Claude API) to Postgres: set up Postgres, then choose Anthropic Admin API (Claude API) as the source.
- Anthropic Admin API (Claude API) to Databricks: set up Databricks, then choose Anthropic Admin API (Claude API) as the source.
Questions
- Do I need an account with Anthropic Admin API (Claude API)?
- Yes. You connect your own Anthropic Admin API (Claude API) account once, from Ingest, and the data comes from what that account can see.
- Which warehouses can Anthropic Admin API (Claude API) data go to?
- Amazon S3, Google Cloud Storage, Azure Blob Storage, Apache Iceberg, Ingest Managed Lakehouse, MotherDuck, Postgres, Amazon Athena, Databricks, Redshift, BigQuery, ClickHouse, ObsessionDB, MySQL / generic SQL and Snowflake, in an account you own.
- How fresh is the data?
- As fresh as your schedule: daily by default, or weekly or monthly. Schedules as often as every 20 minutes are on the Enterprise plan.
- Will running it again create duplicate rows?
- No. Each row is stored once, by its key: when a run reads a row that is already there, it replaces that copy instead of adding a second one.
- Do I need to write code?
- No. Ingest builds, runs and maintains the connector. Someone with access to your warehouse connects it once, following a short guide.
- How do I get Anthropic Admin API (Claude API) data into Snowflake or BigQuery?
- Choose Anthropic Admin API (Claude API) as the source and your warehouse as the destination in Ingest. Connect your Anthropic Admin API (Claude API) account once, and the tables are then kept current on the schedule you choose. Snowflake, BigQuery, Redshift, Postgres and Databricks each have a short setup guide, and no code is needed.
For your data team: technical reference
Connector anthropic, version 0.1.0, a REST source, status beta, authentication api_key.
Vendor documentation: https://platform.claude.com/docs/en/manage-claude/usage-cost-api
Configuration
No configuration required.
Resources
| Resource | Status | Plan | Write | Primary key | Overrides |
|---|---|---|---|---|---|
api_keysEvery API key in the organization: name, status, scope, expiry and who created it, one row per key merged on `id` and re-read about once a day, so new keys and status changes appear. Only a partial hint of each key is returned, never the key itself. Anthropic has deprecated the top-level `workspace_id`, which is null both for keys in the Default workspace and for keys with no workspace scope; `scope` says which. `created_by`, `principal` (the user or service account a key acts as) and `scope` are kept as JSON. | beta | staleness | merge | id | - |
claude_codeDaily Claude Code activity from the Claude Code Analytics API: one row per UTC day (`date_`, Anthropic's `date`), person or API key (`actor`), terminal (`terminal_type`), `customer_type` and remote or local use (`is_remote`), with sessions, lines of code added and removed, commits and pull requests made by Claude Code, and accepted and rejected Edit, MultiEdit, Write and NotebookEdit proposals. Tokens and estimated cost per model are in the `claude_code__model_breakdown` child table; `estimated_cost__amount` is in cents of USD. `actor` is JSON: `{"email_address": ..., "type": "user_actor"}` for a person signed in to Claude Code, `{"api_key_name": ..., "type": "api_actor"}` for an API key. A day is read once it has ended, so the newest is yesterday (UTC), over the last 90 days by default (lookback_days). Anthropic includes activity about an hour after it happens, so each day is read again the next day, and older days wait longer, a twentieth of their age at their last read. Claude Code used through Amazon Bedrock, Google Cloud, Microsoft Foundry or Claude Platform on AWS is not in this report. | beta | window | merge | date, actor, terminal_type, customer_type, is_remote | lookback_days |
compliance_settingsWhether the organization's Compliance API is turned on: one row, `state__type` enabled or disabled, re-read about once a day. | beta | staleness | replace | - | - |
cost_reportDaily Claude API cost in USD. Each `cost_report` row is one UTC day, and its cost lines are in the `cost_report__results` child table: one line per workspace and description (such as "Claude Sonnet 5 - Input Tokens"), with the model, cost type, token type, service tier, context window and inference geography Anthropic parses from it. `amount` is a decimal string in cents of USD (598.0346 is $5.98). Priority Tier costs are not in this report; Anthropic reports Priority Tier only as usage. `workspace_id` is null for the Default workspace. Days load the same way as usage_report: once the day has ended, each day once, and the first sync loads all history, from 2023-01-01, unless you choose how far back it reaches. | beta | watermark | merge | starting_at | backfill_days |
invitesEvery invitation to join the organization that is pending, accepted or expired: the email it was sent to, the organization `role` it offers, when it was sent (`invited_at`) and when it expires, and its `status`. An accepted invitation stays in the list with its `accepted_at`, so this is also a record of who joined by invitation and when; a deleted one leaves the list. One row per invitation, replaced with the current list about once a day. | beta | staleness | replace | id | - |
organizationThe Claude Console organization the admin key belongs to: its `id` and `name`, one row, re-read about once a day. | beta | staleness | replace | id | - |
rate_limitsThe organization's Messages API rate limits, as the Console's Rate limits page shows them. One row per rate limit group: a model family (`group__display_name`, such as Claude Sonnet 5) or an API such as Message Batches, Files, Token Counting, Skills or web search (`group__type`). Each group's limits are in the `rate_limits__limits` child table, one line per limiter (`type`, such as requests_per_minute, and `value`); `models` lists the model IDs and aliases a model group covers, as JSON. `group__id` is the same in every organization. The table is replaced about once a day, so a limit Anthropic changes appears. Each workspace's limits are in `workspace_rate_limits`. | beta | staleness | replace | id | - |
telemetry_destination_workspacesThe workspace list of each telemetry destination whose `workspaces__type` is include or exclude: one row per destination and workspace, with when it was added (`created_at`), joined to `telemetry_destinations` on `telemetry_destination_id` and to `workspaces` on `workspace_id`. For an include destination these are the workspaces it covers, and for an exclude destination the ones it leaves out. A destination that covers every workspace (all) has no list, so it is not read. The list includes archived workspaces. The table is replaced whenever `telemetry_destinations` is re-read, about once a day; once no destination has a list, the read finds nothing, and the table keeps the rows it last held. | beta | parent_child | replace | telemetry_destination_id, workspace_id | - |
telemetry_destinationsWhere the organization exports OpenTelemetry traces of its Claude API requests (an Anthropic beta): one row per destination, with its `endpoint_url` and `display_name`, `state__type` (enabled, or disabled with `state__reason__type` caller, sustained_failure, invalid_address or redirect), whether it takes traces (`traces__enabled`) and with what content (`traces__content_mode`, metadata_only or content), which workspaces it covers (`workspaces__type`: all, include or exclude; the lists are in `telemetry_destination_workspaces`), and its delivery health (`delivery_health__last_error`, with the last error and the last success as ISO-8601 text). `header_names` lists the request headers registered on it, as JSON; Anthropic never returns their values. An organization holds at most 10 destinations, and most hold none. The table is replaced with the current list about once a day, so a deleted destination leaves it at the next read, except the last one: a read that finds no destination changes nothing, and the table keeps the rows it last held. | beta | staleness | replace | id | - |
usage_reportDaily Claude API token usage. Each `usage_report` row is one UTC day (`starting_at` to `ending_at`), and its usage lines are in the `usage_report__results` child table: one line per model, workspace, API key, service tier and context window used that day, with uncached input, cache read, cache creation and output tokens and web search requests. Anthropic allows five group-by dimensions, so inference geography and speed are not split out and come back null. `workspace_id` is null for the Default workspace and `api_key_id` is null for Console playground usage. A day is loaded once it has ended, so the newest day is yesterday (UTC). Each run asks from the last day it loaded, which comes back again and is skipped, so a day is loaded once and not refreshed. A day with no usage still has a row, with no lines. The first sync loads all history, from 2023-01-01, unless you choose how far back it reaches. | beta | watermark | merge | starting_at | backfill_days |
usersEvery member of the organization: name, email, organization role and when they joined (`added_at`), one row per member. The table is replaced with the current list about once a day, so a member who is removed leaves it and a role change appears. Invitations, pending and accepted, are in `invites`. | beta | staleness | replace | id | - |
workspace_membersWho belongs to each workspace, and with what `workspace_role` (workspace_user, workspace_developer, workspace_restricted_developer, workspace_admin or workspace_billing): one row per workspace and member, joined to `users` on `user_id` and to `workspaces` on `workspace_id`. Organization admins are admins of every workspace without being members of it, so Anthropic does not list them here. The Default workspace and archived workspaces are not read, because Anthropic returns no member list for either. The table is replaced with the current lists whenever `workspaces` is re-read, about once a day. | beta | parent_child | replace | workspace_id, user_id | - |
workspace_rate_limitsEach workspace's rate limits: one row per workspace and rate limit group, with its limiters in the `workspace_rate_limits__limits` child table, one line each with its `type` (such as requests_per_minute), the workspace's `value`, the organization's `org_limit`, and `source__type`: workspace for a limit set on the workspace, organization for one it inherits. `rate_limit_id` is the group's `id` in `rate_limits`, and `models` lists the model IDs and aliases a model group covers, as JSON. The Default workspace is not read, because some organizations answer its limits with 404, and neither are archived workspaces, whose API keys are archived with them. The table is replaced whenever `workspaces` is re-read, about once a day. | beta | parent_child | replace | workspace_id, rate_limit_id | - |
workspacesEvery workspace in the organization, including the Default workspace and archived workspaces (the request asks for both: without include_default an organization with only the Default workspace returns nothing, and without include_archived an archived workspace would drop out of the list and keep a null `archived_at`). One row per workspace, merged on `id` and re-read about once a day, so a new workspace appears and an archived one gets its `archived_at`. In usage_report and cost_report the Default workspace appears as a null `workspace_id`, not as its `id` here. | beta | staleness | merge | id | - |
Where this lands, and what else connects
Setting up the destination is its own short guide, one per warehouse or lake: Amazon S3, Google Cloud Storage, Azure Blob Storage, Apache Iceberg, Ingest Managed Lakehouse, MotherDuck, Postgres, Amazon Athena, Databricks, Redshift, BigQuery, ClickHouse, ObsessionDB, MySQL / generic SQL, Snowflake.
Get Anthropic Admin API (Claude API) data into your warehouse
Last updated .