AI News
All stories
Official

Anthropic adds cost report endpoint to Claude apps gateway admin API

Claude Code 2.1.317 adds a cost report endpoint that lets admins read past spend by total, developer, day or identity-provider group.

Products · · 2 min read

Anthropic's Claude Code 2.1.317, dated November 3, 2026, adds a cost report to the Claude apps gateway admin API. It lets administrators read past spend over a date range. The endpoint is GET /v1/organizations/analytics/cost. According to the changelog, spend can be grouped in total, per developer, per day or per identity-provider group. The per-group view depends on a second change: a daily record of each developer's IdP groups, which gateways keep when admin settings are present.

Breaking spend down by group requires the gateway to know which groups each developer belonged to on a given day. The changelog says it now stores that membership daily. The record is kept for the number of days set in admin.identity_retention_days. The changelog's own wording ties the two features together: the cost report groups by that record. It describes the feature as a daily record but does not say how group membership is captured, or what happens to records once the retention period passes, beyond what the setting's name implies.

The changelog entry does not say whether the cost report is available on every gateway or only on those with admin settings enabled, although the membership record is limited to gateways with admin: set. The linked Claude Code docs changelog lists 2.1.317 in its navigation, but the text provided does not include that entry. The linked GitHub CHANGELOG.md page shows only site navigation and file metadata. The docs page has a /usage line showing spend for today, this week and this month. That line appears under 2.1.319, not 2.1.317, so it should not be read as part of this report.

The release also contains other gateway and spend changes. One fix stops the status line and /usage from showing a developer's own spend limit as 100% used after their group's pooled budget runs out. Another makes the gateway stop hiding Amazon Bedrock's "Input is too long." error, which had left sessions failing every turn with "upstream rejected the request" instead of compacting. These are bug fixes, not part of the cost report, and the changelog lists them separately.

What changed

The Claude apps gateway admin API gains a cost report endpoint, GET /v1/organizations/analytics/cost, that reads past spend in total, per developer, per day or per identity-provider group.

Type: New capability · Takes effect: Tuesday, November 3, 2026 · Applies to: Claude apps gateway admin API, GET /v1/organizations/analytics/cost, Claude Code 2.1.317

Why it matters

Companies running Claude through a gateway can now pull spend data programmatically and attribute it to individual developers or identity groups. Budget owners get finer cost visibility without building their own tracking.

What you can do

If you run Claude through an apps gateway, check whether the cost endpoint and the retention setting fit your chargeback and data-retention policies.

Original source

Where we saw it

1 source

Claude Code changelog

AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it. How it works