Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · api

One read of Claude Developer Platformapi-20261120T193709Z

650 pages moved out of 936 read.

Pages moved 650 significant first
Pages read 936 in this capture
Captured 19:37 UTC
Corpus hash 721918d8c137 corpus-hash

What this read moved

276-300 of 650, page 12 of 26

This capture is too large to show at once. Changes 276-300 of 650 are below, significant first; the rest are on the following screens.

manage-claude/compliance-security-posture/overview Changed · +11 / -11 lines

from line 34
3434 
3535A control is one recommended setting or practice, such as single sign-on. Each control has a display name and an identifier. The identifier is the same for every organization. A control can also have a current value (`current_value`) and a recommended value (`desired_state`). Controls come in three kinds:
3636 
37| Kind | What decides its result | Example |
38| ------------------------ | ----------------------------------------------------------------------------------------------------------- | -------------------------- |
39| Automatic control | An automatic check of the current value against the recommended value, unless an attestation is in effect. | `sso_enabled` |
40| Manual control | A person, because Anthropic cannot read the setting, for example when it lives in another vendor’s console. | `oauth_conditional_access` |
41| Information-only control | Nothing: there is no recommended value, so the control is reported and not rated. | `allowed_invite_domains` |
37| Kind | What decides its result | Example |
38| ----- | ----- | ----- |
39| Automatic control | An automatic check of the current value against the recommended value, unless an attestation is in effect. | `sso_enabled` |
40| Manual control | A person, because Anthropic cannot read the setting, for example when it lives in another vendor’s console. | `oauth_conditional_access` |
41| Information-only control | Nothing: there is no recommended value, so the control is reported and not rated. | `allowed_invite_domains` |
4242 
4343### Attestations
4444 
from line 56
5656 
5757Each control has one of four results.
5858 
59| Result | Meaning |
60| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
61| Passed (`passed`) | Meets the recommended value, or an attestation of Completed or Accepted risk is in effect. |
62| Failed (`failed`) | Does not meet the recommended value or is attested as Failed (`control_failed`). |
63| Not attested (`not_attested`) | A manual control with no attestation in effect. |
64| Descriptive (`descriptive`) | Not rated, even when attested; it covers information-only controls and controls that do not apply or could not be read. |
59| Result | Meaning |
60| ----- | ----- |
61| Passed (`passed`) | Meets the recommended value, or an attestation of Completed or Accepted risk is in effect. |
62| Failed (`failed`) | Does not meet the recommended value or is attested as Failed (`control_failed`). |
63| Not attested (`not_attested`) | A manual control with no attestation in effect. |
64| Descriptive (`descriptive`) | Not rated, even when attested; it covers information-only controls and controls that do not apply or could not be read. |
6565 
6666An accepted risk in effect counts as Passed on an automatic or manual control, though the control is not in place. In the response, an automatic control [attested as Completed while its check fails](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#how-an-attestation-shows-in-the-response) is `failed`.
6767 

manage-claude/compliance-security-posture/results-reference Changed · +96 / -96 lines

from line 21
2121 -H "anthropic-version: 2026-10-21"
2222```
2323 
24| Item | Rule |
25| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
26| `organization_id` | The `uuid` of a [linked organization](https://platform.claude.com/docs/en/manage-claude/compliance-api#how-the-compliance-api-works) from [List organizations](https://platform.claude.com/docs/en/manage-claude/compliance-org-data#list-organizations); any other value returns 404. |
27| Key | A [key for the parent organization](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api) can name any linked organization, and a key for a single organization can name only that organization. |
28| `anthropic-version` | Required; a request without it returns 400. |
29| Query parameters | None; a request with any query parameter returns 400. |
24| Item | Rule |
25| ----- | ----- |
26| `organization_id` | The `uuid` of a [linked organization](https://platform.claude.com/docs/en/manage-claude/compliance-api#how-the-compliance-api-works) from [List organizations](https://platform.claude.com/docs/en/manage-claude/compliance-org-data#list-organizations); any other value returns 404. |
27| Key | A [key for the parent organization](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api) can name any linked organization, and a key for a single organization can name only that organization. |
28| `anthropic-version` | Required; a request without it returns 400. |
29| Query parameters | None; a request with any query parameter returns 400. |
3030 
3131## Response
3232 
from line 107
107107 
108108### Top-level fields
109109 
110| Field | Type | Description |
111| ----------------- | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
112| `type` | string | Always `security_posture`. |
113| `organization_id` | string | The organization’s UUID. |
114| `evaluated_at` | string (RFC 3339, UTC) | The time at which every control was evaluated. |
115| `comments_status` | string | Whether attestation comments were read; see [Who attested, and comments](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#who-attested-and-comments). |
116| `controls` | array of objects | The organization’s controls, never empty. |
110| Field | Type | Description |
111| ----- | ----- | ----- |
112| `type` | string | Always `security_posture`. |
113| `organization_id` | string | The organization’s UUID. |
114| `evaluated_at` | string (RFC 3339, UTC) | The time at which every control was evaluated. |
115| `comments_status` | string | Whether attestation comments were read; see [Who attested, and comments](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#who-attested-and-comments). |
116| `controls` | array of objects | The organization’s controls, never empty. |
117117 
118118### `controls[]` fields
119119 
120| Field | Type | Description |
121| --------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
122| `id` | string | The control’s identifier, which is the same for every organization and never changes. |
123| `display_name` | string | The control’s display name, as English display text whose wording can change. |
124| `section` | string | The section that the control belongs to, one of the 10 listed after this table; more values can be added, so treat an unknown one as a section of its own. |
125| `setting_name` | string or null | The `name` of the entry in the organization’s effective settings that this control reads; `null` when it reads no such entry. |
126| `status` | string | The reason for the control’s result; see [Status values](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#status-values). |
127| `rating` | string | The control’s result, which follows from `status`; see [Status values](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#status-values). |
128| `current_value` | string or null | The current value, as English display text whose wording can change; `null` on a manual control or when no value was read. |
129| `desired_state` | string or null | The recommended value, as English display text whose wording can change; `null` when there is none for this organization. |
130| `attestation` | object or null | The attestation that the response shows, also while it is not in effect; `null` while `status` is `descriptive`, `not_applicable`, or `not_evaluated`, and in the cases under [How an attestation shows in the response](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#how-an-attestation-shows-in-the-response). |
120| Field | Type | Description |
121| ----- | ----- | ----- |
122| `id` | string | The control’s identifier, which is the same for every organization and never changes. |
123| `display_name` | string | The control’s display name, as English display text whose wording can change. |
124| `section` | string | The section that the control belongs to, one of the 10 listed after this table; more values can be added, so treat an unknown one as a section of its own. |
125| `setting_name` | string or null | The `name` of the entry in the organization’s effective settings that this control reads; `null` when it reads no such entry. |
126| `status` | string | The reason for the control’s result; see [Status values](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#status-values). |
127| `rating` | string | The control’s result, which follows from `status`; see [Status values](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#status-values). |
128| `current_value` | string or null | The current value, as English display text whose wording can change; `null` on a manual control or when no value was read. |
129| `desired_state` | string or null | The recommended value, as English display text whose wording can change; `null` when there is none for this organization. |
130| `attestation` | object or null | The attestation that the response shows, also while it is not in effect; `null` while `status` is `descriptive`, `not_applicable`, or `not_evaluated`, and in the cases under [How an attestation shows in the response](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#how-an-attestation-shows-in-the-response). |
131131 
132132`section` is one of `identity_access`, `data_privacy`, `capabilities`, `connectors_integrations`, `chats_desktop_mdm`, `cowork_admin_console`, `cowork_desktop_mdm`, `claude_code_admin_console`, `claude_code_managed_settings`, and `healthy_adoption`.
133133 
from line 135
135135 
136136### `attestation` fields
137137 
138| Field | Type | Description |
139| ------------- | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
140| `state` | string or null | Whether the attestation is in effect (`null` means it is); see [Attestation states](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#attestation-states). |
141| `attested_at` | string (RFC 3339, UTC) | When the attestation was made. |
142| `comment` | string or null | The comment saved with the attestation, of at most 2,000 characters; `null` if there is none or if `comments_status` is not `available`. |
143| `attested_by` | object or null | The person who attested; `null` when the key holds neither `read:compliance_user_data` nor `read:org_audit`, when that person’s account has been deleted or is being deleted, or when the endpoint does not return who attested for the organization. |
138| Field | Type | Description |
139| ----- | ----- | ----- |
140| `state` | string or null | Whether the attestation is in effect (`null` means it is); see [Attestation states](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#attestation-states). |
141| `attested_at` | string (RFC 3339, UTC) | When the attestation was made. |
142| `comment` | string or null | The comment saved with the attestation, of at most 2,000 characters; `null` if there is none or if `comments_status` is not `available`. |
143| `attested_by` | object or null | The person who attested; `null` when the key holds neither `read:compliance_user_data` nor `read:org_audit`, when that person’s account has been deleted or is being deleted, or when the endpoint does not return who attested for the organization. |
144144 
145145### `attested_by` fields
146146 
147| Field | Type | Description |
148| --------- | ------ | ----------------------------------------- |
149| `type` | string | Always `user_actor`. |
147| Field | Type | Description |
148| ----- | ----- | ----- |
149| `type` | string | Always `user_actor`. |
150150| `user_id` | string | The user’s ID, which starts with `user_`. |
151151 
152152## Status values
from line 153
153153 
154154`status` gives the reason for a control’s result, and each status has one `rating`.
155155 
156| `status` | Kind of control | Meaning | `rating` | On the page |
157| ---------------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------ | -------------- | -------------------------------------------------------- |
158| `passed` | automatic | The current value meets the recommended value. | `passed` | Passed |
159| `matches_profile` | automatic | The current value equals the recommended value. | `passed` | Passed |
160| `exceeds_baseline` | automatic | The current value is stricter than the recommended value. | `passed` | Passed |
161| `failed_check_accepted_risk` | automatic | The automatic check fails, and an accepted risk is in effect. | `passed` | Passed |
162| `failed` | automatic or manual | The current value does not meet the recommended value, or an attestation that the response leaves out gives this result. | `failed` | Failed, or Passed with a Completed attestation in effect |
163| `review` | automatic | The current value is looser than the recommended value. | `failed` | Failed |
164| `attested_completed` | manual | An attestation with the value Completed (`completed`) is in effect. | `passed` | Passed |
165| `attested_accepted_risk` | manual | An attestation with the value Accepted risk (`accepted_risk`) is in effect. | `passed` | Passed |
166| `not_attested` | manual | No attestation is in effect. | `not_attested` | Not attested |
167| `attestation_not_enabled` | manual | Nobody can attest to the control. | `not_attested` | Descriptive |
168| `descriptive` | information-only | The control is reported, not rated. | `descriptive` | Descriptive |
169| `not_applicable` | any | The control does not apply to the organization. | `descriptive` | Descriptive |
170| `not_evaluated` | any | The setting, or another setting that decides whether the control applies, could not be read. | `descriptive` | Descriptive |
156| `status` | Kind of control | Meaning | `rating` | On the page |
157| ----- | ----- | ----- | ----- | ----- |
158| `passed` | automatic | The current value meets the recommended value. | `passed` | Passed |
159| `matches_profile` | automatic | The current value equals the recommended value. | `passed` | Passed |
160| `exceeds_baseline` | automatic | The current value is stricter than the recommended value. | `passed` | Passed |
161| `failed_check_accepted_risk` | automatic | The automatic check fails, and an accepted risk is in effect. | `passed` | Passed |
162| `failed` | automatic or manual | The current value does not meet the recommended value, or an attestation that the response leaves out gives this result. | `failed` | Failed, or Passed with a Completed attestation in effect |
163| `review` | automatic | The current value is looser than the recommended value. | `failed` | Failed |
164| `attested_completed` | manual | An attestation with the value Completed (`completed`) is in effect. | `passed` | Passed |
165| `attested_accepted_risk` | manual | An attestation with the value Accepted risk (`accepted_risk`) is in effect. | `passed` | Passed |
166| `not_attested` | manual | No attestation is in effect. | `not_attested` | Not attested |
167| `attestation_not_enabled` | manual | Nobody can attest to the control. | `not_attested` | Descriptive |
168| `descriptive` | information-only | The control is reported, not rated. | `descriptive` | Descriptive |
169| `not_applicable` | any | The control does not apply to the organization. | `descriptive` | Descriptive |
170| `not_evaluated` | any | The setting, or another setting that decides whether the control applies, could not be read. | `descriptive` | Descriptive |
171171 
172172No field names the kind of control; for `failed`, a `null` `current_value` marks a manual control. More values can be added, so count a control with an unknown `status` by its `rating` and read an unknown `rating` as not Passed. The status `review` and the attestation state `review_due` are not related.
173173 
from line 175
175175 
176176`state` says whether the attestation that the response shows is in effect.
177177 
178| `state` | Meaning |
179| ----------------- | -------------------------------------------------------------------------------------------------------------------------- |
180| `in_force` | The attestation is in effect. |
181| `null` | The attestation is in effect, the same as `in_force`. This state appears only on a manual control. |
182| `review_due` | The end date has come. |
178| `state` | Meaning |
179| ----- | ----- |
180| `in_force` | The attestation is in effect. |
181| `null` | The attestation is in effect, the same as `in_force`. This state appears only on a manual control. |
182| `review_due` | The end date has come. |
183183| `setting_changed` | The check fails on a value other than the one whose risk was accepted, or the accepted risk was already recorded as ended. |
184| `check_passing` | The check passes, so there is no risk to accept. |
184| `check_passing` | The check passes, so there is no risk to accept. |
185185 
186186When more than one reason applies, the response gives the first of `check_passing`, `setting_changed`, and `review_due`. From 00:00 UTC on its end date, an attestation is not in effect. The response has no end date, so `state` decides; an end date that was saved is the attestation activity’s [`review_date`](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/events-reference#attestation-activity). Read an unknown `state` as not in effect.
187187 
from line 189
189189 
190190The response shows some attestations and leaves others out, so a `null` `attestation` does not prove that nobody attested.
191191 
192| Kind of control | Attested as | `status` | `rating` | `attestation` |
193| ------------------------------------------- | -------------------------------------- | -------------------------------------------------------------------- | ---------------------- | ----------------------------------------------------- |
194| Manual | No attestation | `not_attested`, or `attestation_not_enabled` where nobody can attest | `not_attested` | `null` |
195| Manual | Completed | `attested_completed` | `passed` | Shown |
196| Manual | Accepted risk | `attested_accepted_risk` | `passed` | Shown |
197| Manual | Failed (`control_failed`) | `failed` | `failed` | `null`: never shown |
198| Automatic, check failed | No attestation | `failed` or `review` | `failed` | `null` |
199| Automatic, check failed | Accepted risk | `failed_check_accepted_risk` | `passed` | Shown |
200| Automatic, check failed | Completed | `failed`, even where the automatic check gives `review` | `failed` | `null`: never shown |
201| Automatic, check failed | Failed | The `status` the automatic check gives | `failed` | `null`: never shown |
202| Automatic, check passed | No attestation | `passed`, `matches_profile`, or `exceeds_baseline` | `passed` | `null` |
203| Automatic, check passed | Completed | The `status` the automatic check gives | `passed` | `null`: never shown |
204| Automatic, check passed | Accepted risk | The `status` the automatic check gives | `passed` | `null` while the check passes on the accepted value |
205| Automatic, check passed | Failed | `failed` | `failed` | `null`: never shown |
206| Information-only | Any value | `descriptive` | `descriptive` | `null`: never shown |
207| Any, while the attestation is not in effect | A value that an earlier row shows | As with no attestation | As with no attestation | Shown, with a `state` other than `in_force` or `null` |
208| Any, while the attestation is not in effect | A value that an earlier row leaves out | As with no attestation | As with no attestation | `null` |
192| Kind of control | Attested as | `status` | `rating` | `attestation` |
193| ----- | ----- | ----- | ----- | ----- |
194| Manual | No attestation | `not_attested`, or `attestation_not_enabled` where nobody can attest | `not_attested` | `null` |
195| Manual | Completed | `attested_completed` | `passed` | Shown |
196| Manual | Accepted risk | `attested_accepted_risk` | `passed` | Shown |
197| Manual | Failed (`control_failed`) | `failed` | `failed` | `null`: never shown |
198| Automatic, check failed | No attestation | `failed` or `review` | `failed` | `null` |
199| Automatic, check failed | Accepted risk | `failed_check_accepted_risk` | `passed` | Shown |
200| Automatic, check failed | Completed | `failed`, even where the automatic check gives `review` | `failed` | `null`: never shown |
201| Automatic, check failed | Failed | The `status` the automatic check gives | `failed` | `null`: never shown |
202| Automatic, check passed | No attestation | `passed`, `matches_profile`, or `exceeds_baseline` | `passed` | `null` |
203| Automatic, check passed | Completed | The `status` the automatic check gives | `passed` | `null`: never shown |
204| Automatic, check passed | Accepted risk | The `status` the automatic check gives | `passed` | `null` while the check passes on the accepted value |
205| Automatic, check passed | Failed | `failed` | `failed` | `null`: never shown |
206| Information-only | Any value | `descriptive` | `descriptive` | `null`: never shown |
207| Any, while the attestation is not in effect | A value that an earlier row shows | As with no attestation | As with no attestation | Shown, with a `state` other than `in_force` or `null` |
208| Any, while the attestation is not in effect | A value that an earlier row leaves out | As with no attestation | As with no attestation | `null` |
209209 
210210Each row but the last two holds while the attestation is in effect. On an automatic control, an attestation is not in effect while the value that the check reads differs from the one that it was saved on. Every attestation that the response shows on an automatic control is an accepted risk. The [Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed) also records attestations of the kinds that the response leaves out.
211211 
from line 213
213213 
214214The response holds no score and no counts, overall or by group. On the Security posture page, the summary line says how many controls passed and how many controls the page counts. To count as the summary line does, count these entries:
215215 
216| Number | Entries that it counts |
217| -------------------- | ------------------------------------------------------------------------------------------------------------- |
218| Controls that passed | Entries rated `passed` |
219| Total | Entries rated `passed`, `failed`, or `not_attested`, except those whose `status` is `attestation_not_enabled` |
216| Number | Entries that it counts |
217| ----- | ----- |
218| Controls that passed | Entries rated `passed` |
219| Total | Entries rated `passed`, `failed`, or `not_attested`, except those whose `status` is `attestation_not_enabled` |
220220 
221221The page shows the `attestation_not_enabled` entries as Descriptive and does not count them. Entries rated `descriptive` are in neither number.
222222 
from line 230
230230 
231231Check four things when you count controls by `rating`.
232232 
233| If you count | Also check |
234| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
235| Passed (`passed`) | It includes every control with an accepted risk in effect, so look for `failed_check_accepted_risk` and `attested_accepted_risk`. |
236| Failed (`failed`) | It includes a control attested as Failed (`control_failed`) and a failing automatic check with a Completed attestation in effect, which the Security posture page shows as Passed. |
237| Not attested (`not_attested`) | It includes the entries whose `status` is `attestation_not_enabled`, which the Security posture page shows as Descriptive. |
238| Descriptive (`descriptive`) | It can hide a control that could not be read, so look for `not_evaluated`. |
233| If you count | Also check |
234| ----- | ----- |
235| Passed (`passed`) | It includes every control with an accepted risk in effect, so look for `failed_check_accepted_risk` and `attested_accepted_risk`. |
236| Failed (`failed`) | It includes a control attested as Failed (`control_failed`) and a failing automatic check with a Completed attestation in effect, which the Security posture page shows as Passed. |
237| Not attested (`not_attested`) | It includes the entries whose `status` is `attestation_not_enabled`, which the Security posture page shows as Descriptive. |
238| Descriptive (`descriptive`) | It can hide a control that could not be read, so look for `not_evaluated`. |
239239 
240240The Security posture page groups controls by product. You cannot rebuild those groups from the response. The only grouping field is `section`, and the page does not make its groups from sections alone. Counting by `section` works, but it gives different rows from the page’s.
241241 
from line 245
245245 
246246The endpoint returns no comments, even when the Security posture page shows one: every `comment` is `null`, and `comments_status` is `not_enabled` or `not_permitted`. So `not_enabled` and a `null` comment do not mean the attestation has no comment. `comments_status` says how to read a `null` comment, and the schema defines these values.
247247 
248| `comments_status` | Meaning |
249| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
250| `not_permitted` | The API key holds neither `read:compliance_user_data` nor `read:org_audit`, so every `comment` and every `attested_by` is `null`. |
248| `comments_status` | Meaning |
249| ----- | ----- |
250| `not_permitted` | The API key holds neither `read:compliance_user_data` nor `read:org_audit`, so every `comment` and every `attested_by` is `null`. |
251251| `requires_organization_key` | The API key was not created in the organization, as with a key for the parent organization, so every `comment` is `null`. Retrying does not help. |
252| `available` | Comments were read, so a `null` comment means that there is none or that it was saved moments ago. |
253| `not_enabled` | This endpoint does not return comments for the organization, so every `comment` is `null`. |
254| `unavailable` | Comments could not be read for this response; a later request might succeed, but some causes last until the customer acts. |
252| `available` | Comments were read, so a `null` comment means that there is none or that it was saved moments ago. |
253| `not_enabled` | This endpoint does not return comments for the organization, so every `comment` is `null`. |
254| `unavailable` | Comments could not be read for this response; a later request might succeed, but some causes last until the customer acts. |
255255 
256256More values can be added; read an unknown one as `unavailable`.
257257 
from line 259
259259 
260260Errors use the same body as the rest of the Compliance API. [Handle Compliance API errors](https://platform.claude.com/docs/en/manage-claude/compliance-errors) describes that body. This table lists the errors that this endpoint returns in its own way.
261261 
262| Status and `error.type` | When | What to do |
263| -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
264| 400 `invalid_request_error` | `anthropic-version` is missing or invalid, the Compliance API is not enabled for the parent organization, or there is a query parameter. | Fix what `error.message` names. |
265| 401 `authentication_error` | The key is missing, not recognized, or not a Compliance Access Key or Admin API key. | Send a valid Compliance Access Key in `x-api-key`. |
266| 403 `permission_error` | The key may not call this endpoint, usually because it lacks both `read:compliance_org_data` and `read:org_audit`. | Use a key with either scope. |
267| 404 `not_found_error` | See the causes listed after this table. | Do not retry at once. A 404 does not mean that the organization has no failed controls. |
268| 429 `rate_limit_error` | The shared Compliance API rate limit, or this endpoint’s lower limit, is used up; `error.message` says which. | Wait for `retry-after`; see [429 Too Many Requests](https://platform.claude.com/docs/en/manage-claude/compliance-errors#429-too-many-requests). |
269| 503 `overloaded_error`, with `error.details.error_code` of `posture_evaluation_failed` | The result could not be produced. | Wait for `retry-after`, then retry; if it recurs for one organization on later runs, contact Anthropic support once. |
270| 503 with no `error_code`, or 504 `timeout_error` | A temporary failure. | Retry with exponential backoff. |
262| Status and `error.type` | When | What to do |
263| ----- | ----- | ----- |
264| 400 `invalid_request_error` | `anthropic-version` is missing or invalid, the Compliance API is not enabled for the parent organization, or there is a query parameter. | Fix what `error.message` names. |
265| 401 `authentication_error` | The key is missing, not recognized, or not a Compliance Access Key or Admin API key. | Send a valid Compliance Access Key in `x-api-key`. |
266| 403 `permission_error` | The key may not call this endpoint, usually because it lacks both `read:compliance_org_data` and `read:org_audit`. | Use a key with either scope. |
267| 404 `not_found_error` | See the causes listed after this table. | Do not retry at once. A 404 does not mean that the organization has no failed controls. |
268| 429 `rate_limit_error` | The shared Compliance API rate limit, or this endpoint’s lower limit, is used up; `error.message` says which. | Wait for `retry-after`; see [429 Too Many Requests](https://platform.claude.com/docs/en/manage-claude/compliance-errors#429-too-many-requests). |
269| 503 `overloaded_error`, with `error.details.error_code` of `posture_evaluation_failed` | The result could not be produced. | Wait for `retry-after`, then retry; if it recurs for one organization on later runs, contact Anthropic support once. |
270| 503 with no `error_code`, or 504 `timeout_error` | A temporary failure. | Retry with exponential backoff. |
271271 
272272Causes of a 404:
273273 

manage-claude/compliance-sessions Changed · +24 / -24 lines

from line 20
2020 
2121The following table maps each product, and where it runs, to the endpoint family that returns its sessions and the `product_surface` value that identifies them in responses.
2222 
23| Product and where it runs | Endpoint family | `product_surface` |
24| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
25| Cowork in Claude Desktop, running on the user’s machine | Local session endpoints (`/v1/compliance/apps/sessions/local`) | `cowork` |
26| Claude Code in the terminal, in Claude Desktop, or in an IDE extension, running on the user’s machine | Local session endpoints | `claude_code` |
27| Claude Science desktop app, running on the user’s machine | Local session endpoints | `claude_science` |
28| Claude for Microsoft 365 (the Claude add-ins for Excel, PowerPoint, Word, and Outlook), running in the Microsoft 365 desktop or web apps | Local session endpoints | `office_agents/excel`, `office_agents/powerpoint`, `office_agents/word`, or `office_agents/outlook` |
29| The Claude add-ins for Google Docs, Google Sheets, and Google Slides, running in those Google apps | Local session endpoints | `office_agents/google_docs`, `office_agents/google_sheets`, or `office_agents/google_slides` |
30| Claude in Chrome (the browser extension’s built-in chat), running on the user’s machine | Local session endpoints | `claude_in_chrome` |
31| Cowork sessions running in the cloud in Anthropic-managed environments, including sessions started on claude.ai web or mobile and cloud runs of Cowork scheduled tasks | Remote session endpoints (`/v1/compliance/apps/sessions/remote`) | `cowork_remote` |
32| [Claude Tag](https://claude.com/docs/claude-tag/overview) sessions started in Slack, running in the cloud in Anthropic-managed environments or on a self-hosted runner pool | Remote session endpoints | `claude_tag` |
23| Product and where it runs | Endpoint family | `product_surface` |
24| ----- | ----- | ----- |
25| Cowork in Claude Desktop, running on the user’s machine | Local session endpoints (`/v1/compliance/apps/sessions/local`) | `cowork` |
26| Claude Code in the terminal, in Claude Desktop, or in an IDE extension, running on the user’s machine | Local session endpoints | `claude_code` |
27| Claude Science desktop app, running on the user’s machine | Local session endpoints | `claude_science` |
28| Claude for Microsoft 365 (the Claude add-ins for Excel, PowerPoint, Word, and Outlook), running in the Microsoft 365 desktop or web apps | Local session endpoints | `office_agents/excel`, `office_agents/powerpoint`, `office_agents/word`, or `office_agents/outlook` |
29| The Claude add-ins for Google Docs, Google Sheets, and Google Slides, running in those Google apps | Local session endpoints | `office_agents/google_docs`, `office_agents/google_sheets`, or `office_agents/google_slides` |
30| Claude in Chrome (the browser extension’s built-in chat), running on the user’s machine | Local session endpoints | `claude_in_chrome` |
31| Cowork sessions running in the cloud in Anthropic-managed environments, including sessions started on claude.ai web or mobile and cloud runs of Cowork scheduled tasks | Remote session endpoints (`/v1/compliance/apps/sessions/remote`) | `cowork_remote` |
32| [Claude Tag](https://claude.com/docs/claude-tag/overview) sessions started in Slack, running in the cloud in Anthropic-managed environments or on a self-hosted runner pool | Remote session endpoints | `claude_tag` |
3333 
3434`office_agents` alone does not say which app the session came from, and it can come from Claude for Microsoft 365 or the Google add-ins. See the `product_surface` description under [Sessions on users’ machines](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-local-sessions).
3535 
from line 42
4242 
4343Anthropic recommends the Compliance API for retrieving session content. The following table compares [local sessions](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-local-sessions) and [remote sessions](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-remote-sessions) with the OpenTelemetry-based alternatives available for Cowork and Claude Code, [Cowork’s OpenTelemetry logging](https://support.claude.com/en/articles/14477985-monitor-claude-cowork-activity-with-opentelemetry) and [Claude Code monitoring](https://code.claude.com/docs/en/monitoring-usage).
4444 
45| | Local sessions (on users’ machines) | Remote sessions (in the cloud) | OpenTelemetry logging |
46| --------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- |
47| Delivery | Pull: query and export over HTTPS | Pull: query and export over HTTPS | Push: streamed to your OTLP collector |
48| Setup | Works with your existing Compliance Access Key | Works with your existing Compliance Access Key | Admin configures an OTLP endpoint and content-capture settings |
49| Infrastructure | Anthropic-hosted | Anthropic-hosted | You run the collector and storage |
50| ID prefix | `clls_` | `cse_` | N/A |
51| `product_surface` values | `cowork`, `claude_code`, `claude_science`, `claude_in_chrome`, and values starting with `office_agents` | `cowork_remote`, `claude_tag` | N/A |
52| Retention | 6 years by default, or your organization’s custom conversation retention period when a finite one is set; 30 days in organizations with HIPAA readiness enabled; held by Anthropic | No default period; see [Retention and deletion](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retention-and-deletion); held by Anthropic | Your infrastructure, your policies |
53| User prompts and assistant responses | Yes | Yes | Yes, subject to content-capture settings |
54| Tool inputs | Truncated to 10,000 bytes per input by default; up to about 1 MiB on request | Truncated to 10,000 bytes per input by default; up to about 1 MiB on request | Truncated summaries |
55| Tool result content | Each text entry truncated to 10,000 bytes by default; up to about 1 MiB on request | Each text entry truncated to 10,000 bytes by default; up to about 1 MiB on request | Metadata such as size and success; Claude Code can also capture content with an optional, size-capped setting |
56| File contents | Yes, through transcript tool calls (text only; other content appears as a placeholder) | Yes, through transcript tool calls (text only; other content is omitted) | File paths; Claude Code can also capture contents with an optional, size-capped setting |
57| Host and device metadata (terminal type, workspace paths) | No | No | Yes |
58| Token usage and cost | No; available through the [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api#get-access-to-the-claude-enterprise-analytics-api) | No; available through the [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api#get-access-to-the-claude-enterprise-analytics-api) | Yes |
45| | Local sessions (on users’ machines) | Remote sessions (in the cloud) | OpenTelemetry logging |
46| ----- | ----- | ----- | ----- |
47| Delivery | Pull: query and export over HTTPS | Pull: query and export over HTTPS | Push: streamed to your OTLP collector |
48| Setup | Works with your existing Compliance Access Key | Works with your existing Compliance Access Key | Admin configures an OTLP endpoint and content-capture settings |
49| Infrastructure | Anthropic-hosted | Anthropic-hosted | You run the collector and storage |
50| ID prefix | `clls_` | `cse_` | N/A |
51| `product_surface` values | `cowork`, `claude_code`, `claude_science`, `claude_in_chrome`, and values starting with `office_agents` | `cowork_remote`, `claude_tag` | N/A |
52| Retention | 6 years by default, or your organization’s custom conversation retention period when a finite one is set; 30 days in organizations with HIPAA readiness enabled; held by Anthropic | No default period; see [Retention and deletion](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retention-and-deletion); held by Anthropic | Your infrastructure, your policies |
53| User prompts and assistant responses | Yes | Yes | Yes, subject to content-capture settings |
54| Tool inputs | Truncated to 10,000 bytes per input by default; up to about 1 MiB on request | Truncated to 10,000 bytes per input by default; up to about 1 MiB on request | Truncated summaries |
55| Tool result content | Each text entry truncated to 10,000 bytes by default; up to about 1 MiB on request | Each text entry truncated to 10,000 bytes by default; up to about 1 MiB on request | Metadata such as size and success; Claude Code can also capture content with an optional, size-capped setting |
56| File contents | Yes, through transcript tool calls (text only; other content appears as a placeholder) | Yes, through transcript tool calls (text only; other content is omitted) | File paths; Claude Code can also capture contents with an optional, size-capped setting |
57| Host and device metadata (terminal type, workspace paths) | No | No | Yes |
58| Token usage and cost | No; available through the [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api#get-access-to-the-claude-enterprise-analytics-api) | No; available through the [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api#get-access-to-the-claude-enterprise-analytics-api) | Yes |
5959 
6060## Sessions on users’ machines (local sessions)
6161 

manage-claude/data-residency Changed · +16 / -16 lines

from line 52
5252 
5353The `inference_geo` parameter controls where model inference runs for a specific API request. Add it to any `POST /v1/messages` call.
5454 
55| Value | Description |
56| ---------- | ----------------------------------------------------------------------------------------------- |
55| Value | Description |
56| ----- | ----- |
5757| `"global"` | Default. Inference may run in any available geography for optimal performance and availability. |
58| `"us"` | Inference runs only in US-based infrastructure. |
58| `"us"` | Inference runs only in US-based infrastructure. |
5959 
6060### API usage
6161 
from line 332
332332 
333333Your workspace was migrated automatically:
334334 
335| Legacy setting | New equivalent |
336| -------------------------------- | --------------------------------------------------------------- |
335| Legacy setting | New equivalent |
336| ----- | ----- |
337337| Global routing opt-out (US only) | `allowed_inference_geos: ["us"]`, `default_inference_geo: "us"` |
338338 
339339All API requests using keys from your workspace continue to run on US-based infrastructure. No action is needed to maintain your current behavior.
from line 379
379379* Availability: Available
380380* Usage: Set `inference_geo` on each request, or set a default for the workspace.
381381 
382| Status | Cloud platforms | Models |
383| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
384| Available | Claude API | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview) |
385| Available<sup>1</sup> | [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview) |
386| Available<sup>2</sup> | [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview) |
382| Status | Cloud platforms | Models |
383| ----- | ----- | ----- |
384| Available | Claude API | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview) |
385| Available<sup>1</sup> | [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview) |
386| Available<sup>2</sup> | [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview) |
387387 
3883881. Workspace geo is not configurable.
3893892. Workspace geo and the workspace’s inference geo settings are not configurable.
from line 393
393393* Availability: Available
394394* Usage: Pin `inference_geo` in the agent’s model configuration, and override it per session at session creation. An agent with no pin follows the workspace default.
395395 
396| Status | Cloud platforms | Models |
397| --------------------- | ------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
398| Available | Claude API | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview) |
399| Available<sup>1</sup> | [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview) |
396| Status | Cloud platforms | Models |
397| ----- | ----- | ----- |
398| Available | Claude API | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), Claude Mythos Preview, [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview) |
399| Available<sup>1</sup> | [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) | [Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/overview), [Claude Fable 5.1](https://platform.claude.com/docs/en/models/fable-5-1/overview), [Claude Fable 5](https://platform.claude.com/docs/en/models/fable-5/overview), [Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/overview), [Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview), [Claude Sonnet 5.5](https://platform.claude.com/docs/en/models/sonnet-5-5/overview), [Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview), [Claude Haiku 5.5](https://platform.claude.com/docs/en/models/haiku-5-5/overview), [Claude Opus 4.8](https://platform.claude.com/docs/en/models/opus-4-8/overview), [Claude Opus 4.7](https://platform.claude.com/docs/en/models/opus-4-7/overview), [Claude Opus 4.6](https://platform.claude.com/docs/en/models/opus-4-6/overview), [Claude Sonnet 4.6](https://platform.claude.com/docs/en/models/sonnet-4-6/overview) |
400400 
4014011. Workspace geo is not configurable; Managed Agents sessions there run with workspace geo “us”.
402402 
from line 404
404404 
405405[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
406406 
407| Item | Zero data retention | HIPAA |
408| ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
407| Item | Zero data retention | HIPAA |
408| ----- | ----- | ----- |
409409| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
410410 
411411Applicable endpoints:

manage-claude/inference-hooks Changed · +4 / -4 lines

from line 105
105105 
106106Both features serve security, legal, and compliance teams at Claude Enterprise organizations.
107107 
108| | Inference hooks | Compliance API |
109| ------------ | --------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
110| When it acts | Inline, before inference runs | After the fact |
108| | Inference hooks | Compliance API |
109| ----- | ----- | ----- |
110| When it acts | Inline, before inference runs | After the fact |
111111| What it does | Allows or denies each governed request in real time | Retrieves activity, chats, files, projects, session transcripts, and users for audit and export |
112| Direction | Anthropic calls your AI security server | You call Anthropic’s API |
112| Direction | Anthropic calls your AI security server | You call Anthropic’s API |
113113 
114114Use Inference hooks to stop a request before it reaches the model, and the [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api) to audit what occurred afterward.
115115 

manage-claude/inference-hooks-configuration Changed · +18 / -18 lines

from line 60
6060 
6161 Common failure results:
6262 
63 | Result | What to check |
64 | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
65 | URL rejected | The URL failed a structural check. Use an `https://` URL on port 443. |
66 | Private or internal IP | The URL’s host is a private or internal IP address, an IPv6 address, or `localhost`. Use a publicly routable host. |
67 | Timeout | The AI security server did not return a verdict within the timeout. |
68 | Transport error | DNS resolution, the TLS handshake, or the connection failed, or the hostname resolves to a private address. |
69 | Non-200 status | The AI security server responded with a status other than 200. Verdicts must come back as HTTP 200; redirects are not followed and count as failures. |
70 | Unparseable response | The AI security server responded, but the body is not a valid verdict. |
71 | Signing secret required | Your organization has no signing secret, so the test would be sent unsigned. Click **Generate secret** under **Request signing**, then test again. |
63 | Result | What to check |
64 | ----- | ----- |
65 | URL rejected | The URL failed a structural check. Use an `https://` URL on port 443. |
66 | Private or internal IP | The URL’s host is a private or internal IP address, an IPv6 address, or `localhost`. Use a publicly routable host. |
67 | Timeout | The AI security server did not return a verdict within the timeout. |
68 | Transport error | DNS resolution, the TLS handshake, or the connection failed, or the hostname resolves to a private address. |
69 | Non-200 status | The AI security server responded with a status other than 200. Verdicts must come back as HTTP 200; redirects are not followed and count as failures. |
70 | Unparseable response | The AI security server responded, but the body is not a valid verdict. |
71 | Signing secret required | Your organization has no signing secret, so the test would be sent unsigned. Click **Generate secret** under **Request signing**, then test again. |
7272 </Step>
7373 
7474 <Step title="Choose failure handling and timeout">
from line 141
141141 
142142The error types in **Recent errors** mean:
143143 
144| Error shown | What it means | Counts toward the circuit breaker |
145| ---------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
146| `DlpWebhookTimeoutError` · `webhook_error` | Your AI security server didn’t return a verdict within the **Prompt verdict timeout (ms)** you set. | Yes |
147| `DlpWebhookStatusError` · `webhook_error` | Your AI security server answered with an HTTP status other than 200, such as a redirect. | Yes |
148| `DlpWebhookResponseError` · `webhook_error` | Your AI security server answered 200, but the body isn’t a valid verdict or is larger than 64 KiB. | Yes |
149| `DlpWebhookTransportError` · `webhook_error` | The connection failed or dropped before a complete answer arrived: for example, the hostname didn’t resolve or resolved to a private address, the connection was refused or reset, or the TLS handshake failed. A network problem on Anthropic’s side can also show up this way. | No |
150| `DlpWebhookDisallowedAddressError` · `webhook_error` | The endpoint URL’s host is a private or internal IP address, an IPv6 address, or `localhost`. A hostname that resolves to such an address shows as a transport error instead. | Yes |
151| `DlpWebhookBlockedError` · `webhook_error` | The endpoint URL isn’t an `https://` URL on port 443, or can’t be parsed, so no request was sent. | No |
152| `DlpWebhookRelayError` · `relay_error` | The failure was inside Anthropic’s systems, and your AI security server usually wasn’t contacted. | No |
144| Error shown | What it means | Counts toward the circuit breaker |
145| ----- | ----- | ----- |
146| `DlpWebhookTimeoutError` · `webhook_error` | Your AI security server didn’t return a verdict within the **Prompt verdict timeout (ms)** you set. | Yes |
147| `DlpWebhookStatusError` · `webhook_error` | Your AI security server answered with an HTTP status other than 200, such as a redirect. | Yes |
148| `DlpWebhookResponseError` · `webhook_error` | Your AI security server answered 200, but the body isn’t a valid verdict or is larger than 64 KiB. | Yes |
149| `DlpWebhookTransportError` · `webhook_error` | The connection failed or dropped before a complete answer arrived: for example, the hostname didn’t resolve or resolved to a private address, the connection was refused or reset, or the TLS handshake failed. A network problem on Anthropic’s side can also show up this way. | No |
150| `DlpWebhookDisallowedAddressError` · `webhook_error` | The endpoint URL’s host is a private or internal IP address, an IPv6 address, or `localhost`. A hostname that resolves to such an address shows as a transport error instead. | Yes |
151| `DlpWebhookBlockedError` · `webhook_error` | The endpoint URL isn’t an `https://` URL on port 443, or can’t be parsed, so no request was sent. | No |
152| `DlpWebhookRelayError` · `relay_error` | The failure was inside Anthropic’s systems, and your AI security server usually wasn’t contacted. | No |
153153 
154154In shadow mode, no error counts toward the circuit breaker.
155155 

manage-claude/inference-hooks-endpoint Changed · +50 / -50 lines

from line 152
152152 
153153Every request carries these fixed headers, along with any [custom request headers](https://platform.claude.com/docs/en/manage-claude/inference-hooks-configuration) your administrator configured and, once your organization has a signing secret, the `webhook-*` signature headers described in [Verify the signature](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#verify-the-signature):
154154 
155| Header | Value |
156| ----------------- | ------------------ |
157| `Content-Type` | `application/json` |
158| `User-Agent` | `anthropic-dlp/1` |
159| `Accept-Encoding` | `identity` |
155| Header | Value |
156| ----- | ----- |
157| `Content-Type` | `application/json` |
158| `User-Agent` | `anthropic-dlp/1` |
159| `Accept-Encoding` | `identity` |
160160 
161161There are two hook events, told apart by the top-level `type` field. The prompt frame is sent once for each governed inference request, before inference starts. The tool call frame is sent when a model response contains tool calls, before any of them runs, in organizations that have **Validate tool calls** on. Either way, Anthropic waits until your AI security server responds or the verdict timeout elapses.
162162 
from line 164
164164 
165165The request body is a JSON object with these fields:
166166 
167| Field | Type | Description |
168| ------------ | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
169| `type` | string | The hook event: `"prompt"` or `"tool_call"` (see [The tool call frame](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#the-tool-call-frame)). Other event types will be introduced in the future, so handle an unrecognized value gracefully (see [Forward compatibility](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#forward-compatibility)). |
170| `request_id` | string | Opaque per-frame identifier for correlation. Equals the `webhook-id` header. |
171| `tenant_id` | string or null | Opaque identifier for the organization the request belongs to. |
172| `actor` | object | The principal the request is attributed to, discriminated on `type` (`"user"` is the only value sent today): `id` (a tagged identifier, stable across requests for the same account) and `email_address` (when available). Both `id` and `email_address` can be null. |
173| `source` | object | The originating application: `application` (see [Source values](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#source-values)). |
174| `messages` | array | The conversation transcript up to the point of inference. See [Content blocks](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#content-blocks). |
175| `session_id` | string or null | Opaque conversation identifier, when one exists. Don’t parse it. For Claude Code it is a best-effort, client-asserted session identifier. |
176| `model` | string or null | Public model identifier for this request, when available. |
177| `metadata` | object | Reserved extension map of string keys to string values, sent empty today. Require nothing from it, and tolerate its absence, its presence, and any keys that appear. |
167| Field | Type | Description |
168| ----- | ----- | ----- |
169| `type` | string | The hook event: `"prompt"` or `"tool_call"` (see [The tool call frame](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#the-tool-call-frame)). Other event types will be introduced in the future, so handle an unrecognized value gracefully (see [Forward compatibility](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#forward-compatibility)). |
170| `request_id` | string | Opaque per-frame identifier for correlation. Equals the `webhook-id` header. |
171| `tenant_id` | string or null | Opaque identifier for the organization the request belongs to. |
172| `actor` | object | The principal the request is attributed to, discriminated on `type` (`"user"` is the only value sent today): `id` (a tagged identifier, stable across requests for the same account) and `email_address` (when available). Both `id` and `email_address` can be null. |
173| `source` | object | The originating application: `application` (see [Source values](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#source-values)). |
174| `messages` | array | The conversation transcript up to the point of inference. See [Content blocks](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#content-blocks). |
175| `session_id` | string or null | Opaque conversation identifier, when one exists. Don’t parse it. For Claude Code it is a best-effort, client-asserted session identifier. |
176| `model` | string or null | Public model identifier for this request, when available. |
177| `metadata` | object | Reserved extension map of string keys to string values, sent empty today. Require nothing from it, and tolerate its absence, its presence, and any keys that appear. |
178178 
179179An example request body:
180180 
from line 219
219219 
220220Each entry in `messages` has a `role` of `user` or `assistant` (tool results appear under the `user` role, matching the public Messages API content model) and a `content` array of blocks discriminated by `type`:
221221 
222| Block `type` | Fields |
223| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
224| `text` | `text`: the text content. |
225| `tool_use` | `id`: the identifier the matching tool result references. `tool_name`: the tool’s name. `input`: the arguments the model passed to the tool. `tool_info`: on a tool call frame only (left out elsewhere, never `null`), an object that says who runs or provides the tool; see [The tool call frame](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#the-tool-call-frame). |
226| `tool_result` | `content`: the tool’s output as text, with parts joined by newlines; binary parts such as images are replaced by placeholder markers, and raw bytes are never sent. `is_error`: whether the tool call failed. `tool_name`: the tool’s name, so a policy can condition on tool identity without cross-referencing an earlier block. `tool_use_id`: the `id` of the matching `tool_use` block. |
227| `attachment` | `file_name`: the original file name or path. `media_type`: the attachment’s media type. `size_bytes`: the size of the original file. `text`: the text content of the attachment when available, such as extracted document text, an audio transcript, or link metadata. Raw attachment bytes are never sent. |
222| Block `type` | Fields |
223| ----- | ----- |
224| `text` | `text`: the text content. |
225| `tool_use` | `id`: the identifier the matching tool result references. `tool_name`: the tool’s name. `input`: the arguments the model passed to the tool. `tool_info`: on a tool call frame only (left out elsewhere, never `null`), an object that says who runs or provides the tool; see [The tool call frame](https://platform.claude.com/docs/en/manage-claude/inference-hooks-endpoint#the-tool-call-frame). |
226| `tool_result` | `content`: the tool’s output as text, with parts joined by newlines; binary parts such as images are replaced by placeholder markers, and raw bytes are never sent. `is_error`: whether the tool call failed. `tool_name`: the tool’s name, so a policy can condition on tool identity without cross-referencing an earlier block. `tool_use_id`: the `id` of the matching `tool_use` block. |
227| `attachment` | `file_name`: the original file name or path. `media_type`: the attachment’s media type. `size_bytes`: the size of the original file. `text`: the text content of the attachment when available, such as extracted document text, an audio transcript, or link metadata. Raw attachment bytes are never sent. |
228228 
229229Apart from `type`, a `text` block’s `text`, and a `tool_result` block’s `content` and `is_error`, any of these fields can be `null` when the value isn’t known; for example, an image arrives as an `attachment` block with `file_name` and `text` set to `null`.
230230 
from line 264
264264 
265265A platform tool is one that the Claude API itself runs while it serves the request, such as web search or code execution.
266266 
267| Field | Present | Description |
268| -------------- | -------- | ------------------------------------------------------------------------------------------------------------------- |
269| `type` | Always | `"platform"` |
270| `tool_type` | Always | The tool’s versioned type, such as `web_search_20250305`. Match it exactly; don’t parse a name or a date out of it. |
271| `toolset_name` | Optional | The group of tools it belongs to. |
267| Field | Present | Description |
268| ----- | ----- | ----- |
269| `type` | Always | `"platform"` |
270| `tool_type` | Always | The tool’s versioned type, such as `web_search_20250305`. Match it exactly; don’t parse a name or a date out of it. |
271| `toolset_name` | Optional | The group of tools it belongs to. |
272272 
273273### Application tools
274274 
275275An application tool is one that the Anthropic application making the request provides itself, such as claude.ai’s own tools.
276276 
277| Field | Present | Description |
278| -------------- | -------- | --------------------------------- |
279| `type` | Always | `"application"` |
277| Field | Present | Description |
278| ----- | ----- | ----- |
279| `type` | Always | `"application"` |
280280| `toolset_name` | Optional | The group of tools it belongs to. |
281281 
282282A `tool_use` block for a web search tool that claude.ai provides itself:
from line 301
301301 
302302A third-party tool is one on a server that Anthropic knows of, such as a claude.ai connector or an MCP server that the request names in `mcp_servers`. This doesn’t mean Anthropic has vetted the server. In voice mode, a call to a claude.ai connector’s tool is `"client"` instead.
303303 
304| Field | Present | Description |
305| ----------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
306| `type` | Always | `"third_party"` |
307| `toolset_name` | Optional | For a server in `mcp_servers`, the name the request gives the server. For any other server, such as a claude.ai connector, the server’s name, copied from `tool_name`. |
308| `origin` | Optional | The scheme, host, and non-default port of the server’s URL. It can be a private or local address, `localhost` included. An absent `origin` means unknown, not safe. |
309| `verified_origin` | Whenever `origin` is | `true` only when Anthropic’s servers connect to the server themselves. Treat `false` as an origin that Anthropic hasn’t confirmed. |
304| Field | Present | Description |
305| ----- | ----- | ----- |
306| `type` | Always | `"third_party"` |
307| `toolset_name` | Optional | For a server in `mcp_servers`, the name the request gives the server. For any other server, such as a claude.ai connector, the server’s name, copied from `tool_name`. |
308| `origin` | Optional | The scheme, host, and non-default port of the server’s URL. It can be a private or local address, `localhost` included. An absent `origin` means unknown, not safe. |
309| `verified_origin` | Whenever `origin` is | `true` only when Anthropic’s servers connect to the server themselves. Treat `false` as an origin that Anthropic hasn’t confirmed. |
310310 
311311A `tool_use` block for a tool on an MCP server that the request names `crm` in `mcp_servers`:
312312 
from line 358
358358 
359359A deny stops the call before Claude Code runs it. The exchange between Claude Code and a local server doesn’t pass through Anthropic, so your AI security server sees the tool’s result only when Claude Code sends it back. Its text is then in a `tool_result` block in the next prompt frame.
360360 
361| Field | Present | Description |
362| -------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
363| `type` | Always | `"client"` |
364| `tool_type` | Optional | The tool’s versioned type, such as `bash_20250124`, when Anthropic defines the tool. Match it exactly; don’t parse a name or a date out of it. |
365| `toolset_name` | Optional | The group of tools it belongs to, such as `browser`. |
361| Field | Present | Description |
362| ----- | ----- | ----- |
363| `type` | Always | `"client"` |
364| `tool_type` | Optional | The tool’s versioned type, such as `bash_20250124`, when Anthropic defines the tool. Match it exactly; don’t parse a name or a date out of it. |
365| `toolset_name` | Optional | The group of tools it belongs to, such as `browser`. |
366366 
367367A `tool_use` block for a tool that the calling application declares:
368368 
from line 417
417417}
418418```
419419 
420| Field | Constraints | Semantics |
421| -------------- | --------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
422| `action` | `"allow"` or `"deny"`; required | `allow` lets inference proceed; `deny` rejects it. |
423| `deny_reason` | string or null; at most 500 characters, longer values truncated | Shown to the end user when `action` is `deny`; ignored on `allow`. |
424| `reference_id` | string or null; at most 50 characters from `[A-Za-z0-9._:/-]` | Your own identifier for this evaluation. It’s recorded on the denial’s `inference_hooks_request_denied` [compliance activity](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed) and never shown to the end user. Keep it opaque: no request content and no personal data. |
420| Field | Constraints | Semantics |
421| ----- | ----- | ----- |
422| `action` | `"allow"` or `"deny"`; required | `allow` lets inference proceed; `deny` rejects it. |
423| `deny_reason` | string or null; at most 500 characters, longer values truncated | Shown to the end user when `action` is `deny`; ignored on `allow`. |
424| `reference_id` | string or null; at most 50 characters from `[A-Za-z0-9._:/-]` | Your own identifier for this evaluation. It’s recorded on the denial’s `inference_hooks_request_denied` [compliance activity](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed) and never shown to the end user. Keep it opaque: no request content and no personal data. |
425425 
426426A deny is never discarded over a formatting problem: an oversize `deny_reason` is truncated, a malformed `reference_id` is silently dropped, and the `action` is still honored.
427427 
from line 438
438438 
439439Requests are signed according to the [Standard Webhooks](https://www.standardwebhooks.com/) specification, using three headers. Anthropic sends the header names in lowercase, and proxies are free to re-case them, so look them up case-insensitively.
440440 
441| Header | Contents |
442| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
443| `webhook-id` | Unique identifier for this delivery. Equals the body’s `request_id`. Use it as an idempotency key and as the first component of the signed payload. |
444| `webhook-timestamp` | Unix time in seconds, as a decimal string, when the request was signed. Reject a timestamp more than 5 minutes from your server’s clock, in either direction. |
441| Header | Contents |
442| ----- | ----- |
443| `webhook-id` | Unique identifier for this delivery. Equals the body’s `request_id`. Use it as an idempotency key and as the first component of the signed payload. |
444| `webhook-timestamp` | Unix time in seconds, as a decimal string, when the request was signed. Reject a timestamp more than 5 minutes from your server’s clock, in either direction. |
445445| `webhook-signature` | One or more space-separated `v1,<base64>` values, each an HMAC-SHA256 over `{webhook-id}.{webhook-timestamp}.{raw body bytes}`. Accept the request if any value matches yours, using a constant-time comparison. |
446446 
447447Two details cause most verification bugs:

manage-claude/oauth-apps/app-review Changed · +6 / -6 lines

from line 16
1616 
1717Until the app is live, the Console shows one of these statuses for it:
1818 
19| Status | What it means |
20| ---------------- | --------------------------------------------------------------------------- |
21| **Testing** | You haven’t published the app. |
22| **In review** | Anthropic is reviewing the app or a change that you made while it was live. |
23| **Not approved** | Anthropic reviewed the app or the change and didn’t approve it. |
19| Status | What it means |
20| ----- | ----- |
21| **Testing** | You haven’t published the app. |
22| **In review** | Anthropic is reviewing the app or a change that you made while it was live. |
23| **Not approved** | Anthropic reviewed the app or the change and didn’t approve it. |
2424 
25An app that goes back to review after a change isn’t live again until Anthropic approves the change. Each Linked billing app has its own status and its own test users. See the note in [Step 1: Create the app](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#step-1-create-the-app) in the Linked billing guide.
25An app that goes back to review after a change isn’t live again until Anthropic approves the change. Each app has its own status and its own test users. See the note in [Step 1: Create the app](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#step-1-create-the-app) in the Linked billing guide.
2626 
2727## Before you begin
2828 

manage-claude/oauth-apps/branding-samples Changed · +13 / -19 lines

## Copy the button’s HTML and CSS ## Colors ## Download the logo ## The buttons ### Copy the button’s HTML ### Colors ### Download the logo

from line 8
88 Claude Platform OAuth is a Beta Service: prerelease software provided under your agreement with Anthropic, such as the [Commercial Terms of Service](https://www.anthropic.com/legal/commercial-terms), and the [Service Specific Terms](https://www.anthropic.com/legal/service-specific-terms). Endpoints, parameters, and behavior can change during the beta. It might not be suitable for production use.
99</Warning>
1010 
11This page has branding samples for products that use [Linked billing](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections): the Link your Claude organization button.
11Add a **Link your Claude organization** button to a product that uses [Linked billing](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections). Put the button where your customers manage billing or integrations. When someone clicks it, your back end [starts the billing connection](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#runtime-step-2).
1212 
13## The buttons
14 
15Put a **Link your Claude organization** button where your customers manage billing or integrations. When someone clicks it, your back end [starts the billing connection](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#runtime-step-2).
16 
1713<Frame caption="The button in light and dark">
1814 ![Link your Claude organization button, light and dark, with the Claude logo before its words](https://platform.claude.com/docs/images/claude-link-button.svg)
1915</Frame>
2016 
21### Copy the button’s HTML
17## Copy the button’s HTML and CSS
2218 
23Open **Button CSS** and put its `<style>` block in your page’s `<head>`, or move the rules inside it to your style sheet. Then open **Sample HTML for the Link your Claude organization button** and put the link where you want the button. Change `/claude/billing/link` to the address on your back end that starts the connection.
19Open **Button CSS** and put its `<style>` block in your page’s `<head>`, or move the rules inside it to your style sheet. Then, open **Sample HTML for the Link your Claude organization button** and put the link where you want the button. Change `/claude/billing/link` to the address on your back end that starts the connection.
2420 
2521Together, the CSS and the HTML contain the logo and all of the button’s styles, so if your site has a Content Security Policy, you don’t need to add an Anthropic host to it.
2622 
from line 118
122118 For the dark button, add the `claude-button-dark` class to the link.
123119</Accordion>
124120 
125<Note>
126 If your page starts the connection by submitting a form, use `<button type="submit" class="claude-button">` in place of the link. The same styles apply. A rule in your style sheet that styles every button inside a container can still restyle it. Compare the result with the picture.
127</Note>
121If your page starts the connection by submitting a form, use `<button type="submit" class="claude-button">` in place of the link. The same styles apply. A rule in your style sheet that styles every button inside a container can still restyle the button. Compare the result with the picture.
128122 
129### Colors
123## Colors
130124 
131| Part | Light button | Dark button |
132| ----------------------------------------------- | ------------ | ----------- |
133| Background | `#FFFFFF` | `#141413` |
134| Text | `#141413` | `#FAF9F5` |
135| Border | `#87867F` | `#73726C` |
136| Background while the pointer is over the button | `#F5F4ED` | `#262624` |
137| Logo | `#D97757` | `#D97757` |
125| Part | Light button | Dark button |
126| ----- | ----- | ----- |
127| Background | `#FFFFFF` | `#141413` |
128| Text | `#141413` | `#FAF9F5` |
129| Border | `#87867F` | `#73726C` |
130| Background while the pointer is over the button | `#F5F4ED` | `#262624` |
131| Logo | `#D97757` | `#D97757` |
138132 
139### Download the logo
133## Download the logo
140134 
141135To build the same button without HTML, for example in a mobile or desktop app, save the following file as `claude-logo.svg`. Use the colors in [Colors](https://platform.claude.com/docs/en/manage-claude/oauth-apps/branding-samples#button-colors), and hide the logo from screen readers, because the words already name the button.
142136 

manage-claude/oauth-apps/oauth-reference Changed · +145 / -172 lines

## Token request ## Discovery document values ## Token request and response

from line 12
1212 
1313## Endpoints
1414 
15| Endpoint | URL |
16| ------------------------------------------------------------ | ---------------------------------------------------------------------------- |
17| Issuer | `https://identity.anthropic.com/users` |
18| Discovery document | `https://identity.anthropic.com/users/.well-known/openid-configuration` |
19| Signing keys (JWKS) | The `jwks_uri` in the discovery document, hosted on `identity.anthropic.com` |
20| Authorization endpoint (sign-in and consent page) | `https://auth.claude.com/oauth/authorize` |
21| Pushed authorization request (PAR) endpoint | `https://auth.claude.com/v1/oauth/par` |
22| Token endpoint | `https://auth.claude.com/v1/oauth/token` |
23| Revocation endpoint | `https://auth.claude.com/v1/oauth/revoke` |
24| Claude API (user profiles and requests that bill a customer) | `https://api.anthropic.com` |
15| Endpoint | URL |
16| ----- | ----- |
17| Authorization endpoint (sign-in and consent page) | `https://auth.claude.com/oauth/authorize` |
18| Pushed authorization request (PAR) endpoint | `https://auth.claude.com/v1/oauth/par` |
19| Token endpoint | `https://auth.claude.com/v1/oauth/token` |
20| Revocation endpoint | `https://auth.claude.com/v1/oauth/revoke` |
21| Claude API (user profiles and requests that bill a customer) | `https://api.anthropic.com` |
2522 
26Read the signing keys from the discovery document rather than hardcoding them. The discovery document does not list the PAR endpoint or the revocation endpoint, so use the URLs in this table.
27 
28## Discovery document values
29 
30| Field | Value |
31| --------------------------------------- | ------------------------------------------------ |
32| `issuer` | `https://identity.anthropic.com/users` |
33| `authorization_endpoint` | `https://auth.claude.com/oauth/authorize` |
34| `token_endpoint` | `https://auth.claude.com/v1/oauth/token` |
35| `jwks_uri` | `https://identity.anthropic.com/users/jwks.json` |
36| `response_types_supported` | `code` |
37| `grant_types_supported` | `authorization_code`, `refresh_token` |
38| `code_challenge_methods_supported` | `S256` |
39| `token_endpoint_auth_methods_supported` | `private_key_jwt` |
40| `id_token_signing_alg_values_supported` | `ES256` |
41| `scopes_supported` | `openid`, `email` |
42| `subject_types_supported` | `public`, `pairwise` |
43 
44`auth.claude.com` returns a refresh token for Linked billing only when the customer approved `offline_access` together with `billing:attribution`: see [OAuth tokens for a billing connection](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#oauth-tokens-for-a-billing-connection).
45 
4623## Client authentication
4724 
48`auth.claude.com` authenticates a confidential client with the `private_key_jwt` method ([RFC 7523](https://www.rfc-editor.org/rfc/rfc7523)). Send these parameters on every request to the PAR endpoint, the token endpoint, and the revocation endpoint. Never send credentials in a URL query string: `auth.claude.com` rejects them.
25`auth.claude.com` authenticates your app with the `private_key_jwt` method ([RFC 7523](https://www.rfc-editor.org/rfc/rfc7523)). Send these parameters on every request to the PAR endpoint, the token endpoint, and the revocation endpoint. Never send credentials in a URL query string: `auth.claude.com` rejects them.
4926 
50| Parameter | Value |
51| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
52| `client_id` | Your OAuth app’s client ID |
53| `client_assertion_type` | `urn:ietf:params:oauth:client-assertion-type:jwt-bearer` |
54| `client_assertion` | A JWT from your identity provider with the claims in [Client assertion claims](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#client-assertion-claims) |
27| Parameter | Value |
28| ----- | ----- |
29| `client_id` | Your OAuth app’s client ID |
30| `client_assertion_type` | `urn:ietf:params:oauth:client-assertion-type:jwt-bearer` |
31| `client_assertion` | A JWT from your identity provider with the claims in [Client assertion claims](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#client-assertion-claims) |
5532 
5633### Client assertion claims
5734 
5835A client assertion must contain all of the following claims, and its header must contain the `kid` of a key in your JWKS.
5936 
60| Claim | Requirement |
61| ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
37| Claim | Requirement |
38| ----- | ----- |
6239| `iss` | Your identity provider’s issuer URL, exactly as registered through [Workload Identity Federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation) |
63| `sub` | A value that matches the subject pattern in your app’s client authentication settings, if you set one |
64| `aud` | Exactly one audience: the value in your app’s client authentication settings. `auth.claude.com` rejects an assertion that lists more than one audience. |
65| `iat` | The time your identity provider issued the JWT |
66| `exp` | The expiry time, no more than 1 hour after `iat`. Use a shorter lifetime where you can: anyone who intercepts an assertion can use it until it expires. |
40| `sub` | A value that matches the subject pattern in your app’s client authentication settings, if you set one |
41| `aud` | Exactly one audience: the value in your app’s client authentication settings. `auth.claude.com` rejects an assertion that lists more than one audience. |
42| `iat` | The time your identity provider issued the JWT |
43| `exp` | The expiry time, no more than 1 hour after `iat`. Use a shorter lifetime where you can: anyone who intercepts an assertion can use it until it expires. |
6744 
6845Example assertion payload:
6946 
from line 58
8158 
8259## Authorization request parameters
8360 
84Send these parameters, except `request_uri`, in the JSON body of a pushed authorization request.
61All of these parameters are required. Send all but `request_uri` in the JSON body of a pushed authorization request.
8562 
86| Parameter | Linked billing | Description |
87| ------------------------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
88| `response_type` | Required | The value `code` |
89| `client_id` | Required | Your OAuth app’s client ID |
90| `redirect_uri` | Required | A URI that exactly matches a registered redirect URI, up to 2,048 characters |
91| `scope` | Required | For a billing connection, `billing:attribution` or `billing:attribution offline_access`. See [Scopes](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#scopes). |
92| `state` | Required | A random, single-use value, up to 2,048 characters, that you check on the callback |
93| `code_challenge` | Required | `BASE64URL(SHA256(code_verifier))`, where the `code_verifier` is 43 to 128 characters |
94| `code_challenge_method` | Required | The value `S256` |
95| `connection_type` | Required | The value `organization_shared`. This value requests an organization connection for billing. |
96| `connection_auth_target` | Required | Which organization the connection’s requests route to. For Linked billing, send `platform` (the owner of the OAuth app). |
97| `user_profile_id` | Required | The ID of an active user profile in your organization that represents the customer |
98| `request_uri` | Required | The value that the PAR endpoint returned. Send it to the authorization endpoint with `client_id` and no other parameters. |
63| Parameter | Description |
64| ----- | ----- |
65| `response_type` | The value `code` |
66| `client_id` | Your OAuth app’s client ID |
67| `redirect_uri` | A URI that exactly matches a registered redirect URI, up to 2,048 characters |
68| `scope` | `billing:attribution` or `billing:attribution offline_access`. See the [billing scopes](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#scopes). |
69| `state` | A random, single-use value, up to 2,048 characters, that you check on the callback |
70| `code_challenge` | `BASE64URL(SHA256(code_verifier))`, where the `code_verifier` is 43 to 128 characters |
71| `code_challenge_method` | The value `S256` |
72| `connection_type` | The value `organization_shared`. An administrator approves the connection on behalf of a whole organization. |
73| `connection_auth_target` | The value `platform`. The connection’s requests route to the owner of the OAuth app. |
74| `user_profile_id` | The ID of an active user profile in your organization that represents the customer |
75| `request_uri` | The value that the PAR endpoint returned. Send it to the authorization endpoint with `client_id` and no other parameters. |
9976 
10077The PAR endpoint returns HTTP 201 with `request_uri` and `expires_in` (600 seconds).
10178 
10279## Scopes
10380 
104| Category | Scope | Description | Connection type | Client type |
105| -------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ------------ |
106| General | `offline_access` | Gives the app a refresh token representing the other requested scopes. On an `organization_shared` connection, send it only together with `billing:attribution`. | `organization_shared` | Confidential |
107| Billing | `billing:attribution` | A connection that lets you bill a customer’s Claude organization for the Claude API requests that the customer directs you to make. Send it alone, or together with `offline_access` to also get a refresh token. See [OAuth tokens for a billing connection](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#oauth-tokens-for-a-billing-connection). | `organization_shared` | Confidential |
108| Billing | `org:billing_attribution` | Deprecated: use `billing:attribution`. | `organization_shared` | Confidential |
81Request these scopes in the `scope` parameter.
10982 
110## Token request and response
83| Scope | Description |
84| ----- | ----- |
85| `offline_access` | Gives the app a refresh token representing the other requested scopes. On a billing connection, send it only together with `billing:attribution`. |
86| `billing:attribution` | A connection that lets you bill a customer’s Claude organization for the Claude API requests that the customer directs you to make. Send it alone, or together with `offline_access` to also get a refresh token. See [OAuth tokens for a billing connection](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#oauth-tokens-for-a-billing-connection). |
87| `org:billing_attribution` | Deprecated: use `billing:attribution`. |
11188 
89## Token request
90 
11291Send token requests to `https://auth.claude.com/v1/oauth/token` with a JSON body.
11392 
114| Parameter | Value |
115| -------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
116| `grant_type` | `authorization_code` |
117| `code` | The code from the callback |
118| `redirect_uri` | The same `redirect_uri` you sent in the authorization request |
119| `code_verifier` | The PKCE code verifier |
93| Parameter | Value |
94| ----- | ----- |
95| `grant_type` | `authorization_code` |
96| `code` | The code from the callback |
97| `redirect_uri` | The same `redirect_uri` you sent in the authorization request |
98| `code_verifier` | The PKCE code verifier |
12099| `client_id`, `client_assertion_type`, `client_assertion` | As in [Client authentication](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#client-authentication) |
121100 
122The token response contains these fields:
101To refresh, send `grant_type` set to `refresh_token`, your `refresh_token`, and the parameters in [Client authentication](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#client-authentication).
123102 
124| Response field | Linked billing |
125| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
126| `access_token` | [The connection’s access token](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#oauth-tokens-for-a-billing-connection) |
127| `token_type` | `Bearer` |
128| `expires_in` | At most `3600` |
129| `scope` | `workspace:inference` |
130| `connection_id` | The connection ID, for example `ocon_EXAMPLE`. Store it. |
131| `refresh_token` | Returned only when the customer approved `offline_access` |
132| `refresh_token_expires_in` | Seconds until `refresh_token` expires. Absent when there is no `refresh_token`. |
133 
134To refresh, send `grant_type` set to `refresh_token`, your `refresh_token`, and the parameters in [Client authentication](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#client-authentication). A refresh of a billing connection follows the rules in [OAuth tokens for a billing connection](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#oauth-tokens-for-a-billing-connection).
135 
136103## OAuth tokens for a billing connection
137104 
138For a billing connection, the token endpoint returns the connection’s access token. The token authenticates as your app’s [operator service account](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#terms), in the workspace that the app’s `connection_token_workspace_id` setting names. On `/v1/messages` and `/v1/chat/completions`, a request with it is billed to that connection’s customer and to no other. When the customer also approved `offline_access`, the token endpoint returns a refresh token too, and the `refresh_token` grant renews both tokens. For the setup and the walkthrough, see [OAuth tokens for each connection](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#oauth-tokens-for-each-connection) on the Linked billing page.
105The token endpoint returns the connection’s access token. The token authenticates as your app’s [operator service account](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#terms) in the workspace that the app’s `connection_token_workspace_id` setting names. On `/v1/messages` and `/v1/chat/completions`, a request with the access token is billed to that connection’s customer and to no other. When the customer also approved `offline_access`, the token endpoint returns a refresh token too, and the `refresh_token` grant renews both tokens. For the setup and the walkthrough, see [OAuth tokens for each connection](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#oauth-tokens-for-each-connection) on the Linked billing page.
139106 
140Both grants take the parameters in [Token request and response](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#token-request-and-response), with [Client authentication](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#client-authentication). A refresh must not send a `scope` parameter. The token response contains these fields:
107Both grants take the parameters in [Token request](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#token-request-and-response) and [Client authentication](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#client-authentication). A refresh must not send a `scope` parameter. The token response contains these fields:
141108 
142| Response field | Value |
143| -------------------------- | ---------------------------------------------------------------------------------------------- |
144| `access_token` | The connection’s access token |
145| `token_type` | `Bearer` |
146| `expires_in` | Seconds until the access token expires, at most `3600` |
147| `scope` | Always `workspace:inference` |
148| `connection_id` | The connection ID, for example `ocon_EXAMPLE`. Only the `authorization_code` grant returns it. |
149| `refresh_token` | The connection’s refresh token. Returned only when the customer approved `offline_access`. |
150| `refresh_token_expires_in` | Seconds until `refresh_token` expires |
109| Response field | Value |
110| ----- | ----- |
111| `access_token` | The connection’s access token |
112| `token_type` | `Bearer` |
113| `expires_in` | Seconds until the access token expires, at most `3600` |
114| `scope` | Always `workspace:inference` |
115| `connection_id` | The connection ID, for example `ocon_EXAMPLE`. Store it. Only the `authorization_code` grant returns it. |
116| `refresh_token` | The connection’s refresh token. Returned only when the customer approved `offline_access`. |
117| `refresh_token_expires_in` | Seconds until `refresh_token` expires. Absent when there is no `refresh_token`. |
151118 
152119Each refresh returns a new `access_token` and a new `refresh_token`. The refresh token that you sent is replaced, and the earlier access token stops working within a few minutes. You can send the replaced refresh token one more time, within 30 seconds of the refresh that replaced it, to repeat a request whose response you lost. That second request returns another new pair and revokes the pair from the lost response: use the newest pair only. A third request with the replaced token gets `invalid_grant`, and so does a second request that arrives after the 30 seconds. Inside the 30 seconds, such a request revokes nothing. After the 30 seconds, it revokes every token of the connection and ends the connection. [Refresh the tokens](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#refresh-the-connection) has the rules and the errors of a refresh.
153120 
from line 132
165132 
166133Send the parameters in [Client authentication](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#client-authentication) and exactly one of the parameters in this table. The client assertion’s `aud` is the value in your app’s client authentication settings, not the revocation URL.
167134 
168| Parameter | What it ends |
169| ----------------- | ---------------------------------------------------------------------------------------------------------------------------- |
170| `connection_id` | One of your app’s connections, given as an `ocon_` ID |
171| `user_profile_id` | All of your app’s connections on one user profile, given as a `uprof_` ID |
172| `token` | For Linked billing, send `connection_id` or `user_profile_id` instead: sending an access token might not end the connection. |
135| Parameter | What it ends |
136| ----- | ----- |
137| `connection_id` | One of your app’s connections, given as an `ocon_` ID |
138| `user_profile_id` | All of your app’s connections on one user profile, given as a `uprof_` ID |
139| `token` | The connection that an access token or refresh token belongs to, and all of that connection’s tokens |
173140 
141An access token from a connection approved with the deprecated `org:billing_attribution` scope is an exception: sending it ends only that token. To end that connection, send `connection_id` or `user_profile_id`.
142 
174143`auth.claude.com` accepts `token_type_hint` and ignores it.
175144 
176145The endpoint returns HTTP 200 and the IDs of the connections that the request ended:
from line 150
181150}
182151```
183152 
184The list is empty if the token or ID is unknown or belongs to another app, if the connection has already ended, or if the request ended a token but no connection. The response does not say which.
153The list is empty in any of these cases, and the response does not say which:
185154 
186After a billing connection ends, the Claude API refuses requests that bill that customer, with `user_profile_not_billable`, and the connection’s OAuth tokens stop working. Do not rely after that on an access token from a connection approved with the deprecated `org:billing_attribution` scope: it might stop working at once, or work until it expires.
155* The token or ID is unknown or belongs to another app.
156* The connection has already ended.
157* The request ended a token but no connection.
187158 
159After any billing connection ends, the Claude API refuses requests that bill the connection’s customer. For the responses, see [Billing errors](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#billing-errors).
160 
161After a `billing:attribution` connection ends, its OAuth tokens stop working. After a connection approved with the deprecated `org:billing_attribution` scope ends, do not rely on its access token. It might stop working at once or work until it expires.
162 
188163## Lifetimes
189164 
190| Item | Lifetime |
191| ----------------------------------- | ----------------------------------------------------------------- |
192| `request_uri` from the PAR endpoint | 10 minutes, single use |
193| Authorization code | 5 minutes, single use |
194| `access_token` | Up to 1 hour |
195| `refresh_token` | Up to 1 year from the code exchange. A refresh doesn’t extend it. |
165| Item | Lifetime |
166| ----- | ----- |
167| `request_uri` from the PAR endpoint | 10 minutes, single use |
168| Authorization code | 5 minutes, single use |
169| `access_token` | Up to 1 hour |
170| `refresh_token` | Up to 1 year from the code exchange. A refresh doesn’t extend it. |
196171 
197These are the current values. Read `expires_in` and `refresh_token_expires_in` from each response rather than relying on fixed values.
172Read `expires_in` and `refresh_token_expires_in` from each response rather than relying on fixed values.
198173 
199174## Redirect URI rules
200175 
from line 185
210185 
211186`auth.claude.com` returns errors as `error`, `error_description`, and `state` query parameters on your redirect URI. They are standard OAuth 2.0 errors ([RFC 6749](https://www.rfc-editor.org/rfc/rfc6749)), except `user_profile_already_linked`, which is specific to Anthropic.
212187 
213| Error | When | What to show your user |
214| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
215| `access_denied` | The person declined or cannot approve this request. For a billing connection, the person must be an administrator of a Claude organization. | Explain that the connection did not complete, and do not assume that the person declined. For a billing connection, follow [Your redirect URI receives `error=access_denied`](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#access-denied) in the Linked billing guide, which lists the causes and what to tell the person. Otherwise, ask the person to contact you. |
216| `server_error` | `auth.claude.com` failed to process the request. | Ask the user to try again. |
217| `user_profile_already_linked` | Linked billing only. The customer’s organization is already linked to your app through a different user profile. Each customer organization can have one connection to your app. `auth.claude.com` has already asked the administrator to contact you. | Explain that their organization is already linked to your app. |
188| Error | When | What to show your user |
189| ----- | ----- | ----- |
190| `access_denied` | The person declined or cannot approve this request. The person must be an administrator of a Claude organization. | Explain that the connection did not complete, and do not assume that the person declined. Follow [Your redirect URI receives `error=access_denied`](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#access-denied) in the Linked billing guide, which lists the causes and what to tell the person. |
191| `server_error` | `auth.claude.com` failed to process the request. | Ask the user to try again. |
192| `user_profile_already_linked` | The customer’s organization is already linked to your app through a different user profile. Each customer organization can have one connection to your app. `auth.claude.com` has already asked the administrator to contact you. | Explain that their organization is already linked to your app. |
218193 
219194If the `request_uri` has expired or you already used it, `auth.claude.com` shows an error page and does not redirect the browser back to your app. Start the flow again with a new pushed authorization request.
220195 
from line 197
222197 
223198These endpoints return a JSON body with `error` and `error_description`.
224199 
225| Error | When |
226| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
227| `invalid_request` | A required parameter is missing or invalid, for example a missing `state` or PKCE challenge, or a `user_profile_id` that is not the ID of an active user profile in your organization. |
228| `invalid_client` | `auth.claude.com` could not authenticate your app: the client ID is unknown, or the client assertion failed verification. Check the assertion’s `iss`, `sub`, and `aud` against your app’s client authentication settings, and check that your identity provider signed it with a key in your JWKS. |
229| `invalid_scope` | The requested scope is not allowed for this app or this connection type. For a [billing connection’s tokens](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#oauth-tokens-for-a-billing-connection), this also means that a refresh sent a `scope` parameter, which it doesn’t accept, or that `billing:attribution` is no longer registered for your app. At the code exchange, that second cause uses up the code. |
230| `invalid_grant` | The code has expired, you already used it, or it does not match the `redirect_uri` or `code_verifier`. For a refresh, the refresh token has expired or is no longer valid: follow [Refresh the tokens](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#refresh-the-connection). |
231| `unauthorized_client` | Your app is not set up for this request. For Linked billing, first check the app’s operator service account and its workspace: see [The code exchange returns `unauthorized_client`](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#code-exchange-unauthorized-client). For a [billing connection’s tokens](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#oauth-tokens-for-a-billing-connection), `error_description` gives the cause, for example a missing workspace. This refusal uses up no code and revokes no refresh token. |
232| `user_profile_already_linked` | Linked billing only, from the token endpoint. Between the approval and this request, the user profile was linked to your app through a different customer organization, or the customer’s organization was linked through a different user profile. |
200| Error | When |
201| ----- | ----- |
202| `invalid_request` | A required parameter is missing or invalid, for example a missing `state` or PKCE challenge, or a `user_profile_id` that is not the ID of an active user profile in your organization. |
203| `invalid_client` | `auth.claude.com` could not authenticate your app: the client ID is unknown, or the client assertion failed verification. Check the assertion’s `iss`, `sub`, and `aud` against your app’s client authentication settings, and check that your identity provider signed it with a key in your JWKS. |
204| `invalid_scope` | The requested scope is not allowed for this app. A refresh also gets this error if it sends a `scope` parameter. Any token request gets this error if `billing:attribution` is no longer registered for your app. At the code exchange, a missing `billing:attribution` uses up the code. |
205| `invalid_grant` | The code has expired, you already used it, or it does not match the `redirect_uri` or `code_verifier`. For a refresh, the refresh token has expired or is no longer valid: follow [Refresh the tokens](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#refresh-the-connection). |
206| `unauthorized_client` | Your app is not set up for this request. First, check the app’s operator service account and its workspace: see [The code exchange returns `unauthorized_client`](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#code-exchange-unauthorized-client). `error_description` might give the cause, for example a missing workspace. This refusal uses up no code and revokes no refresh token. |
207| `user_profile_already_linked` | From the token endpoint. The user profile was linked to your app through a different customer organization, or the customer’s organization was linked through a different user profile. That link was made between the approval and this request. |
233208 
234If `auth.claude.com` rate-limits a request, has an outage, or receives an unknown `grant_type` or a parameter longer than its limit, it returns an error in a different format, which might not be JSON. Retry only on HTTP 429 and 5xx responses, with backoff. Treat any other status as a fault in the request. For a refresh of a billing connection, follow [Refresh the tokens](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#refresh-the-connection) instead of a general backoff. If the response has a `retry-after` header, wait at least that long. Send the next request from your own code, and don’t rely on an HTTP client library’s automatic retries: they might not run for such a response. [Refresh the tokens](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#refresh-the-connection) also says when a retry is safe, because a refresh token that was already used can end the connection when you send it again.
209If `auth.claude.com` rate-limits a request or has an outage, it returns an error in a different format, which might not be JSON. It does the same for an unknown `grant_type` or a parameter longer than its limit. Retry with backoff only on HTTP 429 and 5xx responses. Treat any other status as a fault in the request. For a refresh, follow [Refresh the tokens](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#refresh-the-connection) instead of a general backoff. If the response has a `retry-after` header, wait at least that long. Send the next request from your own code. Don’t rely on an HTTP client library’s automatic retries: they might not run for such a response. [Refresh the tokens](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#refresh-the-connection) also says when a retry is safe. A refresh token that was already used can end the connection when you send it again.
235210 
236211### Errors from the revocation endpoint
237212 
238213For most requests that `auth.claude.com` refuses, the revocation endpoint returns HTTP 400 and a JSON body with `error` and `error_description`.
239214 
240| Error | When |
241| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
242| `invalid_request` | A required parameter is missing or invalid, for example a missing `client_id`. The request sends none of `token`, `connection_id`, and `user_profile_id`, or more than one of them. An ID is malformed, for example it has the wrong prefix. A credential or `token` is in the URL query string. The user profile has too many connections for one request: the request might have ended some of them, so end the rest with `connection_id`. |
243| `invalid_client` | `auth.claude.com` could not authenticate your app. For what to check, see `invalid_client` in [Errors from the PAR and token endpoints](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#errors-from-the-par-and-token-endpoints). |
244| `unauthorized_client` | Your app is not set up for this request. Contact your Anthropic account team. |
215| Error | When |
216| ----- | ----- |
217| `invalid_request` | A required parameter is missing or invalid, for example a missing `client_id`. The request sends none of `token`, `connection_id`, and `user_profile_id`, or more than one of them. An ID is malformed, for example it has the wrong prefix. A credential or `token` is in the URL query string. The user profile has too many connections for one request: the request might have ended some of them, so end the rest with `connection_id`. |
218| `invalid_client` | `auth.claude.com` could not authenticate your app. For what to check, see `invalid_client` in [Errors from the PAR and token endpoints](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#errors-from-the-par-and-token-endpoints). |
219| `unauthorized_client` | Your app is not set up for this request. Contact your Anthropic account team. |
245220 
246221The responses in the next table use a different format, which might not be JSON. When the body is JSON, `error` is an object, not a string.
247222 
248| Status | When | What to do |
249| ------ | -------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
250| 400 | A parameter is longer than its limit. | Correct the request. Do not retry. |
251| 429 | Too many failed requests came from your IP address. | Retry with backoff. |
252| 500 | `auth.claude.com` failed to process the request. | Retry with backoff. If it keeps happening, contact your Anthropic account team. |
253| 501 | Anthropic has not enabled this endpoint for your organization. | Do not retry. Contact your Anthropic account team. |
254| 503 | The request did not finish. Anything it ended stays ended. | Retry with backoff, with the same parameters and a new client assertion. The retry finishes the rest, and its list leaves out connections that the earlier request ended. If you sent `user_profile_id`, retry within a day: after that, a retry can return 200 with an empty list and finish nothing. A retry with each `connection_id` works at any time. |
223| Status | When | What to do |
224| ----- | ----- | ----- |
225| 400 | A parameter is longer than its limit. | Correct the request. Do not retry. |
226| 429 | Too many failed requests came from your IP address. | Retry with backoff. |
227| 500 | `auth.claude.com` failed to process the request. | Retry with backoff. If it keeps happening, contact your Anthropic account team. |
228| 501 | Anthropic has not enabled this endpoint for your organization. | Do not retry. Contact your Anthropic account team. |
229| 503 | The request did not finish. Anything it ended stays ended. | Retry with backoff, with the same parameters and a new client assertion. The retry finishes the rest, and its list leaves out connections that the earlier request ended. If you sent `user_profile_id`, retry within a day: after that, a retry can return 200 with an empty list and finish nothing. A retry with each `connection_id` works at any time. |
255230 
256231### Billing errors
257232 
258233These apply to Claude API requests that set `billing_policy.bill_to` to `"user_profile"` or that authenticate with [a billing connection’s access token](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#oauth-tokens-for-a-billing-connection). The Claude API does not bill either organization for a refused request. None of the 402 and 403 responses is retryable, except a `user_profile_not_billable` refusal in the first 10 seconds after a new connection.
259234 
260| Status | Error type and code | When |
261| ------ | ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
262| 400 | `invalid_request_error` | The request sends `billing_policy` without the `user-profiles-billing-2026-10-01` beta header. Or the `billing_policy` object has a missing or invalid field. With a billing connection’s access token, `bill_to` can be left out. Or the request uses code execution outside the allowed combination. |
263| 400 | `invalid_request_error`, `user_profile_required` | `bill_to` is `"user_profile"`, the request does not include a user profile ID, and it does not authenticate with a billing connection’s access token. |
264| 400 | `invalid_request_error`, with no error code | The request authenticates with a billing connection’s access token, and either sets `bill_to` to `"self"` or names a user profile other than the one the token is limited to. Each of these two refusals says what is wrong in `error.message`. |
265| 401 | `authentication_error` | The request authenticates with a billing connection’s access token that has expired, that a refresh has replaced, or whose connection has ended. The message says whether the token has expired or has been revoked. Send the request again with the current access token, or link the customer again if the connection has ended. After a connection ends, each new request with its access token can get this 401 or a 403 `user_profile_not_billable`, in no fixed order. |
266| 402 | `billing_error`, `linked_organization_spend_limit_reached` | The customer organization has reached a spend limit it set for your OAuth app or for the whole organization. The Claude API sends the same code when the organization has no credit that can pay for the request. The response does not say which. Ask the customer to check both limits and its credit balance. [Expected errors](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#expected-errors) for Linked billing says where each is set and what to change. |
267| 402 | `billing_error`, `linked_organization_billing_unavailable` | Anthropic cannot currently bill the customer organization because of a problem with that organization’s own Anthropic account. The same code ends a reply that Claude has started when the organization’s credit runs out. Ask the customer to check its billing status with Anthropic. |
268| 403 | `permission_error`, with no error code | Anthropic does not bill your organization directly, so it cannot bill customers on your behalf. |
269| 403 | `permission_error`, `user_profile_not_billable` | The user profile has no connection to a customer organization, an administrator or your back end ended the connection, the customer organization does not pay Anthropic directly for its API usage (prepaid credits and invoiced billing both count), or the request does not authenticate as your app’s service account. The response does not say which. A connection’s access token can also get it after the connection has ended. [Causes of `user_profile_not_billable`](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#user-profile-not-billable) says what to check for each. |
270| 503 | `overloaded_error` | The Claude API temporarily cannot confirm whether it can bill the customer. Retry the request. If the response includes a `retry-after` header, wait that long before you retry. |
235| Status | Error type and code | When |
236| ----- | ----- | ----- |
237| 400 | `invalid_request_error` | The request sends `billing_policy` without the `user-profiles-billing-2026-10-01` beta header. Or the `billing_policy` object has a missing or invalid field. With a billing connection’s access token, `bill_to` can be left out. Or the request uses code execution outside the allowed combination. |
238| 400 | `invalid_request_error`, `user_profile_required` | `bill_to` is `"user_profile"`, the request does not include a user profile ID, and it does not authenticate with a billing connection’s access token. |
239| 400 | `invalid_request_error`, with no error code | The request authenticates with a billing connection’s access token, and either sets `bill_to` to `"self"` or names a user profile other than the one the token is limited to. Each of these two refusals says what is wrong in `error.message`. |
240| 401 | `authentication_error` | The request authenticates with a billing connection’s access token that has expired, that a refresh has replaced, or whose connection has ended. The message says whether the token has expired or has been revoked. Send the request again with the current access token, or link the customer again if the connection has ended. After a connection ends, each new request with its access token can get this 401 or a 403 `user_profile_not_billable`, in no fixed order. |
241| 402 | `billing_error`, `linked_organization_spend_limit_reached` | The customer organization has reached a spend limit it set for your OAuth app or for the whole organization. The Claude API sends the same code when the organization has no credit that can pay for the request. The response does not say which. Ask the customer to check both limits and its credit balance. [Expected errors](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#expected-errors) for Linked billing says where each is set and what to change. |
242| 402 | `billing_error`, `linked_organization_billing_unavailable` | Anthropic cannot currently bill the customer organization because of a problem with that organization’s own Anthropic account. The same code ends a reply that Claude has started when the organization’s credit runs out. Ask the customer to check its billing status with Anthropic. |
243| 403 | `permission_error`, with no error code | Anthropic does not bill your organization directly, so it cannot bill customers on your behalf. |
244| 403 | `permission_error`, `user_profile_not_billable` | The user profile has no connection to a customer organization, an administrator or your back end ended the connection, the customer organization does not pay Anthropic directly for its API usage (prepaid credits and invoiced billing both count), or the request does not authenticate as your app’s service account. The response does not say which. A connection’s access token can also get it after the connection has ended. [Causes of `user_profile_not_billable`](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#user-profile-not-billable) says what to check for each. |
245| 503 | `overloaded_error` | The Claude API temporarily cannot confirm whether it can bill the customer. Retry the request. If the response includes a `retry-after` header, wait that long before you retry. |
271246 
272247On `/v1/messages`, the error code is in `error.details.error_code`. On `/v1/chat/completions`, `error.type` is always `invalid_request_error`, `error.code` contains the Anthropic error type (for example `permission_error` or `billing_error`), and the response has no error code, so match on the HTTP status and `error.code`.
273248 
274249## Standards
275250 
276| Standard | Where it applies |
277| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
278| [OAuth 2.0 (RFC 6749)](https://www.rfc-editor.org/rfc/rfc6749) | Authorization code flow, token endpoint, and error responses |
279| [PKCE (RFC 7636)](https://www.rfc-editor.org/rfc/rfc7636) | Required with `S256` on every authorization request |
280| [Pushed authorization requests (RFC 9126)](https://www.rfc-editor.org/rfc/rfc9126) | Required for Linked billing. |
281| [Token revocation (RFC 7009)](https://www.rfc-editor.org/rfc/rfc7009) | The revocation endpoint, which also accepts connection and user profile IDs and returns the IDs of the connections it ended |
282| [JWT client authentication (RFC 7523)](https://www.rfc-editor.org/rfc/rfc7523) | The `private_key_jwt` client authentication at the PAR, token, and revocation endpoints, and the service account token exchange for requests that bill a customer |
251| Standard | Where it applies |
252| ----- | ----- |
253| [OAuth 2.0 (RFC 6749)](https://www.rfc-editor.org/rfc/rfc6749) | Authorization code flow, token endpoint, and error responses |
254| [PKCE (RFC 7636)](https://www.rfc-editor.org/rfc/rfc7636) | Required with `S256` on every authorization request |
255| [Pushed authorization requests (RFC 9126)](https://www.rfc-editor.org/rfc/rfc9126) | Required on every authorization request |
256| [Token revocation (RFC 7009)](https://www.rfc-editor.org/rfc/rfc7009) | The revocation endpoint, which also accepts connection and user profile IDs and returns the IDs of the connections it ended |
257| [JWT client authentication (RFC 7523)](https://www.rfc-editor.org/rfc/rfc7523) | The `private_key_jwt` client authentication at the PAR, token, and revocation endpoints, and the service account token exchange for requests that bill a customer |
283258 
284259## Terms used on these pages
285260 
286261The following meanings apply only to Claude Platform OAuth.
287262 
288| Term | Meaning |
289| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
290| Claude organization | An organization account with Anthropic. Your company has one, and so does each customer that links its organization for billing. |
291| Administrator | A member of a Claude organization with the Admin or Billing role. |
292| OAuth app | The registration in your Claude organization that identifies your product to `auth.claude.com`. It has a client ID, a name, a logo, a homepage URL, redirect URIs, and the connection types it supports. |
293| Connection type | Who approves a connection: an administrator on behalf of a whole organization (`organization_shared`, for Linked billing). |
294| Identity provider | The service in your own infrastructure that signs short-lived JWTs for your back end and publishes its public keys as a JSON Web Key Set (JWKS), such as your cloud provider’s workload identity service or your own OIDC-compliant issuer. On these pages, “your identity provider” always means this service, not Anthropic. |
295| Client assertion | A short-lived JWT that your identity provider signs and your back end sends to authenticate your OAuth app. This is the `private_key_jwt` client authentication method (RFC 7523). |
296| Pushed authorization request (PAR) | A request in which your back end sends the authorization parameters directly to `auth.claude.com` and receives a `request_uri` to use in the browser redirect (RFC 9126). |
297| Workload Identity Federation | The Claude Console feature through which your organization registers your identity provider, so that Anthropic accepts JWTs signed with the keys in your JWKS. |
298| Discovery document | The OIDC document that lists Anthropic’s issuer, endpoints, and signing keys. |
299| User profile | A record that you create in your own Claude organization to represent one of your customers. A billing connection links a user profile to the customer’s Claude organization. |
300| Service account | A non-human account in your Claude organization. For Linked billing, your OAuth app is linked to one service account, its operator service account, and your back end authenticates as that service account when it sends a request that bills a customer. |
301| Connection’s OAuth tokens | The access token that `auth.claude.com` returns for a billing connection, and the refresh token that it returns when the customer also approved `offline_access`. The access token authenticates as the operator service account and can bill only that connection’s user profile. See [OAuth tokens for a billing connection](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#oauth-tokens-for-a-billing-connection). |
263| Term | Meaning |
264| ----- | ----- |
265| Claude organization | An organization account with Anthropic. Your company has one, and so does each customer that links its organization for billing. |
266| Administrator | A member of a Claude organization with the Admin or Billing role. |
267| OAuth app | The registration in your Claude organization that identifies your product to `auth.claude.com`. It has a client ID, a name, a logo, a homepage URL, and redirect URIs. |
268| Identity provider | The service in your own infrastructure that signs short-lived JWTs for your back end and publishes its public keys as a JSON Web Key Set (JWKS), such as your cloud provider’s workload identity service or your own OIDC-compliant issuer. On these pages, “your identity provider” always means this service, not Anthropic. |
269| Client assertion | A short-lived JWT that your identity provider signs and your back end sends to authenticate your OAuth app. This is the `private_key_jwt` client authentication method (RFC 7523). |
270| Pushed authorization request (PAR) | A request in which your back end sends the authorization parameters directly to `auth.claude.com` and receives a `request_uri` to use in the browser redirect (RFC 9126). |
271| Workload Identity Federation | The Claude Console feature through which your organization registers your identity provider, so that Anthropic accepts JWTs signed with the keys in your JWKS. |
272| User profile | A record that you create in your own Claude organization to represent one of your customers. A billing connection links a user profile to the customer’s Claude organization. |
273| Service account | A non-human account in your Claude organization. Your OAuth app is linked to one service account, its operator service account. Your back end authenticates as that service account when it sends a request that bills a customer. |
274| Connection’s OAuth tokens | The access token that `auth.claude.com` returns for a billing connection, and the refresh token that it returns when the customer also approved `offline_access`. The access token authenticates as the operator service account and can bill only that connection’s user profile. See [OAuth tokens for a billing connection](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#oauth-tokens-for-a-billing-connection). |
302275 

manage-claude/oauth-apps/organization-billing-connections Changed · +26 / -28 lines

from line 61
6161 
6262Set up how your back end proves to `auth.claude.com` that its requests come from your app. This takes the place of a client secret: Anthropic does not issue client secrets for OAuth apps.
6363 
64On the app’s **Client authentication** tab, select your **Identity provider** (the issuer that signs your back end’s tokens). To add one, click **Register a new issuer**. Then set a **Subject pattern**, or claim conditions under **Advanced match options**, that those tokens must match. After you save, the tab shows the expected audience. Your client assertion’s `aud` claim must be exactly that value.
64On the app’s **Client authentication** tab, select your **Identity provider**. This is the issuer that signs your back end’s tokens, such as AWS, Google Cloud, or Kubernetes. To add one, click **Register a new issuer** or see [Workload Identity Federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation). Then, set a **Subject pattern** or claim conditions under **Advanced match options** that those tokens must match. After you save, the tab shows the expected audience. Your client assertion’s `aud` claim must be exactly that value.
6565 
66<Note>
67 Your app authenticates to the PAR, token, and revocation endpoints with a variation of the `private_key_jwt` method (RFC 7523): with each request, your back end sends a client assertion, a JWT that your identity provider issues. `auth.claude.com` checks the token’s signature with the keys registered for that issuer, and checks it against the subject or claim conditions you set here. For the claims a client assertion must contain, see [Client assertion claims](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#client-assertion-claims).
68</Note>
66Your app authenticates to the PAR, token, and revocation endpoints with a variation of the `private_key_jwt` method (RFC 7523). With each request, your back end sends a client assertion, a JWT that your identity provider issues. `auth.claude.com` checks the token’s signature with the keys registered for that issuer. It also checks the token against the subject or claim conditions you set here. For the claims a client assertion must contain, see [Client assertion claims](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#client-assertion-claims).
6967 
7068### Step 3: Set up your back end’s identity
7169 
from line 107
109107 
110108You do Steps 4 to 8 for each customer that links their organization. The following Python code snippets require the Anthropic SDK and some standard imports; see [Code snippet initialization](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#code-snippet-initialization). The examples in other languages and the CLI take their credentials from the environment. Ensure `ANTHROPIC_API_KEY` is not set, because your app needs to authenticate with Workload Identity Federation.
111109 
112Add a “Link your Claude organization” button where your customers manage billing or integrations in your product (for the button’s HTML, colors, and logo, see [Branding samples](https://platform.claude.com/docs/en/manage-claude/oauth-apps/branding-samples#buttons)). Tell them that to link, they must have the Admin or Billing role in their Claude organization.
110Add a **Link your Claude organization** button where your customers manage billing or integrations in your product. For the button’s HTML, colors, and logo, see [Branding samples](https://platform.claude.com/docs/en/manage-claude/oauth-apps/branding-samples). Tell your customers that to link, they must have the Admin or Billing role in their Claude organization.
113111 
114112To go through the steps yourself first, see [Test as a customer](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#test-as-a-customer).
115113 
from line 484
486484 
487485Your app is not set up for this request. For a workspace problem, the `error_description` names the cause. For a missing operator service account, it reads only `the client is not registered for this grant`. The refusal doesn’t use up the code, so you can exchange the same code again until it expires. First, check these in the Claude Console:
488486 
489| Check | Where | Fix |
490| --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
491| The app has an operator service account | **Operator service account** on the app’s **Client authentication** tab | Select one and click **Save**. Step 3 says how to set one up. |
487| Check | Where | Fix |
488| ----- | ----- | ----- |
489| The app has an operator service account | **Operator service account** on the app’s **Client authentication** tab | Select one and click **Save**. Step 3 says how to set one up. |
492490| The app’s workspace isn’t missing or archived | [Set up your app](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#settings-for-a-connections-oauth-tokens) | Choose a workspace. While the app has none, the exchange is refused with `unauthorized_client` too. |
493491 
494492A saved service account can take a minute or two to reach `auth.claude.com`, so if the exchange is refused again, wait that long and retry. If the code has expired by then, have the user approve again (Steps 5 to 8). For the causes that `error_description` names for a connection’s tokens, see [Store the tokens](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#keep-the-tokens-from-step-8) and [Refresh the tokens](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#refresh-the-connection).
from line 1430
14321430 
14331431In the response, `connection_status` describes the user profile’s link to your app:
14341432 
1435| `connection_status.type` | Meaning |
1436| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1437| `connected` | At least one connection between the user profile and your app is active. |
1438| `disconnected` | The user profile was linked, and every connection has ended. `last_revoked_at` says when the last one ended. `last_revoked_reason.type` says why, for example `revoked_by_admin` (an administrator of the customer’s organization) or `revoked_by_app_owner` (your organization, including your back end). |
1439| `not_connected` | The user profile has never been linked to your app. |
1433| `connection_status.type` | Meaning |
1434| ----- | ----- |
1435| `connected` | At least one connection between the user profile and your app is active. |
1436| `disconnected` | The user profile was linked, and every connection has ended. `last_revoked_at` says when the last one ended. `last_revoked_reason.type` says why, for example `revoked_by_admin` (an administrator of the customer’s organization) or `revoked_by_app_owner` (your organization, including your back end). |
1437| `not_connected` | The user profile has never been linked to your app. |
14401438 
14411439Treat a `connection_status` of `null`, or a `type` you don’t recognize, as unknown. Treat a reason you don’t recognize as `other`. `oauth_connections.data` lists the connections themselves.
14421440 
from line 1705
17071705 
17081706To unlink a customer through the Claude API instead, send your app’s client ID in `oauth_app_id` to `POST /v1/user_profiles/{id}/unlink`. This ends the same connections as the revocation endpoint with `user_profile_id`. The two requests differ as follows:
17091707 
1710| | Revocation endpoint | Unlink |
1711| ------------------ | ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1712| **Host** | `auth.claude.com` | `api.anthropic.com` |
1713| **Authentication** | Your app’s client authentication (Step 2) | Your operator service account (Step 3): its access token, or an API key bound to it. The access token must come from a federation rule with the `workspace:developer` scope, which is the default. |
1714| **Beta header** | None | `user-profiles-search-2026-08-30` |
1715| **What it ends** | One connection, or all of your app’s connections on a user profile | All of your app’s connections on a user profile |
1708| | Revocation endpoint | Unlink |
1709| ----- | ----- | ----- |
1710| **Host** | `auth.claude.com` | `api.anthropic.com` |
1711| **Authentication** | Your app’s client authentication (Step 2) | Your operator service account (Step 3): its access token, or an API key bound to it. The access token must come from a federation rule with the `workspace:developer` scope, which is the default. |
1712| **Beta header** | None | `user-profiles-search-2026-08-30` |
1713| **What it ends** | One connection, or all of your app’s connections on a user profile | All of your app’s connections on a user profile |
17161714 
17171715<CodeGroup exclude="shell:CLI, python, typescript, csharp, go, java, php, ruby">
17181716 ```bash cURL
from line 1790
17921790* **Set a monthly spend limit:** The user enters a limit for your app in whole US dollars and clicks **Continue**. The amount field starts empty, so the page doesn’t choose a limit for the user. **Continue without a limit** saves no new limit, and a cap or default that the customer saved earlier still applies. The limit that the user enters is the spend cap that [Spend caps](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#spend-caps) describes. This screen differs while your app is in testing: see [While your app is in testing](https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections#while-your-app-is-in-testing).
17931791* **The last screen:** This screen lists what your app will be able to do, including the limit that the user chose. The user clicks **Link and authorize**.
17941792 
1795The approval page uses whichever Claude account is signed in to the browser and offers only that account’s Claude organizations. That account might not be the one that your user expects, for example a personal account instead of a work account. Your app can’t choose the account. The OpenID Connect parameters `prompt=select_account` and `login_hint` don’t change which account the page uses.
1793The approval page uses whichever Claude account is signed in to the browser and offers only that account’s Claude organizations. That account might not be the one that your user expects, for example a personal account instead of a work account. Your app can’t choose the account. The `prompt=select_account` and `login_hint` parameters don’t change which account the page uses.
17961794 
17971795### After linking
17981796 
from line 1829
18311829 
18321830These limits apply whenever someone links your app or changes its cap while the app is in testing, in review, or not approved:
18331831 
1834| | In testing, in review, or not approved | After the app is live |
1835| ------------------------------------------------- | -------------------------------------- | --------------------- |
1836| A monthly spend limit on the approval page | Required, $50 USD or less | Optional |
1837| The amount field on the approval page | Starts at $50 USD | Starts empty |
1838| **Continue without a limit** on the approval page | Not offered | Offered |
1839| Removing the cap in the Console | Not possible | Possible |
1840| The largest cap that a customer can set | $50 USD | No practical maximum |
1832| | In testing, in review, or not approved | After the app is live |
1833| ----- | ----- | ----- |
1834| A monthly spend limit on the approval page | Required, $50 USD or less | Optional |
1835| The amount field on the approval page | Starts at $50 USD | Starts empty |
1836| **Continue without a limit** on the approval page | Not offered | Offered |
1837| Removing the cap in the Console | Not possible | Possible |
1838| The largest cap that a customer can set | $50 USD | No practical maximum |
18411839 
18421840Once your app is live, a cap that a customer saved before then stays in place. The customer can then raise or remove it.
18431841 

manage-claude/oauth-apps/overview Changed · +6 / -8 lines

## Let customers pay for their own Claude usage ## What you can build ### Let customers pay for their own Claude usage

from line 10
1010 
1111Claude Platform OAuth lets your users bill their Claude organization for usage within your app.
1212 
13## What you can build
13## Let customers pay for their own Claude usage
1414 
15### Let customers pay for their own Claude usage
15When your product calls Claude, you can bill the usage to each customer’s own Claude organization. This is Linked billing. Your users click a **Link your Claude organization** button, sign in to Claude, and approve your app. They must have the Admin or Billing role in their Claude organization.
1616 
17When your product calls Claude, the usage can be billed to your customers’ own Claude organization. Your users click a **Link your Claude organization** button, sign in to Claude, and approve your app. For Linked billing, the user must have the Admin or Billing role in their Claude organization.
18 
1917After that:
2018 
2119* You choose on each Claude API request whether the customer pays or you pay.
from line 36
3836The approval page shows your app’s name and what your app is asking for, so the person knows what they’re approving.
3937 
4038<Note>
41 If you’ve worked with OAuth before: Claude Platform OAuth uses the OAuth 2.0 authorization code flow with PKCE, with Anthropic as the authorization server.
39 Claude Platform OAuth uses the OAuth 2.0 authorization code flow with PKCE. Anthropic is the authorization server.
4240</Note>
4341 
4442## One-time OAuth app setup
from line 46
4846These steps need the Admin role in your Claude organization.
4947 
50481. **Create the app.** In the Claude Console, create an OAuth app and copy its client ID. The app holds the name that people see on the approval page and the address in your product that they return to.
512. **Set up client authentication.** Instead of a client secret, your back end proves that a request comes from your app with a short-lived token from your own identity provider, such as AWS, Google Cloud, Microsoft Entra ID, or Kubernetes. You select the identity provider, and which of its tokens to accept, on the app’s **Client authentication** tab.
523. **Set up your back end’s identity.** Create a service account and a second federation rule with [Workload Identity Federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation), and select the service account as the app’s operator service account.
492. **Set up client authentication.** Instead of a client secret, your back end uses a short-lived token to prove that a request comes from your app. The token comes from your own identity provider, such as AWS, Google Cloud, or Kubernetes. On the app’s **Client authentication** tab, you select the identity provider and which of its tokens to accept.
503. **Set up your back end’s identity.** Create a service account and a second federation rule with [Workload Identity Federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation). Select the service account as the app’s [operator service account](https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference#terms), which your back end uses to bill customers.
5351 
5452## Next steps
5553 
5654The Linked billing guide walks you through setup and your first linked customer.
5755 
58<CardGroup cols={3}>
56<CardGroup cols={2}>
5957 <Card title="Linked billing" icon="coins" href="https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections">
6058 Let your customers pay for the Claude usage in your product from their own Claude organization
6159 </Card>

manage-claude/opentelemetry Changed · +21 / -21 lines

from line 74
7474 </Card>
7575</CardGroup>
7676 
77| What you get | SDK tracing | API tracing | Both together |
78| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
79| [Messages API](https://platform.claude.com/docs/en/api/messages/create) requests | ✅ | ✅ | ✅ |
80| [Sessions API](https://platform.claude.com/docs/en/managed-agents/sessions) requests | ✅ | ✅ | ✅ |
81| Token usage (see [Counting tokens](https://platform.claude.com/docs/en/manage-claude/opentelemetry#count-tokens)) | ✅ | ✅ | ✅ |
82| Each model run within a request | — | ✅ | ✅ |
83| [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) turns | — | ✅ | ✅ |
84| [Server tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools), run by the API | — | ✅ | ✅ |
85| Client tools, run by the [tool runner](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-runner) | ✅ | — | ✅ |
86| Tools in a [self-hosted sandbox](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#trace-a-self-hosted-sandbox) | ✅ | — | ✅ |
87| Other API requests, such as uploading files | ✅ | — | ✅ |
88| Setup | [Code](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk) | [Console](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api) | Both |
89| Required permission | None | [Admin](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#what-you-need) | [Admin](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#what-you-need) |
90| Coverage | Clients using the SDK | Any client | Any client |
91| Cloud platform support | See [Availability of SDK tracing](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#feature-availability) | Claude API<br />Claude Platform on AWS | Claude API<br />Claude Platform on AWS |
77| What you get | SDK tracing | API tracing | Both together |
78| ----- | ----- | ----- | ----- |
79| [Messages API](https://platform.claude.com/docs/en/api/messages/create) requests | ✅ | ✅ | ✅ |
80| [Sessions API](https://platform.claude.com/docs/en/managed-agents/sessions) requests | ✅ | ✅ | ✅ |
81| Token usage (see [Counting tokens](https://platform.claude.com/docs/en/manage-claude/opentelemetry#count-tokens)) | ✅ | ✅ | ✅ |
82| Each model run within a request | — | ✅ | ✅ |
83| [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) turns | — | ✅ | ✅ |
84| [Server tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools), run by the API | — | ✅ | ✅ |
85| Client tools, run by the [tool runner](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-runner) | ✅ | — | ✅ |
86| Tools in a [self-hosted sandbox](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#trace-a-self-hosted-sandbox) | ✅ | — | ✅ |
87| Other API requests, such as uploading files | ✅ | — | ✅ |
88| Setup | [Code](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk) | [Console](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api) | Both |
89| Required permission | None | [Admin](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#what-you-need) | [Admin](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#what-you-need) |
90| Coverage | Clients using the SDK | Any client | Any client |
91| Cloud platform support | See [Availability of SDK tracing](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#feature-availability) | Claude API<br />Claude Platform on AWS | Claude API<br />Claude Platform on AWS |
9292 
9393For Claude Code, the Agent SDK, or Cowork, see [Claude Code monitoring](https://code.claude.com/docs/en/monitoring-usage), [Agent SDK observability](https://code.claude.com/docs/en/agent-sdk/observability), or [Cowork activity monitoring](https://support.claude.com/en/articles/14477985-monitor-claude-cowork-activity-with-opentelemetry).
9494 
from line 275
275275 
276276* Availability: Available
277277 
278| Status | Cloud platforms | Models |
279| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
280| Beta | Claude API, [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock), [Amazon Bedrock (bedrock-runtime)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy), [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) | [All models](https://platform.claude.com/docs/en/models/overview) |
278| Status | Cloud platforms | Models |
279| ----- | ----- | ----- |
280| Beta | Claude API, [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock), [Amazon Bedrock (bedrock-runtime)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy), [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) | [All models](https://platform.claude.com/docs/en/models/overview) |
281281 
282282#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
283283 
284284* Availability: Available
285285 
286| Status | Cloud platforms | Models |
287| ------ | ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------- |
288| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) | [All models](https://platform.claude.com/docs/en/models/overview) |
286| Status | Cloud platforms | Models |
287| ----- | ----- | ----- |
288| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) | [All models](https://platform.claude.com/docs/en/models/overview) |
289289 

manage-claude/opentelemetry/api Changed · +51 / -51 lines

from line 55
5555 
56562. Configure the destination:
5757 
58 | Field | What to enter |
59 | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
60 | **Provider** | Your observability platform, or **Custom** if it isn’t listed. If you select a listed platform, the Console asks for its details, such as an API key, instead of the **OTLP endpoint URL**, **Request headers**, and **OTLP traces endpoint URL**. |
61 | **Name** | Optional. For example, “Acme’s observability platform.” |
62 | **OTLP endpoint URL** | The base HTTPS URL of your observability platform’s OTLP/HTTP endpoint, with a hostname, not an IP address. It can have a path prefix, for example `https://gateway.example.com/otlp`. Don’t add `/v1/traces`, because the API adds it. If you set an **OTLP traces endpoint URL**, the API uses that URL instead. |
63 | **Request headers** | The headers that the API sends with each request, for example your observability platform’s API key header. Put credentials only in header values. After you save, the Console doesn’t show the values again. |
64 | **Content mode** | **Metadata only** or **Full content**. See [how the content modes differ](https://platform.claude.com/docs/en/manage-claude/opentelemetry#choose-a-content-mode). |
65 | **Workspaces** | The workspaces whose spans the destination receives: **All**, **Selected**, or **All except**. See [Choose workspaces for a destination](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#choose-workspaces-for-a-destination). |
66 | **OTLP traces endpoint URL** | Optional, under **Advanced settings**. The full URL of your observability platform’s traces endpoint, for example `https://gateway.example.com/custom/traces`. Set it when the platform receives traces at a URL other than the OTLP endpoint URL plus `/v1/traces`. It must have the same host as the OTLP endpoint URL. |
58 | Field | What to enter |
59 | ----- | ----- |
60 | **Provider** | Your observability platform, or **Custom** if it isn’t listed. If you select a listed platform, the Console asks for its details, such as an API key, instead of the **OTLP endpoint URL**, **Request headers**, and **OTLP traces endpoint URL**. |
61 | **Name** | Optional. For example, “Acme’s observability platform.” |
62 | **OTLP endpoint URL** | The base HTTPS URL of your observability platform’s OTLP/HTTP endpoint, with a hostname, not an IP address. It can have a path prefix, for example `https://gateway.example.com/otlp`. Don’t add `/v1/traces`, because the API adds it. If you set an **OTLP traces endpoint URL**, the API uses that URL instead. |
63 | **Request headers** | The headers that the API sends with each request, for example your observability platform’s API key header. Put credentials only in header values. After you save, the Console doesn’t show the values again. |
64 | **Content mode** | **Metadata only** or **Full content**. See [how the content modes differ](https://platform.claude.com/docs/en/manage-claude/opentelemetry#choose-a-content-mode). |
65 | **Workspaces** | The workspaces whose spans the destination receives: **All**, **Selected**, or **All except**. See [Choose workspaces for a destination](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#choose-workspaces-for-a-destination). |
66 | **OTLP traces endpoint URL** | Optional, under **Advanced settings**. The full URL of your observability platform’s traces endpoint, for example `https://gateway.example.com/custom/traces`. Set it when the platform receives traces at a URL other than the OTLP endpoint URL plus `/v1/traces`. It must have the same host as the OTLP endpoint URL. |
6767 | **Maximum content size in MB** | Optional, under **Advanced settings** when the content mode is **Full content**. The most content that the API sends in each span. The Console fills it in based on the **Provider** you select. Change it to fit what your observability platform accepts. Leave it empty to send as much as the API allows. See [Content limits](https://platform.claude.com/docs/en/manage-claude/opentelemetry#content-limits). |
6868 
69693. Click **Add destination** to save.
from line 662
662662 
663663The **Delivery** column shows each destination’s state. The state can be up to a minute late.
664664 
665| Delivery state | Meaning |
666| -------------- | --------------------------------------------------------------------------- |
667| **Healthy** | The last delivery succeeded. |
668| **Failing** | The last delivery failed. To see the error, hover over **Failing**. |
669| **No data** | The API hasn’t tried a delivery yet. |
670| **Disabled** | The destination doesn’t receive spans. To see why, hover over **Disabled**. |
665| Delivery state | Meaning |
666| ----- | ----- |
667| **Healthy** | The last delivery succeeded. |
668| **Failing** | The last delivery failed. To see the error, hover over **Failing**. |
669| **No data** | The API hasn’t tried a delivery yet. |
670| **Disabled** | The destination doesn’t receive spans. To see why, hover over **Disabled**. |
671671 
672672The API disables a destination when:
673673 
from line 680
680680 
681681## Limits
682682 
683| Limit | Value |
684| ----------------------------------------------------------- | ---------------- |
685| Destinations for each organization, including disabled ones | 10 |
686| Workspaces that you select for a destination | 1,000 |
687| Request headers for each destination | 20 |
688| Length of a header name | 128 bytes |
689| Length of a header value | 4,096 bytes |
690| Length of all header names and values together | 16,384 bytes |
691| Length of an endpoint URL | 2,048 characters |
683| Limit | Value |
684| ----- | ----- |
685| Destinations for each organization, including disabled ones | 10 |
686| Workspaces that you select for a destination | 1,000 |
687| Request headers for each destination | 20 |
688| Length of a header name | 128 bytes |
689| Length of a header value | 4,096 bytes |
690| Length of all header names and values together | 16,384 bytes |
691| Length of an endpoint URL | 2,048 characters |
692692 
693693## Zero data retention
694694 
from line 696
696696 
697697## Troubleshooting
698698 
699| Problem | What to check |
700| ---------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
701| No API spans | The workspace needs an enabled destination that covers it. See [Choose workspaces for a destination](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#choose-workspaces-for-a-destination). After a destination starts covering a workspace, spans from that workspace can take up to a minute to arrive. The API emits no span for a request whose `traceparent` header has the sampled flag off, or for a request to the [OpenAI-compatible endpoint](https://platform.claude.com/docs/en/cli-sdks-libraries/libraries/openai-sdk). |
702| The **Delivery** column shows **Failing** | Hover over it to see the last error. To find the likely cause, see [Delivery errors](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#delivery-errors). |
703| The **Delivery** column shows **Disabled** | Hover over it to see why. For the reasons, see [when the API disables a destination](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#delivery-and-health). |
704| Spans have no prompts or responses, but the destination is set to **Full content** | Your organization might have a HIPAA, FERPA, or K-12 data-handling restriction with Anthropic. See [Content modes](https://platform.claude.com/docs/en/manage-claude/opentelemetry#choose-a-content-mode). |
699| Problem | What to check |
700| ----- | ----- |
701| No API spans | The workspace needs an enabled destination that covers it. See [Choose workspaces for a destination](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#choose-workspaces-for-a-destination). After a destination starts covering a workspace, spans from that workspace can take up to a minute to arrive. The API emits no span for a request whose `traceparent` header has the sampled flag off, or for a request to the [OpenAI-compatible endpoint](https://platform.claude.com/docs/en/cli-sdks-libraries/libraries/openai-sdk). |
702| The **Delivery** column shows **Failing** | Hover over it to see the last error. To find the likely cause, see [Delivery errors](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#delivery-errors). |
703| The **Delivery** column shows **Disabled** | Hover over it to see why. For the reasons, see [when the API disables a destination](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#delivery-and-health). |
704| Spans have no prompts or responses, but the destination is set to **Full content** | Your organization might have a HIPAA, FERPA, or K-12 data-handling restriction with Anthropic. See [Content modes](https://platform.claude.com/docs/en/manage-claude/opentelemetry#choose-a-content-mode). |
705705 
706706### Delivery errors
707707 
708708When a delivery fails, the **Delivery** column shows **Failing**. Hover over it to see the error, then find the likely cause:
709709 
710| Error | Likely cause |
711| -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
712| HTTP error (status 401) or HTTP error (status 403) | A wrong authentication header |
713| HTTP error (status 404) | A wrong path in the **OTLP endpoint URL** or the **OTLP traces endpoint URL** |
714| Invalid address | The endpoint’s hostname doesn’t exist or doesn’t resolve to a public IP address |
715| Temporary DNS failure | The DNS lookup of the endpoint’s hostname failed, for example because its DNS server returned an error |
716| TLS failure | A TLS problem, for example with the endpoint’s certificate |
717| Timeout | The endpoint didn’t respond in time. See [the delivery timeouts](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#delivery-and-health) |
718| Connection failure | The API couldn’t connect to the endpoint |
719| Redirect (status 3xx) | The endpoint redirected the request. The API doesn’t follow redirects, so use the URL it redirects to |
720| HTTP error (status 408, 429, or 5xx) | The endpoint was overloaded, limited the rate of requests, or had an error |
721| HTTP error (another 4xx status) | The endpoint refused the request, for example because of its size or format |
710| Error | Likely cause |
711| ----- | ----- |
712| HTTP error (status 401) or HTTP error (status 403) | A wrong authentication header |
713| HTTP error (status 404) | A wrong path in the **OTLP endpoint URL** or the **OTLP traces endpoint URL** |
714| Invalid address | The endpoint’s hostname doesn’t exist or doesn’t resolve to a public IP address |
715| Temporary DNS failure | The DNS lookup of the endpoint’s hostname failed, for example because its DNS server returned an error |
716| TLS failure | A TLS problem, for example with the endpoint’s certificate |
717| Timeout | The endpoint didn’t respond in time. See [the delivery timeouts](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#delivery-and-health) |
718| Connection failure | The API couldn’t connect to the endpoint |
719| Redirect (status 3xx) | The endpoint redirected the request. The API doesn’t follow redirects, so use the URL it redirects to |
720| HTTP error (status 408, 429, or 5xx) | The endpoint was overloaded, limited the rate of requests, or had an error |
721| HTTP error (another 4xx status) | The endpoint refused the request, for example because of its size or format |
722722 
723723## Availability
724724 
from line 730
730730 
731731* Availability: Available
732732 
733| Status | Cloud platforms |
734| ------ | ------------------------------------------------------------------------------------------------------------------ |
735| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) |
733| Status | Cloud platforms |
734| ----- | ----- |
735| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) |
736736 
737737#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
738738 
739739* Availability: Available
740740 
741| Status | Cloud platforms |
742| ------ | ------------------------------------------------------------------------------------------------------------------ |
743| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) |
741| Status | Cloud platforms |
742| ----- | ----- |
743| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) |
744744 
745745### Data handling
746746 
747747[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
748748 
749| Item | Zero data retention | HIPAA |
750| ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
751| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Not eligible |
749| Item | Zero data retention | HIPAA |
750| ----- | ----- | ----- |
751| Status | Eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Not eligible |
752752| Details | Beta. Spans have the same ZDR eligibility as the feature that produces them. HIPAA organizations can export metadata. SDK spans go directly from your environment to your exporter. After delivery, the data is held by the service that you chose, outside Anthropic, under that service’s retention and access controls. | HIPAA organizations can export metadata. |
753753 
754754Applicable endpoints:

manage-claude/opentelemetry/sdk Changed · +21 / -21 lines

from line 387
387387 If you pass `open_telemetry` (typescript, java, php: `openTelemetry`; csharp: `OpenTelemetry`; go: `option.With…()`) to the client, it overrides that option’s environment variables as a whole, including nested keys. Any nested key that you leave out uses its default from the table, even if its environment variable is set.
388388</Note>
389389 
390| Option | Use it to | Default |
391| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
392| `traces.content_mode` (typescript, java, php: `traces.contentMode`; csharp: `Traces.ContentMode`; go: `option.WithOpenTelemetryTracesContentMode()`)<br />`ANTHROPIC_OPEN_TELEMETRY_TRACES_CONTENT_MODE=content` | Include prompts and responses in spans. See [Content modes](https://platform.claude.com/docs/en/manage-claude/opentelemetry#choose-a-content-mode). | `metadata_only` |
393| `traces.max_content_bytes` (typescript, java, php: `traces.maxContentBytes`; csharp: `Traces.MaxContentBytes`; go: `option.WithOpenTelemetryTracesMaxContentBytes()`)<br />`ANTHROPIC_OPEN_TELEMETRY_TRACES_MAX_CONTENT_BYTES` | Change the content limit of each span. See [Content limits](https://platform.claude.com/docs/en/manage-claude/opentelemetry#content-limits). | 0.75 MB |
394| `conversation_id` (typescript, java, php: `conversationId`; csharp: `ConversationId`; go: `option.WithOpenTelemetryConversationID()`) | Link several calls into one conversation. The SDK writes the ID to `gen_ai.conversation.id`. The ID is exported in both content modes, so don’t put personal data or secrets in it. | None |
395| `tracer_provider` (typescript, java, php: `tracerProvider`; csharp: `AddSource("com.anthropic.sdk.csharp*")`; go: `option.WithTracerProvider()`) | Choose the tracer provider that gets the SDK’s spans. | The tracer provider you set up in [Register a tracer provider](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#register-a-tracer-provider) |
396| `propagation` (go: `option.WithOpenTelemetryPropagation()`)<br />`ANTHROPIC_OPEN_TELEMETRY_PROPAGATION=false` | Stop sending trace context and baggage headers with requests, for example when your HTTP client instrumentation already sends them. The SDK still emits spans. Available in the Python, TypeScript, Go, Java, Ruby, and PHP SDKs. | On |
397| `open_telemetry` (typescript, java, php: `openTelemetry`; csharp: `OpenTelemetry`; go: `option.WithoutOpenTelemetry()`)<br />`ANTHROPIC_OPEN_TELEMETRY=false` | Turn spans off for one client, for example when another library already traces the SDK. | On |
390| Option | Use it to | Default |
391| ----- | ----- | ----- |
392| `traces.content_mode` (typescript, java, php: `traces.contentMode`; csharp: `Traces.ContentMode`; go: `option.WithOpenTelemetryTracesContentMode()`)<br />`ANTHROPIC_OPEN_TELEMETRY_TRACES_CONTENT_MODE=content` | Include prompts and responses in spans. See [Content modes](https://platform.claude.com/docs/en/manage-claude/opentelemetry#choose-a-content-mode). | `metadata_only` |
393| `traces.max_content_bytes` (typescript, java, php: `traces.maxContentBytes`; csharp: `Traces.MaxContentBytes`; go: `option.WithOpenTelemetryTracesMaxContentBytes()`)<br />`ANTHROPIC_OPEN_TELEMETRY_TRACES_MAX_CONTENT_BYTES` | Change the content limit of each span. See [Content limits](https://platform.claude.com/docs/en/manage-claude/opentelemetry#content-limits). | 0.75 MB |
394| `conversation_id` (typescript, java, php: `conversationId`; csharp: `ConversationId`; go: `option.WithOpenTelemetryConversationID()`) | Link several calls into one conversation. The SDK writes the ID to `gen_ai.conversation.id`. The ID is exported in both content modes, so don’t put personal data or secrets in it. | None |
395| `tracer_provider` (typescript, java, php: `tracerProvider`; csharp: `AddSource("com.anthropic.sdk.csharp*")`; go: `option.WithTracerProvider()`) | Choose the tracer provider that gets the SDK’s spans. | The tracer provider you set up in [Register a tracer provider](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#register-a-tracer-provider) |
396| `propagation` (go: `option.WithOpenTelemetryPropagation()`)<br />`ANTHROPIC_OPEN_TELEMETRY_PROPAGATION=false` | Stop sending trace context and baggage headers with requests, for example when your HTTP client instrumentation already sends them. The SDK still emits spans. Available in the Python, TypeScript, Go, Java, Ruby, and PHP SDKs. | On |
397| `open_telemetry` (typescript, java, php: `openTelemetry`; csharp: `OpenTelemetry`; go: `option.WithoutOpenTelemetry()`)<br />`ANTHROPIC_OPEN_TELEMETRY=false` | Turn spans off for one client, for example when another library already traces the SDK. | On |
398398 
399399The following example shows how to use each option:
400400 
from line 818
818818 
819819## Troubleshooting
820820 
821| Problem | What to check |
822| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
823| No spans from the SDK | Register the tracer provider before the first call. Make sure that you installed the SDK as in [Install the SDK](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#install-the-sdk) and that `ANTHROPIC_OPEN_TELEMETRY` isn’t `false`. |
824| The Java SDK doesn’t send spans to the registered tracer provider, or doesn’t send trace context to the API | Another dependency sets `opentelemetry-api` below 1.57.0. Upgrade `opentelemetry-api` to 1.57.0 or later. |
821| Problem | What to check |
822| ----- | ----- |
823| No spans from the SDK | Register the tracer provider before the first call. Make sure that you installed the SDK as in [Install the SDK](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#install-the-sdk) and that `ANTHROPIC_OPEN_TELEMETRY` isn’t `false`. |
824| The Java SDK doesn’t send spans to the registered tracer provider, or doesn’t send trace context to the API | Another dependency sets `opentelemetry-api` below 1.57.0. Upgrade `opentelemetry-api` to 1.57.0 or later. |
825825| The SDK spans don’t nest under your spans, or the spans that your tool creates don’t nest under the tool span | Call the SDK from inside one of your own spans, as the example in [Connect API spans to your own traces](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#connect-api-spans-to-your-own-traces) does. In Go, start the spans that your tool creates from the `ctx` that the tool runner passes to it. |
826| Requests from the SDK don’t have a `traceparent` header | Register the W3C trace context propagator with OpenTelemetry. The SDK writes the headers with your application’s propagator. |
827| A stream’s SDK span doesn’t end or doesn’t have the response | See [Tracing a stream](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#trace-a-stream). |
828| Each request appears twice | A request’s SDK span and API span have the same name. Use the span kind or `service.name` to tell them apart. If another library also traces the SDK, turn off one of the two. |
826| Requests from the SDK don’t have a `traceparent` header | Register the W3C trace context propagator with OpenTelemetry. The SDK writes the headers with your application’s propagator. |
827| A stream’s SDK span doesn’t end or doesn’t have the response | See [Tracing a stream](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk#trace-a-stream). |
828| Each request appears twice | A request’s SDK span and API span have the same name. Use the span kind or `service.name` to tell them apart. If another library also traces the SDK, turn off one of the two. |
829829 
830830## Availability
831831 
from line 837
837837 
838838* Availability: Available
839839 
840| Status | Cloud platforms |
841| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
842| Beta | Claude API, [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock), [Amazon Bedrock (bedrock-runtime)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy), [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
840| Status | Cloud platforms |
841| ----- | ----- |
842| Beta | Claude API, [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock), [Amazon Bedrock (bedrock-runtime)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy), [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
843843 
844844#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
845845 
from line 846
846846* Availability: Available
847847* Usage: The SDK traces the requests that your code sends, such as the events you send to a session; spans for the agent’s model requests and tool calls come from API tracing. In a self-hosted sandbox, the SDK’s environment worker also traces each tool it runs.
848848 
849| Status | Cloud platforms |
850| ------ | ------------------------------------------------------------------------------------------------------------------ |
851| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) |
849| Status | Cloud platforms |
850| ----- | ----- |
851| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) |
852852 

manage-claude/organization-webhooks Changed · +25 / -25 lines

from line 29
2929 
3030With an Admin API key, you can make every request in [Manage endpoints](https://platform.claude.com/docs/en/manage-claude/organization-webhooks#manage-endpoints). With an `org:admin` token, you can make the same requests. If the token is bound to a workspace other than your organization’s [Default Workspace](https://platform.claude.com/docs/en/manage-claude/workspaces#how-workspaces-work), you can’t make any of them. With a personal or service account key, the requests you can make depend on the account’s [organization role](https://platform.claude.com/docs/en/manage-claude/admin-api#organization-roles-and-permissions):
3131 
32* To list or view webhook endpoints: `claude_code_user`, `developer`, or `admin`
33* To create, change, or delete webhook endpoints, or to replace a signing secret: `admin`
32* To list or get webhook endpoints: `developer` or `admin`
33* To create, update, or delete webhook endpoints, or to replace a signing secret: `admin`
3434 
3535## Event types
3636 
3737Organization webhook endpoints accept two event types. Both are about [enforcement actions](https://platform.claude.com/docs/en/manage-claude/user-profiles#check-whether-anthropic-has-restricted-or-banned-a-profile) on user profiles.
3838 
39| Event | Trigger |
40| ------------------------------------------ | ----------------------------------------------------------------------------------- |
41| `user_profile.enforcement_action_opened` | Anthropic opens an enforcement action on a user profile. |
39| Event | Trigger |
40| ----- | ----- |
41| `user_profile.enforcement_action_opened` | Anthropic opens an enforcement action on a user profile. |
4242| `user_profile.enforcement_action_resolved` | An enforcement action ends. Anthropic resolves it, or its `expires_at` time passes. |
4343 
4444Deleting a profile ends its open actions without a `user_profile.enforcement_action_resolved` event.
from line 75
7575 
7676An organization webhook endpoint has these fields:
7777 
78| Field | Type | Description |
79| ----------------- | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
80| `id` | string | The endpoint’s ID, which starts with `wep_`. Set by Anthropic. |
81| `url` | string | Where Anthropic sends events. Must be HTTPS on port 443, with a public domain name, not an IP address. Two enabled organization webhook endpoints in your organization can’t share a URL. |
82| `enabled_events` | array of strings | The [event types](https://platform.claude.com/docs/en/manage-claude/organization-webhooks#event-types) this endpoint receives. A create request must list at least one. |
83| `name` | string | An optional label for your own use. |
84| `description` | string | An optional description for your own use. |
85| `state` | string | `enabled` or `disabled`. |
86| `disabled_reason` | string | Why Anthropic disabled the endpoint. Empty otherwise. |
87| `created_at` | string | When the endpoint was created. Set by Anthropic. |
88| `updated_at` | string | When the endpoint last changed. Set by Anthropic. |
89| `signing_secret` | string | A `whsec_`-prefixed secret, created with the endpoint. Only the responses that create the endpoint or replace the secret include it, so store it securely. |
78| Field | Type | Description |
79| ----- | ----- | ----- |
80| `id` | string | The endpoint’s ID, which starts with `wep_`. Set by Anthropic. |
81| `url` | string | Where Anthropic sends events. Must be HTTPS on port 443, with a public domain name, not an IP address. Two enabled organization webhook endpoints in your organization can’t share a URL. |
82| `enabled_events` | array of strings | The [event types](https://platform.claude.com/docs/en/manage-claude/organization-webhooks#event-types) this endpoint receives. A create request must list at least one. |
83| `name` | string | An optional label for your own use. |
84| `description` | string | An optional description for your own use. |
85| `state` | string | `enabled` or `disabled`. |
86| `disabled_reason` | string | Why Anthropic disabled the endpoint. Empty otherwise. |
87| `created_at` | string | When the endpoint was created. Set by Anthropic. |
88| `updated_at` | string | When the endpoint last changed. Set by Anthropic. |
89| `signing_secret` | string | A `whsec_`-prefixed secret, created with the endpoint. Only the responses that create the endpoint or replace the secret include it, so store it securely. |
9090 
9191```json
9292{
from line 129
129129 
130130With the Admin API, you can make these requests:
131131 
132| Task | Request |
133| ------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
134| List your organization’s endpoints | [`GET /v1/organizations/webhooks`](https://platform.claude.com/docs/en/api/beta/organization/webhooks/list) |
135| Create an endpoint | [`POST /v1/organizations/webhooks`](https://platform.claude.com/docs/en/api/beta/organization/webhooks/create) |
136| Get one endpoint | [`GET /v1/organizations/webhooks/{webhook_endpoint_id}`](https://platform.claude.com/docs/en/api/beta/organization/webhooks/retrieve) |
137| Update an endpoint’s `url`, `name`, `description`, `enabled_events`, or `state` | [`POST /v1/organizations/webhooks/{webhook_endpoint_id}`](https://platform.claude.com/docs/en/api/beta/organization/webhooks/update) |
138| Delete an endpoint | [`DELETE /v1/organizations/webhooks/{webhook_endpoint_id}`](https://platform.claude.com/docs/en/api/beta/organization/webhooks/delete) |
139| Replace the signing secret | [`POST /v1/organizations/webhooks/{webhook_endpoint_id}/regenerate_signing_secret`](https://platform.claude.com/docs/en/api/beta/organization/webhooks/regenerate_signing_secret) |
132| Task | Request |
133| ----- | ----- |
134| List your organization’s endpoints | [`GET /v1/organizations/webhooks`](https://platform.claude.com/docs/en/api/beta/organization/webhooks/list) |
135| Create an endpoint | [`POST /v1/organizations/webhooks`](https://platform.claude.com/docs/en/api/beta/organization/webhooks/create) |
136| Get one endpoint | [`GET /v1/organizations/webhooks/{webhook_endpoint_id}`](https://platform.claude.com/docs/en/api/beta/organization/webhooks/retrieve) |
137| Update an endpoint’s `url`, `name`, `description`, `enabled_events`, or `state` | [`POST /v1/organizations/webhooks/{webhook_endpoint_id}`](https://platform.claude.com/docs/en/api/beta/organization/webhooks/update) |
138| Delete an endpoint | [`DELETE /v1/organizations/webhooks/{webhook_endpoint_id}`](https://platform.claude.com/docs/en/api/beta/organization/webhooks/delete) |
139| Replace the signing secret | [`POST /v1/organizations/webhooks/{webhook_endpoint_id}/regenerate_signing_secret`](https://platform.claude.com/docs/en/api/beta/organization/webhooks/regenerate_signing_secret) |
140140 
141141In an update, `enabled_events` replaces the endpoint’s whole list of event types. An empty list doesn’t clear the list: the endpoint keeps the event types it had. To stop deliveries, send `"state": "disabled"` or delete the endpoint.
142142 

manage-claude/plugins-api Changed · +146 / -146 lines

from line 31
3131 
3232The API exposes 18 endpoints across five resources:
3333 
34| Resource | Endpoints |
35| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
36| **Plugins:** list the plugins in the organization, upload a new one, look one up, choose the version members are served (roll back or promote), delete one | `GET /v1/organizations/plugins`<br />`POST /v1/organizations/plugins`<br />`GET /v1/organizations/plugins/{plugin_id}`<br />`POST /v1/organizations/plugins/{plugin_id}`<br />`DELETE /v1/organizations/plugins/{plugin_id}` |
37| **Plugin versions:** list a plugin’s version history, upload a new version, look one up, download a version’s files | `GET /v1/organizations/plugins/{plugin_id}/versions`<br />`POST /v1/organizations/plugins/{plugin_id}/versions`<br />`GET /v1/organizations/plugins/{plugin_id}/versions/{version}`<br />`GET /v1/organizations/plugins/{plugin_id}/versions/{version}/content` |
38| **Installation settings:** read who can use an organization-owned plugin, set it for the whole organization or for one group, remove either setting | `GET /v1/organizations/plugins/{plugin_id}/installation_settings`<br />`POST /v1/organizations/plugins/{plugin_id}/installation_settings/{target}`<br />`DELETE /v1/organizations/plugins/{plugin_id}/installation_settings/{target}` |
39| **Shares:** read who a member has shared their own plugin with (read-only) | `GET /v1/organizations/plugins/{plugin_id}/shares` |
34| Resource | Endpoints |
35| ----- | ----- |
36| **Plugins:** list the plugins in the organization, upload a new one, look one up, choose the version members are served (roll back or promote), delete one | `GET /v1/organizations/plugins`<br />`POST /v1/organizations/plugins`<br />`GET /v1/organizations/plugins/{plugin_id}`<br />`POST /v1/organizations/plugins/{plugin_id}`<br />`DELETE /v1/organizations/plugins/{plugin_id}` |
37| **Plugin versions:** list a plugin’s version history, upload a new version, look one up, download a version’s files | `GET /v1/organizations/plugins/{plugin_id}/versions`<br />`POST /v1/organizations/plugins/{plugin_id}/versions`<br />`GET /v1/organizations/plugins/{plugin_id}/versions/{version}`<br />`GET /v1/organizations/plugins/{plugin_id}/versions/{version}/content` |
38| **Installation settings:** read who can use an organization-owned plugin, set it for the whole organization or for one group, remove either setting | `GET /v1/organizations/plugins/{plugin_id}/installation_settings`<br />`POST /v1/organizations/plugins/{plugin_id}/installation_settings/{target}`<br />`DELETE /v1/organizations/plugins/{plugin_id}/installation_settings/{target}` |
39| **Shares:** read who a member has shared their own plugin with (read-only) | `GET /v1/organizations/plugins/{plugin_id}/shares` |
4040| **Plugin marketplaces:** find a marketplace’s ID, look one up, set the default installation setting for its plugins, check marketplace content before connecting it | `GET /v1/organizations/plugin_marketplaces`<br />`GET /v1/organizations/plugin_marketplaces/{marketplace_id}`<br />`POST /v1/organizations/plugin_marketplaces/{marketplace_id}`<br />`POST /v1/organizations/plugin_marketplaces/validate_repository`<br />`POST /v1/organizations/plugin_marketplaces/validate_archive` |
4141 
4242Plugins that Anthropic publishes are not inventoried; their usage is reported by the [Analytics APIs](https://platform.claude.com/docs/en/manage-claude/analytics-api). Marketplaces are created, connected to repositories, and deleted in claude.ai, not through this API.
from line 210
210210 
211211## Scopes
212212 
213| Scope | Grants |
214| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
215| `read:plugins` | Every `GET` endpoint on this page, including archive downloads, plus marketplace validation. |
216| `write:plugins` | Every `POST` and `DELETE` endpoint on this page: create a plugin, create a version, change the served version, delete a plugin, set and remove installation settings, and set a marketplace’s default, plus marketplace validation. It does not grant reads. |
217| `read:org_audit` | A read-only scope for security-audit integrations: every `GET` endpoint on this page, including archive downloads, plus the [user management](https://platform.claude.com/docs/en/manage-claude/user-management) and [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api) read endpoints. It does not grant marketplace validation or any write. |
218| `read:compliance_org_data` | The Compliance API’s scope for organization metadata (names, types, roles, and groups) and effective settings. Grants every `GET` endpoint on this page, exactly as `read:org_audit` does, so a Compliance Access Key can read plugins without a second key. It does not grant marketplace validation or any write. |
213| Scope | Grants |
214| ----- | ----- |
215| `read:plugins` | Every `GET` endpoint on this page, including archive downloads, plus marketplace validation. |
216| `write:plugins` | Every `POST` and `DELETE` endpoint on this page: create a plugin, create a version, change the served version, delete a plugin, set and remove installation settings, and set a marketplace’s default, plus marketplace validation. It does not grant reads. |
217| `read:org_audit` | A read-only scope for security-audit integrations: every `GET` endpoint on this page, including archive downloads, plus the [user management](https://platform.claude.com/docs/en/manage-claude/user-management) and [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api) read endpoints. It does not grant marketplace validation or any write. |
218| `read:compliance_org_data` | The Compliance API’s scope for organization metadata (names, types, roles, and groups) and effective settings. Grants every `GET` endpoint on this page, exactly as `read:org_audit` does, so a Compliance Access Key can read plugins without a second key. It does not grant marketplace validation or any write. |
219219 
220220A key can carry several scopes. An integration that uploads a plugin and then reads it back needs both `read:plugins` and `write:plugins`. Wherever this page says an endpoint requires the `read:plugins` scope, a key with `read:org_audit` or `read:compliance_org_data` works too.
221221 
from line 233
233233 
234234A **plugin** is a package that extends Claude for your organization’s members. It contains any combination of these components:
235235 
236| Component | What it is |
237| ---------- | ------------------------------------------------------------------------------------------------------- |
238| Skill | Instructions and files that Claude loads when a task calls for it. |
239| Command | A saved prompt a member runs by typing `/` followed by the command’s name. |
240| Agent | A helper assistant with its own instructions, to which Claude can hand part of a task. |
241| Hook | An action that runs automatically when an event occurs in a session, such as before Claude uses a tool. |
242| MCP server | A connection from Claude to tools and data in another system (Model Context Protocol). |
243| CLI | A command-line program that the plugin lets Claude run. |
236| Component | What it is |
237| ----- | ----- |
238| Skill | Instructions and files that Claude loads when a task calls for it. |
239| Command | A saved prompt a member runs by typing `/` followed by the command’s name. |
240| Agent | A helper assistant with its own instructions, to which Claude can hand part of a task. |
241| Hook | An action that runs automatically when an event occurs in a session, such as before Claude uses a tool. |
242| MCP server | A connection from Claude to tools and data in another system (Model Context Protocol). |
243| CLI | A command-line program that the plugin lets Claude run. |
244244 
245245Every plugin has a manifest at `.claude-plugin/plugin.json`. The manifest’s `name` becomes the plugin’s `name`: a lowercase identifier that is unique within its marketplace.
246246 
from line 287
287287 
288288The table shows what happens to a version that an administrator saves in claude.ai. The result depends on where the pin was last set and on the plugin’s newest version before the save.
289289 
290| Where the pin was last set | The plugin’s newest version before the save | The version saved in claude.ai |
291| -------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------- |
292| Through this API | Any version | Is stored and is not served until someone chooses it. |
293| In claude.ai | The served version or a waiting version | Might become the served version without anyone choosing it. `served_version_pinned` stays `true`. |
294| In claude.ai | Another version (for example, an upload of yours that is not served yet) | Is stored and is not served until someone chooses it. |
290| Where the pin was last set | The plugin’s newest version before the save | The version saved in claude.ai |
291| ----- | ----- | ----- |
292| Through this API | Any version | Is stored and is not served until someone chooses it. |
293| In claude.ai | The served version or a waiting version | Might become the served version without anyone choosing it. `served_version_pinned` stays `true`. |
294| In claude.ai | Another version (for example, an upload of yours that is not served yet) | Is stored and is not served until someone chooses it. |
295295 
296296Treat a pin that was set through this API before November 8, 2026, as set in claude.ai. To replace it, use this API to set the version you want served.
297297 
from line 310
310310 
311311**Installation settings** determine who can use an organization-owned plugin. Each setting has one of four values, carried in the fields named `installation_preference` (and, on the plugin and marketplace objects, `organization_installation_preference` and `default_installation_preference`):
312312 
313| Value | Members see |
314| --------------- | ---------------------------------------------- |
315| `required` | The plugin is installed and cannot be removed. |
316| `auto_install` | The plugin is installed and can be removed. |
317| `available` | The plugin can be installed on request. |
318| `not_available` | The plugin is hidden. |
313| Value | Members see |
314| ----- | ----- |
315| `required` | The plugin is installed and cannot be removed. |
316| `auto_install` | The plugin is installed and can be removed. |
317| `available` | The plugin can be installed on request. |
318| `not_available` | The plugin is hidden. |
319319 
320320A plugin can hold an organization-wide setting and one setting for each group (the role-based access control [groups managed in User management](https://platform.claude.com/docs/en/manage-claude/user-management#groups)). A member gets a value by these rules:
321321 
from line 353
353353 
354354`reach` summarizes, in one value, how far a version reaches on members’ machines and beyond:
355355 
356| Value | Meaning |
357| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |
358| `remote` | Declares an MCP server, a CLI, or something that counts as one, whatever else it declares. |
359| `privileged` | Is not `remote` but meets at least one condition in the list after this table. |
360| `contained` | Is neither `remote` nor `privileged` (typically, a plugin that holds only skills, commands, and agents, and none of them has `allowed-tools`). |
356| Value | Meaning |
357| ----- | ----- |
358| `remote` | Declares an MCP server, a CLI, or something that counts as one, whatever else it declares. |
359| `privileged` | Is not `remote` but meets at least one condition in the list after this table. |
360| `contained` | Is neither `remote` nor `privileged` (typically, a plugin that holds only skills, commands, and agents, and none of them has `allowed-tools`). |
361361 
362362A `privileged` version meets at least one of these conditions:
363363 
from line 647
647647 
648648The plugin object describes a plugin in one of your organization’s marketplaces or in a member’s personal marketplace (the [Quick start](https://platform.claude.com/docs/en/manage-claude/plugins-api#quick-start) response shows a complete one). Its `display_name`, `description`, `manifest_version`, `content_scan`, `components`, and `reach` describe its **served** version, so one list call shows what members are being served.
649649 
650| Field | Description |
651| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
652| `id` | Prefixed `plugin_`. |
653| `name` | From the manifest. Unique within its marketplace, not across the organization. Fixed for an organization-owned plugin; changes if a member renames their own plugin in claude.ai. |
654| `display_name`, `description`, `manifest_version` | The served version’s manifest `displayName`, `description`, and `version`; each is `null` when the manifest declares none. `description` might be a skill’s `description` rather than the manifest’s (described after this table). `manifest_version` is normalized for display: one leading `v` or `V` is dropped, so a manifest `version` of `"v1.4.0"` is returned as `"1.4.0"`. It is also `null` for a value that does not look like a version number, such as `"latest"`, and for a plugin version created before claude.ai started recording this field in August 2026. An upload is never refused because of its `version`, and `manifest_version` is not unique. |
655| `served_version_id`, `latest_version_id` | Prefixed `pluginver_`: the version members are served, and the newest version. See [Versions and the served version](https://platform.claude.com/docs/en/manage-claude/plugins-api#versions-and-the-served-version). |
656| `served_version_pinned` | `false` until the plugin is pinned (see [Pins](https://platform.claude.com/docs/en/manage-claude/plugins-api#pins)); `true` from then on. |
657| `owner` | `{"type": "organization"}`, or `{"type": "user", "user_id": "user_..."}` for a member’s personal marketplace. |
658| `marketplace_id` | Prefixed `marketplace_`. |
659| `created_by` | Who created the plugin: `{"type": "user_actor", "user_id": "user_...", "email_address": "..."}` for a person in claude.ai (`email_address` might be `null`) or `{"type": "api_actor", "api_key_id": "apikey_..."}` for an API key. Other actor types might appear. `null` when no creator is recorded, such as for plugins synchronized from Git. |
660| `organization_installation_preference`, `organization_installation_preference_inherited` | Organization-owned: the organization-wide value, and whether it comes from the marketplace’s default (see [Installation settings](https://platform.claude.com/docs/en/manage-claude/plugins-api#installation-settings)). Member-owned: both `null`. |
661| `content_scan` | The served version’s scan result, an object with `status`, `assessment`, and `reason` (described after this table). `null` when it was never scanned. |
662| `components` | The served version’s components, each `{"type", "name", "description"}` with `type` one of `skill`, `mcp_server`, `command`, `agent`, `hook`, or `cli`, listed in that type order and then by name. For an MCP server, `name` is its key in the manifest; for a hook, the event it runs on; for a CLI, the executable’s name. `description` is always `null` for MCP servers, hooks, and CLIs. `null` when not recorded. |
663| `reach` | `contained`, `privileged`, `remote`, or `null`. See [Reach](https://platform.claude.com/docs/en/manage-claude/plugins-api#reach). |
664| `updated_at` | Changes when the served version changes, when the plugin becomes pinned, and normally when a new version is stored. A waiting version (see [Versions and the served version](https://platform.claude.com/docs/en/manage-claude/plugins-api#versions-and-the-served-version)) changes it when it becomes the served version, not necessarily when it is stored. It does not change for installation settings, shares, or a change to `content_scan` alone. |
650| Field | Description |
651| ----- | ----- |
652| `id` | Prefixed `plugin_`. |
653| `name` | From the manifest. Unique within its marketplace, not across the organization. Fixed for an organization-owned plugin; changes if a member renames their own plugin in claude.ai. |
654| `display_name`, `description`, `manifest_version` | The served version’s manifest `displayName`, `description`, and `version`; each is `null` when the manifest declares none. `description` might be a skill’s `description` rather than the manifest’s (described after this table). `manifest_version` is normalized for display: one leading `v` or `V` is dropped, so a manifest `version` of `"v1.4.0"` is returned as `"1.4.0"`. It is also `null` for a value that does not look like a version number, such as `"latest"`, and for a plugin version created before claude.ai started recording this field in August 2026. An upload is never refused because of its `version`, and `manifest_version` is not unique. |
655| `served_version_id`, `latest_version_id` | Prefixed `pluginver_`: the version members are served, and the newest version. See [Versions and the served version](https://platform.claude.com/docs/en/manage-claude/plugins-api#versions-and-the-served-version). |
656| `served_version_pinned` | `false` until the plugin is pinned (see [Pins](https://platform.claude.com/docs/en/manage-claude/plugins-api#pins)); `true` from then on. |
657| `owner` | `{"type": "organization"}`, or `{"type": "user", "user_id": "user_..."}` for a member’s personal marketplace. |
658| `marketplace_id` | Prefixed `marketplace_`. |
659| `created_by` | Who created the plugin: `{"type": "user_actor", "user_id": "user_...", "email_address": "..."}` for a person in claude.ai (`email_address` might be `null`) or `{"type": "api_actor", "api_key_id": "apikey_..."}` for an API key. Other actor types might appear. `null` when no creator is recorded, such as for plugins synchronized from Git. |
660| `organization_installation_preference`, `organization_installation_preference_inherited` | Organization-owned: the organization-wide value, and whether it comes from the marketplace’s default (see [Installation settings](https://platform.claude.com/docs/en/manage-claude/plugins-api#installation-settings)). Member-owned: both `null`. |
661| `content_scan` | The served version’s scan result, an object with `status`, `assessment`, and `reason` (described after this table). `null` when it was never scanned. |
662| `components` | The served version’s components, each `{"type", "name", "description"}` with `type` one of `skill`, `mcp_server`, `command`, `agent`, `hook`, or `cli`, listed in that type order and then by name. For an MCP server, `name` is its key in the manifest; for a hook, the event it runs on; for a CLI, the executable’s name. `description` is always `null` for MCP servers, hooks, and CLIs. `null` when not recorded. |
663| `reach` | `contained`, `privileged`, `remote`, or `null`. See [Reach](https://platform.claude.com/docs/en/manage-claude/plugins-api#reach). |
664| `updated_at` | Changes when the served version changes, when the plugin becomes pinned, and normally when a new version is stored. A waiting version (see [Versions and the served version](https://platform.claude.com/docs/en/manage-claude/plugins-api#versions-and-the-served-version)) changes it when it becomes the served version, not necessarily when it is stored. It does not change for installation settings, shares, or a change to `content_scan` alone. |
665665 
666666`description` is not always the manifest’s. A `description` that the manifest takes from a top-level `SKILL.md` is cut to its first 500 characters (see [Upload requirements](https://platform.claude.com/docs/en/manage-claude/plugins-api#upload-requirements)). If the manifest’s `description` is the first 500 characters of exactly one distinct skill `description` in `components`, the API returns that skill `description` instead. As a result:
667667 
from line 670
670670 
671671The `content_scan` object:
672672 
673| Field | Description |
674| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
675| `status` | `processing` while the scan runs, `completed` when it finished, or `errored` when it could not finish (or, occasionally, when its result could not be read for this response, in which case a later read might report it). The newest completed scan, if any, is reported. Members are not served a version whose `status` is `processing` or `errored`; uploading the content again as a new version gets a fresh scan. |
676| `assessment` | Set when `status` is `completed`: `pass` (nothing found), `warn` (something found that does not block use, or a [failed scan that was allowed in claude.ai](https://platform.claude.com/docs/en/manage-claude/plugins-api#failed-scans-allowed-in-claude-ai)), `fail` (something found that blocks use), or `unknown` (no verdict). Otherwise `null`. |
677| `reason` | For `warn` and `fail`, the main concern, from the following list. Otherwise `null`, and also `null` on an older scan that predates reason recording. |
673| Field | Description |
674| ----- | ----- |
675| `status` | `processing` while the scan runs, `completed` when it finished, or `errored` when it could not finish (or, occasionally, when its result could not be read for this response, in which case a later read might report it). The newest completed scan, if any, is reported. Members are not served a version whose `status` is `processing` or `errored`; uploading the content again as a new version gets a fresh scan. |
676| `assessment` | Set when `status` is `completed`: `pass` (nothing found), `warn` (something found that does not block use, or a [failed scan that was allowed in claude.ai](https://platform.claude.com/docs/en/manage-claude/plugins-api#failed-scans-allowed-in-claude-ai)), `fail` (something found that blocks use), or `unknown` (no verdict). Otherwise `null`. |
677| `reason` | For `warn` and `fail`, the main concern, from the following list. Otherwise `null`, and also `null` on an older scan that predates reason recording. |
678678 
679679<Accordion title="Content scan reason values">
680 | `reason` | Meaning |
681 | --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
682 | `covert-usage-telemetry` | Tells Claude to send information about the member or their usage to an outside address without telling them. |
683 | `undisclosed-data-destination` | Sends files, emails, documents, or other content to a fixed outside destination the member is not shown and does not control. |
684 | `remote-code-instruction-loader` | Tells Claude to download and run, or follow instructions from, outside content that can change after the plugin is installed. |
685 | `credential-exposure` | Contains live credentials, or collects credentials or tokens from the member’s environment. |
686 | `guardrail-tampering` | Weakens the member’s safeguards, for example by pre-approving every permission prompt. |
687 | `system-prompt-spoofing` | Imitates or attempts to replace Claude’s system instructions. |
688 | `covert-record-tampering` | Quietly changes, hides, or deletes information the member would otherwise see. |
689 | `covert-behavior-override` | Changes Claude’s behavior beyond the plugin’s purpose and hides the change from the member. |
690 | `hidden-code-execution` | Runs bundled code while telling Claude not to reveal what it does. |
691 | `undisclosed-promotion-injection` | Inserts undisclosed promotional content into Claude’s output. |
692 | `hidden-identity-gate` | Changes or stops its behavior depending on which account runs it, without saying why. |
693 | `destructive-persistence` | Can delete or corrupt the member’s files, or install programs that remain after the plugin. |
694 | `unanalyzable-binary` | Includes a compiled or unreadable program, so the scan could not verify what it does. |
695 | `other` | Any other concern, including one newer than this list. |
680 | `reason` | Meaning |
681 | ----- | ----- |
682 | `covert-usage-telemetry` | Tells Claude to send information about the member or their usage to an outside address without telling them. |
683 | `undisclosed-data-destination` | Sends files, emails, documents, or other content to a fixed outside destination the member is not shown and does not control. |
684 | `remote-code-instruction-loader` | Tells Claude to download and run, or follow instructions from, outside content that can change after the plugin is installed. |
685 | `credential-exposure` | Contains live credentials, or collects credentials or tokens from the member’s environment. |
686 | `guardrail-tampering` | Weakens the member’s safeguards, for example by pre-approving every permission prompt. |
687 | `system-prompt-spoofing` | Imitates or attempts to replace Claude’s system instructions. |
688 | `covert-record-tampering` | Quietly changes, hides, or deletes information the member would otherwise see. |
689 | `covert-behavior-override` | Changes Claude’s behavior beyond the plugin’s purpose and hides the change from the member. |
690 | `hidden-code-execution` | Runs bundled code while telling Claude not to reveal what it does. |
691 | `undisclosed-promotion-injection` | Inserts undisclosed promotional content into Claude’s output. |
692 | `hidden-identity-gate` | Changes or stops its behavior depending on which account runs it, without saying why. |
693 | `destructive-persistence` | Can delete or corrupt the member’s files, or install programs that remain after the plugin. |
694 | `unanalyzable-binary` | Includes a compiled or unreadable program, so the scan could not verify what it does. |
695 | `other` | Any other concern, including one newer than this list. |
696696</Accordion>
697697 
698698A `plugin_id` that lacks the `plugin_` prefix returns `400`. A `plugin_id` that carries the prefix but is not in your organization’s inventory returns `404`.
from line 1182
11821182 
11831183Besides a `400` for an upload that breaks the [upload requirements](https://platform.claude.com/docs/en/manage-claude/plugins-api#upload-requirements) (`413` for a request body over 200 MB) and the shared responses (a `403` when `marketplace_id` is a member’s personal marketplace; see [Error responses](https://platform.claude.com/docs/en/manage-claude/plugins-api#error-responses)), a create can fail with:
11841184 
1185| Status | Cause | What to do |
1186| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1187| 404 | `marketplace_id` is not a marketplace of your organization. | Take the ID from [List marketplaces](https://platform.claude.com/docs/en/manage-claude/plugins-api#list-marketplaces). |
1188| 400 | The marketplace is synchronized from Git, or already holds 1,000 plugins (see [Upload requirements](https://platform.claude.com/docs/en/manage-claude/plugins-api#upload-requirements)). | Upload to another `manual` marketplace, or change the repository instead. |
1189| 409 `plugin_name_taken` | The name is taken in that marketplace. | Upload a version to `details.plugin_id` only if it is the plugin you meant to update, because someone else might have made it. Otherwise, or when `details.plugin_id` is absent, upload under another name (change the manifest `name`). |
1190| 409 `skill_name_taken` | The plugin is going into the library marketplace and one of its skills has an organization skill’s name. | Rename the skill, or remove the organization skill in claude.ai. |
1191| 409 (no `error_code`) | Another upload with the same name to the same marketplace is in progress, or a plugin that this API does not list holds the name. | Retry with backoff. If the `409` persists for more than a few minutes, upload under another name (change the manifest `name`). |
1192| 503 `registration_pending` | The plugin was created but its registration did not complete. | Do not resend; upload the same files as a version of `details.plugin_id` (see [Retrying uploads](https://platform.claude.com/docs/en/manage-claude/plugins-api#retrying-uploads)). |
1185| Status | Cause | What to do |
1186| ----- | ----- | ----- |
1187| 404 | `marketplace_id` is not a marketplace of your organization. | Take the ID from [List marketplaces](https://platform.claude.com/docs/en/manage-claude/plugins-api#list-marketplaces). |
1188| 400 | The marketplace is synchronized from Git, or already holds 1,000 plugins (see [Upload requirements](https://platform.claude.com/docs/en/manage-claude/plugins-api#upload-requirements)). | Upload to another `manual` marketplace, or change the repository instead. |
1189| 409 `plugin_name_taken` | The name is taken in that marketplace. | Upload a version to `details.plugin_id` only if it is the plugin you meant to update, because someone else might have made it. Otherwise, or when `details.plugin_id` is absent, upload under another name (change the manifest `name`). |
1190| 409 `skill_name_taken` | The plugin is going into the library marketplace and one of its skills has an organization skill’s name. | Rename the skill, or remove the organization skill in claude.ai. |
1191| 409 (no `error_code`) | Another upload with the same name to the same marketplace is in progress, or a plugin that this API does not list holds the name. | Retry with backoff. If the `409` persists for more than a few minutes, upload under another name (change the manifest `name`). |
1192| 503 `registration_pending` | The plugin was created but its registration did not complete. | Do not resend; upload the same files as a version of `details.plugin_id` (see [Retrying uploads](https://platform.claude.com/docs/en/manage-claude/plugins-api#retrying-uploads)). |
11931193 
11941194### Get a plugin
11951195 
from line 1448
14481448 
14491449Besides the shared responses (a `403` for a member-owned plugin, and `409 scan_pending` or `400 scan_failed` for a version members cannot be served; see [Error responses](https://platform.claude.com/docs/en/manage-claude/plugins-api#error-responses)), the request can fail with:
14501450 
1451| Status | Cause | What to do |
1452| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
1453| 400 | The body omits `served_version_id`, sets it to `null`, or contains any other field; or the value lacks the `pluginver_` prefix or is `latest`. | Send exactly `{"served_version_id": "pluginver_..."}`. |
1454| 404 | `served_version_id` is not a version of this plugin. | Take the ID from [List a plugin’s versions](https://platform.claude.com/docs/en/manage-claude/plugins-api#list-a-plugins-versions). |
1455| 409 (no `error_code`) | An upload to this plugin or another served-version change is still in progress. | Retry shortly. |
1456| 409 `skill_name_taken` | The plugin is in the library marketplace and the version has a skill whose name an organization skill now uses. | Choose another version, upload one with the skill renamed, or remove the organization skill in claude.ai. |
1451| Status | Cause | What to do |
1452| ----- | ----- | ----- |
1453| 400 | The body omits `served_version_id`, sets it to `null`, or contains any other field; or the value lacks the `pluginver_` prefix or is `latest`. | Send exactly `{"served_version_id": "pluginver_..."}`. |
1454| 404 | `served_version_id` is not a version of this plugin. | Take the ID from [List a plugin’s versions](https://platform.claude.com/docs/en/manage-claude/plugins-api#list-a-plugins-versions). |
1455| 409 (no `error_code`) | An upload to this plugin or another served-version change is still in progress. | Retry shortly. |
1456| 409 `skill_name_taken` | The plugin is in the library marketplace and the version has a skill whose name an organization skill now uses. | Choose another version, upload one with the skill renamed, or remove the organization skill in claude.ai. |
14571457 
14581458### Delete a plugin
14591459 
from line 1862
18621862 
18631863Besides a `400` for an upload that breaks the [upload requirements](https://platform.claude.com/docs/en/manage-claude/plugins-api#upload-requirements) (`413` for a request body over 200 MB) and the shared responses (a `403` for a member-owned plugin; see [Error responses](https://platform.claude.com/docs/en/manage-claude/plugins-api#error-responses)), the request can fail with:
18641864 
1865| Status | Cause | What to do |
1866| -------------------------- | -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1867| 400 | The plugin is in a marketplace synchronized from Git, or the uploaded name differs from the plugin’s. | Change the repository instead, or fix the manifest `name`. |
1868| 409 (no `error_code`) | Another upload to this plugin, or a served-version change, is still in progress. | Retry shortly. |
1869| 409 `skill_name_taken` | The plugin is in the library marketplace and the version adds a skill with an organization skill’s name. | Rename the skill, or remove the organization skill in claude.ai. |
1870| 503 `registration_pending` | The version was stored but its registration did not complete. | Resend the same request when the response carries `x-should-retry: true` (see [Retrying uploads](https://platform.claude.com/docs/en/manage-claude/plugins-api#retrying-uploads)). |
1865| Status | Cause | What to do |
1866| ----- | ----- | ----- |
1867| 400 | The plugin is in a marketplace synchronized from Git, or the uploaded name differs from the plugin’s. | Change the repository instead, or fix the manifest `name`. |
1868| 409 (no `error_code`) | Another upload to this plugin, or a served-version change, is still in progress. | Retry shortly. |
1869| 409 `skill_name_taken` | The plugin is in the library marketplace and the version adds a skill with an organization skill’s name. | Rename the skill, or remove the organization skill in claude.ai. |
1870| 503 `registration_pending` | The version was stored but its registration did not complete. | Resend the same request when the response carries `x-should-retry: true` (see [Retrying uploads](https://platform.claude.com/docs/en/manage-claude/plugins-api#retrying-uploads)). |
18711871 
18721872### Get a version
18731873 
from line 2645
26452645}
26462646```
26472647 
2648| Field | Description |
2649| --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2650| `name` | The marketplace’s name. Fixed for its lifetime. |
2651| `owner` | Same shape as on the plugin. |
2652| `source` | `manual`, `github`, `gitlab`, or `public_git`. See [Marketplaces](https://platform.claude.com/docs/en/manage-claude/plugins-api#marketplaces). |
2653| `sync_status` | Outcome of the most recent synchronization: `success`, `in_progress`, `failed_content`, `failed_transient`, `failed_auth`, or `failed_limits`. `null` until a synchronization is first attempted, which never occurs for a marketplace whose source is `manual`. |
2654| `last_sync_ended_at` | When the most recent synchronization attempt finished, whatever its outcome; for a connected repository that has not synchronized yet, when the marketplace was created. `null` for a marketplace that is not synchronized. |
2655| `last_sync_read_sha` | The commit the last synchronization read from the repository. Not necessarily the commit the served versions came from. `null` for a marketplace that is not synchronized. |
2656| `default_installation_preference` | Organization marketplaces: the organization-wide value for every plugin in it without its own setting (`not_available` if never set). Personal marketplaces: `null`. |
2648| Field | Description |
2649| ----- | ----- |
2650| `name` | The marketplace’s name. Fixed for its lifetime. |
2651| `owner` | Same shape as on the plugin. |
2652| `source` | `manual`, `github`, `gitlab`, or `public_git`. See [Marketplaces](https://platform.claude.com/docs/en/manage-claude/plugins-api#marketplaces). |
2653| `sync_status` | Outcome of the most recent synchronization: `success`, `in_progress`, `failed_content`, `failed_transient`, `failed_auth`, or `failed_limits`. `null` until a synchronization is first attempted, which never occurs for a marketplace whose source is `manual`. |
2654| `last_sync_ended_at` | When the most recent synchronization attempt finished, whatever its outcome; for a connected repository that has not synchronized yet, when the marketplace was created. `null` for a marketplace that is not synchronized. |
2655| `last_sync_read_sha` | The commit the last synchronization read from the repository. Not necessarily the commit the served versions came from. `null` for a marketplace that is not synchronized. |
2656| `default_installation_preference` | Organization marketplaces: the organization-wide value for every plugin in it without its own setting (`not_available` if never set). Personal marketplaces: `null`. |
26572657 
26582658A `marketplace_id` that lacks the `marketplace_` prefix returns `400`. One that carries the prefix but does not resolve, or belongs to another organization, returns `404`.
26592659 
from line 3161
31613161}
31623162```
31633163 
3164| Field | Description |
3165| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
3166| `valid` | `true` when `marketplace.json` is well-formed and no plugin would be skipped. Warnings do not make it `false`. |
3167| `ref` | The branch that was read, by name; `null` when no branch was named and the default branch was read, for a commit SHA, or for an archive. |
3168| `commit_sha` | The commit that was validated. For an archive downloaded from a Git host, the commit the host recorded in the ZIP file’s comment field, if any (not verified). |
3169| `total_plugin_count` | How many plugins `marketplace.json` declares; `0` when it could not be read. |
3164| Field | Description |
3165| ----- | ----- |
3166| `valid` | `true` when `marketplace.json` is well-formed and no plugin would be skipped. Warnings do not make it `false`. |
3167| `ref` | The branch that was read, by name; `null` when no branch was named and the default branch was read, for a commit SHA, or for an archive. |
3168| `commit_sha` | The commit that was validated. For an archive downloaded from a Git host, the commit the host recorded in the ZIP file’s comment field, if any (not verified). |
3169| `total_plugin_count` | How many plugins `marketplace.json` declares; `0` when it could not be read. |
31703170| `manifest_error`, `manifest_error_code` | Set when nothing could be validated: the source could not be read, or `marketplace.json` is missing, malformed, or over a limit. Validation that did not complete within 120 seconds reports `manifest_error_code: "marketplace_validate_deadline_exceeded"`. |
3171| `plugin_errors` | One `{name, error, error_code}` per plugin a synchronization would skip. |
3172| `plugin_warnings` | One `{name, warnings: [{message, error_code}]}` per plugin that would synchronize with some contents left out. |
3171| `plugin_errors` | One `{name, error, error_code}` per plugin a synchronization would skip. |
3172| `plugin_warnings` | One `{name, warnings: [{message, error_code}]}` per plugin that would synchronize with some contents left out. |
31733173 
31743174Validate a local copy of the marketplace directory instead, as a `.zip`; the response is the same report:
31753175 
from line 3290
32903290 
32913291Problems with the content never fail the request. Apart from the responses every endpoint shares (a `403` for a key that has only `read:org_audit` or `read:compliance_org_data`; see [Error responses](https://platform.claude.com/docs/en/manage-claude/plugins-api#error-responses) and [Rate limiting](https://platform.claude.com/docs/en/manage-claude/plugins-api#rate-limiting)), the request itself can fail with:
32923292 
3293| Status | Cause | What to do |
3294| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
3295| 400 | On `validate_repository`: the body is not a JSON object; `repository_url` is missing, is longer than 2,048 characters, carries credentials, or is not of the form `https://github.com/{owner}/{repo}` (a `.git` suffix is accepted; another host, a longer path such as a branch page’s `/tree/main`, or a port other than 443 or 80 is not); `ref` is empty, is longer than 255 characters, contains `..`, or contains a character other than ASCII letters, digits, `.`, `_`, `-`, `+`, and `/`; or another field is present. A `ref` that passes these checks but names a branch the repository does not have is not refused: the request succeeds with `valid: false` and `manifest_error` says the branch was not found. On `validate_archive`: the body is not `multipart/form-data`, the `archive` part is missing, repeated, or not sent as a file part with a file name, or another form field is present. | Fix the request and resend. |
3296| 413 | On `validate_archive`: the `archive` part, or the request’s declared body length, exceeds 32 MB. | Validate the repository by URL instead, or trim the archive. |
3293| Status | Cause | What to do |
3294| ----- | ----- | ----- |
3295| 400 | On `validate_repository`: the body is not a JSON object; `repository_url` is missing, is longer than 2,048 characters, carries credentials, or is not of the form `https://github.com/{owner}/{repo}` (a `.git` suffix is accepted; another host, a longer path such as a branch page’s `/tree/main`, or a port other than 443 or 80 is not); `ref` is empty, is longer than 255 characters, contains `..`, or contains a character other than ASCII letters, digits, `.`, `_`, `-`, `+`, and `/`; or another field is present. A `ref` that passes these checks but names a branch the repository does not have is not refused: the request succeeds with `valid: false` and `manifest_error` says the branch was not found. On `validate_archive`: the body is not `multipart/form-data`, the `archive` part is missing, repeated, or not sent as a file part with a file name, or another form field is present. | Fix the request and resend. |
3296| 413 | On `validate_archive`: the `archive` part, or the request’s declared body length, exceeds 32 MB. | Validate the repository by URL instead, or trim the archive. |
32973297 
32983298#### Report codes
32993299 
from line 3319
33193319 
33203320Error responses follow the standard shape documented in [Claude API errors](https://platform.claude.com/docs/en/api/errors). Quote the `request_id` from the response body when contacting support.
33213321 
3322| Status | Meaning |
3323| ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
3324| 400 | Invalid input, or the operation does not apply to this plugin or marketplace (see each endpoint’s section). Also returned for a query parameter the endpoint does not recognize, and for an organization that is not a Claude Enterprise organization (`this endpoint is not supported for this organization type`). |
3325| 401 | Missing `x-api-key` header, or the key is not recognized. |
3326| 403 | The key is missing the required scope, or the request uploads to, changes the served version of, or sets the default for a member’s plugin or personal marketplace. (Deleting a member’s plugin is allowed.) |
3327| 404 | Resource not found. Also returned when the request omits the `anthropic-beta` value, or the API is not enabled for your organization, so that the endpoints read as nonexistent. |
3328| 409 | A name is taken, a version’s `content_scan` reads `processing`, or a conflicting upload is in progress. |
3329| 413 | The request body is over the size limit: 200 MB for an upload, 32 MB for marketplace validation. |
3330| 429 | Rate limit exceeded. See [Rate limiting](https://platform.claude.com/docs/en/manage-claude/plugins-api#rate-limiting). |
3331| 500 | Internal error. |
3332| 503 | Temporary. Also returned when several installation-setting writes for one plugin arrive at the same time; send those one at a time. Retry with backoff, except `registration_pending` (see the following table). |
3322| Status | Meaning |
3323| ----- | ----- |
3324| 400 | Invalid input, or the operation does not apply to this plugin or marketplace (see each endpoint’s section). Also returned for a query parameter the endpoint does not recognize, and for an organization that is not a Claude Enterprise organization (`this endpoint is not supported for this organization type`). |
3325| 401 | Missing `x-api-key` header, or the key is not recognized. |
3326| 403 | The key is missing the required scope, or the request uploads to, changes the served version of, or sets the default for a member’s plugin or personal marketplace. (Deleting a member’s plugin is allowed.) |
3327| 404 | Resource not found. Also returned when the request omits the `anthropic-beta` value, or the API is not enabled for your organization, so that the endpoints read as nonexistent. |
3328| 409 | A name is taken, a version’s `content_scan` reads `processing`, or a conflicting upload is in progress. |
3329| 413 | The request body is over the size limit: 200 MB for an upload, 32 MB for marketplace validation. |
3330| 429 | Rate limit exceeded. See [Rate limiting](https://platform.claude.com/docs/en/manage-claude/plugins-api#rate-limiting). |
3331| 500 | Internal error. |
3332| 503 | Temporary. Also returned when several installation-setting writes for one plugin arrive at the same time; send those one at a time. Retry with backoff, except `registration_pending` (see the following table). |
33333333 
33343334When one status has several causes that you would handle differently, the error also carries `error.details.error_code`, and `error.details.plugin_id` or `error.details.plugin_version_id` when the cause involves one:
33353335 
from line 3348
33483348}
33493349```
33503350 
3351| `error_code` | Status | Meaning and what to do |
3352| ----------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
3353| `plugin_name_taken` | 409 | The marketplace already holds this name. `details.plugin_id` is the plugin that holds it, and someone else might have made it. To see who, [get the plugin](https://platform.claude.com/docs/en/manage-claude/plugins-api#get-a-plugin) and read its `created_by`, which is `null` when no creator is recorded. Upload versions to it only if it is the plugin you meant to update. Otherwise, or when `plugin_id` is absent, upload under another name. |
3354| `skill_name_taken` | 409 | The plugin is in the library marketplace and one of its skills has the name of an organization skill. `details.skill_name` names it. Retry with an upload or a version that has no skill of that name. You can also remove the organization skill in claude.ai. |
3355| `registration_pending` | 503 | The files were stored, but the plugin’s skills could not yet be made available to members. See [Retrying uploads](https://platform.claude.com/docs/en/manage-claude/plugins-api#retrying-uploads). |
3356| `scan_pending` | 409 | The version’s `content_scan` reads `processing`. Retry once the scan finishes. |
3357| `scan_failed` | 400 | The version’s `content_scan` reads `fail`, `unknown`, or `errored`, so it cannot be served. Choose another version. |
3358| `cmek_key_disabled`, `cmek_key_network_blocked` | 400 | Your organization’s customer-managed encryption key is unavailable. See [Customer-managed encryption keys](https://platform.claude.com/docs/en/manage-claude/plugins-api#customer-managed-encryption-keys). |
3359| `unsupported_charset` | 400 | On an upload or `validate_archive`, the request’s `Content-Type` header names a charset other than UTF-8, ISO-8859-1, or US-ASCII. Send the request with no charset, or with one of these. |
3351| `error_code` | Status | Meaning and what to do |
3352| ----- | ----- | ----- |
3353| `plugin_name_taken` | 409 | The marketplace already holds this name. `details.plugin_id` is the plugin that holds it, and someone else might have made it. To see who, [get the plugin](https://platform.claude.com/docs/en/manage-claude/plugins-api#get-a-plugin) and read its `created_by`, which is `null` when no creator is recorded. Upload versions to it only if it is the plugin you meant to update. Otherwise, or when `plugin_id` is absent, upload under another name. |
3354| `skill_name_taken` | 409 | The plugin is in the library marketplace and one of its skills has the name of an organization skill. `details.skill_name` names it. Retry with an upload or a version that has no skill of that name. You can also remove the organization skill in claude.ai. |
3355| `registration_pending` | 503 | The files were stored, but the plugin’s skills could not yet be made available to members. See [Retrying uploads](https://platform.claude.com/docs/en/manage-claude/plugins-api#retrying-uploads). |
3356| `scan_pending` | 409 | The version’s `content_scan` reads `processing`. Retry once the scan finishes. |
3357| `scan_failed` | 400 | The version’s `content_scan` reads `fail`, `unknown`, or `errored`, so it cannot be served. Choose another version. |
3358| `cmek_key_disabled`, `cmek_key_network_blocked` | 400 | Your organization’s customer-managed encryption key is unavailable. See [Customer-managed encryption keys](https://platform.claude.com/docs/en/manage-claude/plugins-api#customer-managed-encryption-keys). |
3359| `unsupported_charset` | 400 | On an upload or `validate_archive`, the request’s `Content-Type` header names a charset other than UTF-8, ISO-8859-1, or US-ASCII. Send the request with no charset, or with one of these. |
33603360 
33613361New codes might be added. Treat a code you do not recognize the way you treat its status.
33623362 
from line 3375
33753375 
33763376Writes through this API are recorded on your organization’s Compliance API Activity Feed (see [Query the Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed)), attributed to the API key as an `api_actor` carrying its `apikey_` ID. The same actor appears in `created_by` on the plugins and versions the key creates. A write that changes no field or setting records nothing.
33773377 
3378| Event | Emitted when |
3379| ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
3380| `claude_plugin_created` | A plugin is created by an upload (here or in claude.ai) or by an accepted request to publish. A plugin created by a Git synchronization emits only `claude_plugin_version_created`. |
3381| `claude_plugin_version_created` | A version is stored. Versions stored by a Git synchronization are attributed to a `system_actor`. |
3382| `claude_plugin_updated` | A new version is uploaded to an existing plugin. |
3383| `claude_plugin_served_version_updated` | The served version changes. |
3384| `claude_plugin_deleted` | A plugin is deleted on its own, here or in claude.ai. |
3385| `plugin_installation_preference_updated` | An installation setting is set or removed. |
3386| `marketplace_created` | The first upload creates the library marketplace. |
3387| `marketplace_updated` | A marketplace’s default installation setting changes, or an administrator or owner starts a synchronization in claude.ai. |
3388| `marketplace_deleted` | A marketplace is deleted in claude.ai together with its plugins (no per-plugin events). |
3389| `claude_plugin_archive_accessed` | A member-owned plugin’s archive is downloaded. |
3390| `claude_plugin_security_scan_completed` | A content scan completes. |
3378| Event | Emitted when |
3379| ----- | ----- |
3380| `claude_plugin_created` | A plugin is created by an upload (here or in claude.ai) or by an accepted request to publish. A plugin created by a Git synchronization emits only `claude_plugin_version_created`. |
3381| `claude_plugin_version_created` | A version is stored. Versions stored by a Git synchronization are attributed to a `system_actor`. |
3382| `claude_plugin_updated` | A new version is uploaded to an existing plugin. |
3383| `claude_plugin_served_version_updated` | The served version changes. |
3384| `claude_plugin_deleted` | A plugin is deleted on its own, here or in claude.ai. |
3385| `plugin_installation_preference_updated` | An installation setting is set or removed. |
3386| `marketplace_created` | The first upload creates the library marketplace. |
3387| `marketplace_updated` | A marketplace’s default installation setting changes, or an administrator or owner starts a synchronization in claude.ai. |
3388| `marketplace_deleted` | A marketplace is deleted in claude.ai together with its plugins (no per-plugin events). |
3389| `claude_plugin_archive_accessed` | A member-owned plugin’s archive is downloaded. |
3390| `claude_plugin_security_scan_completed` | A content scan completes. |
33913391 
33923392The plugin, version, and marketplace IDs in these events are the same IDs this API returns. An event can also name a marketplace that this API does not list, such as a marketplace of plugins that Anthropic publishes. `plugin_installation_preference_updated` identifies the plugin by its `name` and `marketplace_id` rather than its `id`. In `claude_plugin_security_scan_completed`, `plugin_version` is not a version ID, and no field of a [plugin version](https://platform.claude.com/docs/en/manage-claude/plugins-api#plugin-versions) corresponds to it.
33933393 

manage-claude/spend-limits-api Changed · +8 / -8 lines

from line 22
2222 
2323The API exposes eight endpoints across two resources:
2424 
25| Resource | Endpoints | Use for |
26| --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
27| **Spend limits** | `GET /v1/organizations/spend_limits/effective`<br />`GET /v1/organizations/spend_limits/{spend_limit_id}`<br />`POST /v1/organizations/spend_limits`<br />`DELETE /v1/organizations/spend_limits/{spend_limit_id}` | Read each member’s effective spend limit and period-to-date spend; set or clear a per-user override. |
25| Resource | Endpoints | Use for |
26| ----- | ----- | ----- |
27| **Spend limits** | `GET /v1/organizations/spend_limits/effective`<br />`GET /v1/organizations/spend_limits/{spend_limit_id}`<br />`POST /v1/organizations/spend_limits`<br />`DELETE /v1/organizations/spend_limits/{spend_limit_id}` | Read each member’s effective spend limit and period-to-date spend; set or clear a per-user override. |
2828| **Spend limit increase requests** | `GET /v1/organizations/spend_limit_increase_requests`<br />`GET /v1/organizations/spend_limit_increase_requests/{id}`<br />`POST /v1/organizations/spend_limit_increase_requests/{id}/approve`<br />`POST /v1/organizations/spend_limit_increase_requests/{id}/deny` | List members’ requests for a higher spend limit, with the context needed to decide; approve or deny each request. |
2929 
3030Use the **spend limits** endpoints to answer “what spend limit applies to each member, where does it come from, and how close are they to it?” and to set a per-user override. Use the **spend limit increase requests** endpoints to work the queue of member-submitted requests.
from line 196
196196 
197197A **spend limit increase request** is created when a member clicks **Request more usage** in claude.ai. Requests are not created through this API. A request’s `status` is one of:
198198 
199| Status | Meaning |
200| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
201| `pending` | Awaiting admin action. The request normally carries a live `spend_summary` so you can see the member’s current effective spend limit and period-to-date spend while deciding; `spend_summary` might be `null` if it could not be computed. |
202| `approved` | The request was resolved with approval: either an admin approved it explicitly, another admin action raised the member’s spend limit, or Anthropic support raised a spend limit on the organization’s behalf. `spend_summary` is `null`. |
203| `denied` | An admin declined. `spend_summary` is `null`. The member can send a new request right away; only a `pending` request blocks a new one. An admin can still raise the member’s spend limit directly at any time. |
199| Status | Meaning |
200| ----- | ----- |
201| `pending` | Awaiting admin action. The request normally carries a live `spend_summary` so you can see the member’s current effective spend limit and period-to-date spend while deciding; `spend_summary` might be `null` if it could not be computed. |
202| `approved` | The request was resolved with approval: either an admin approved it explicitly, another admin action raised the member’s spend limit, or Anthropic support raised a spend limit on the organization’s behalf. `spend_summary` is `null`. |
203| `denied` | An admin declined. `spend_summary` is `null`. The member can send a new request right away; only a `pending` request blocks a new one. An admin can still raise the member’s spend limit directly at any time. |
204204 
205205Both `approved` and `denied` are terminal. A member has at most one `pending` request at a time.
206206 

manage-claude/usage-cost-analytics-api Changed · +25 / -25 lines

from line 801
801801 
802802This section is for organizations that call the legacy [Usage and Cost API](https://platform.claude.com/docs/en/manage-claude/usage-cost-api) (`/v1/organizations/usage_report/messages` and `/v1/organizations/cost_report`). Your credential and the `anthropic-version` header carry over. So do the names `starting_at` and `ending_at`, the `[]` suffix on array parameters, the pagination field names, and the token and cost field names. The usage endpoint’s bucket widths (`1m`, `1h`, `1d`) carry over too. The following table lists what changes:
803803 
804| Usage and Cost API | Usage and Cost Analytics API |
805| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
806| No beta header | `anthropic-beta: analytics-usage-cost-2026-08-24` on every request |
807| Data typically appears within 5 minutes | Data typically refreshes within 4 hours and can take up to 24 hours (see [Data freshness](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api#data-freshness)) |
808| `data` is a list of time buckets, oldest first, including empty ones, each with a `results` list whose entries hold dimensions and metrics side by side | `data` is a list of rows ranked by `order_by`, each with its own `starting_at` and `ending_at`, dimensions in `group`, and metrics in `usage` or `cost`. Combinations with no usage or cost have no row. |
809| `bucket_width`, default `1d` | `time_bucket_width`, no default. Pass `time_bucket_width=1d` to keep daily rows; omit it for whole-range totals. The cost endpoint also accepts every filter and `1m` and `1h` buckets. |
810| `limit` counts time buckets per page | `limit` counts rows per page (1 to 1,000, default 20), so the number of pages depends on how many combinations have data |
811| Any date range, paged forward by bucket | `starting_at` on or after January 1, 2026, and within the last 365 days, at most 31 days per request, `ending_at` required with `time_bucket_width`, and at most 24 hours with `1m` buckets (see [Date ranges and time buckets](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api#date-ranges-and-time-buckets)). Split longer ranges into several requests. |
812| `account_ids[]`, `service_account_ids[]`, `group_by[]=account_id`, `group_by[]=service_account_id` | `actor_ids[]` with the same tagged IDs, and `group_by[]=actor` or `actor_type`; read `actor.user_id` or `actor.service_account_id`. See [Actors](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api#actors). |
813| `context_window[]` | `context_windows[]` |
814| `group_by[]=description` on the cost report, with a `description` string | No `description`. Group by the structured dimensions instead: any of `model`, `cost_type`, `token_type`, `context_window`, `service_tier`, `inference_geo`, and `speed`, all of which fit in one request. |
815| An unknown API key or workspace ID returns an error | It matches nothing, including a misspelled `models[]` name. Each list takes up to 100 values. |
816| `workspace_id: null` for the default workspace | The default workspace’s real `workspace_id` (see [How is the default workspace represented?](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api#how-is-the-default-workspace-represented)) |
817| `inference_geo: "not_available"` and `service_tier: "standard"` on usage with no geo or tier | `null` for both. `inference_geos[]=not_available` still matches the rows with no inference geo. |
818| Cost `service_tier` is `standard` or `batch`; `amount` such as `"123.45"` | The actual tier; `amount` with six decimal places, such as `"123.450000"`, plus `list_amount`. |
819| Code execution not in the usage report; no request counts | Code execution appears as usage rows with `model: null`; adds `requests` on both endpoints and `total_tokens` on usage rows |
804| Usage and Cost API | Usage and Cost Analytics API |
805| ----- | ----- |
806| No beta header | `anthropic-beta: analytics-usage-cost-2026-08-24` on every request |
807| Data typically appears within 5 minutes | Data typically refreshes within 4 hours and can take up to 24 hours (see [Data freshness](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api#data-freshness)) |
808| `data` is a list of time buckets, oldest first, including empty ones, each with a `results` list whose entries hold dimensions and metrics side by side | `data` is a list of rows ranked by `order_by`, each with its own `starting_at` and `ending_at`, dimensions in `group`, and metrics in `usage` or `cost`. Combinations with no usage or cost have no row. |
809| `bucket_width`, default `1d` | `time_bucket_width`, no default. Pass `time_bucket_width=1d` to keep daily rows; omit it for whole-range totals. The cost endpoint also accepts every filter and `1m` and `1h` buckets. |
810| `limit` counts time buckets per page | `limit` counts rows per page (1 to 1,000, default 20), so the number of pages depends on how many combinations have data |
811| Any date range, paged forward by bucket | `starting_at` on or after January 1, 2026, and within the last 365 days, at most 31 days per request, `ending_at` required with `time_bucket_width`, and at most 24 hours with `1m` buckets (see [Date ranges and time buckets](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api#date-ranges-and-time-buckets)). Split longer ranges into several requests. |
812| `account_ids[]`, `service_account_ids[]`, `group_by[]=account_id`, `group_by[]=service_account_id` | `actor_ids[]` with the same tagged IDs, and `group_by[]=actor` or `actor_type`; read `actor.user_id` or `actor.service_account_id`. See [Actors](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api#actors). |
813| `context_window[]` | `context_windows[]` |
814| `group_by[]=description` on the cost report, with a `description` string | No `description`. Group by the structured dimensions instead: any of `model`, `cost_type`, `token_type`, `context_window`, `service_tier`, `inference_geo`, and `speed`, all of which fit in one request. |
815| An unknown API key or workspace ID returns an error | It matches nothing, including a misspelled `models[]` name. Each list takes up to 100 values. |
816| `workspace_id: null` for the default workspace | The default workspace’s real `workspace_id` (see [How is the default workspace represented?](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api#how-is-the-default-workspace-represented)) |
817| `inference_geo: "not_available"` and `service_tier: "standard"` on usage with no geo or tier | `null` for both. `inference_geos[]=not_available` still matches the rows with no inference geo. |
818| Cost `service_tier` is `standard` or `batch`; `amount` such as `"123.45"` | The actual tier; `amount` with six decimal places, such as `"123.450000"`, plus `list_amount`. |
819| Code execution not in the usage report; no request counts | Code execution appears as usage rows with `model: null`; adds `requests` on both endpoints and `total_tokens` on usage rows |
820820 
821821Two things differ for a Claude Enterprise organization:
822822 
from line 1255
12551255 
12561256Your key, the earliest date, the 365-day lookback and 31-day span, the filter and dimension names and values (except `user_ids[]` and the Claude Tag product value), the user `actor` fields, the metric and amount fields, `data_refreshed_at`, the cursor rules, and the [organization-level rate limit](https://platform.claude.com/docs/en/manage-claude/analytics-api#working-with-the-api) carry over. The only new header is the `analytics-usage-cost-2026-08-24` beta header. What changes:
12571257 
1258| Claude Enterprise reports | Usage and Cost Analytics API |
1259| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1258| Claude Enterprise reports | Usage and Cost Analytics API |
1259| ----- | ----- |
12601260| `usage_report` and `cost_report` return time buckets, oldest first, including empty ones, each holding at most its top 100 groups; `bucket_width` defaults to `1d` and `limit` counts buckets | Rows covering every combination with data, ranked by `order_by`, each with its own `starting_at` and `ending_at`, dimensions in `group`, and metrics in `usage` or `cost`. `time_bucket_width` is optional and `limit` counts rows. |
1261| The time-bucket parameter is `bucket_width` | It is `time_bucket_width`, with the same values |
1262| On `usage_report` and `cost_report`, `ending_at` is optional with `bucket_width` and `1m` buckets can span up to 31 days | `ending_at` required with `time_bucket_width`; `1m` buckets span at most 24 hours per request |
1263| `user_usage_report` and `user_cost_report` return one row per user | `group_by[]=actor&actor_types[]=user_actor`. Without the filter you also get rows for non-user identities and an `actor: null` row for unattributed usage. |
1264| Claude Tag usage has `product: "claude-tag"` | `product: "claude_tag"`; `products[]` accepts either spelling |
1265| An unrecognized `models[]` name returns a 400 error | It matches nothing |
1266| `user_ids[]` | `actor_ids[]` with the same tagged `user_...` IDs |
1267| `exclude_deleted_users` on the per-user reports | Requires `group_by[]=actor`; without it, the request returns a 400 error. It drops only rows whose `actor` is a user with `deleted: true`; rows for other identities and rows with `actor: null` stay. |
1261| The time-bucket parameter is `bucket_width` | It is `time_bucket_width`, with the same values |
1262| On `usage_report` and `cost_report`, `ending_at` is optional with `bucket_width` and `1m` buckets can span up to 31 days | `ending_at` required with `time_bucket_width`; `1m` buckets span at most 24 hours per request |
1263| `user_usage_report` and `user_cost_report` return one row per user | `group_by[]=actor&actor_types[]=user_actor`. Without the filter you also get rows for non-user identities and an `actor: null` row for unattributed usage. |
1264| Claude Tag usage has `product: "claude-tag"` | `product: "claude_tag"`; `products[]` accepts either spelling |
1265| An unrecognized `models[]` name returns a 400 error | It matches nothing |
1266| `user_ids[]` | `actor_ids[]` with the same tagged `user_...` IDs |
1267| `exclude_deleted_users` on the per-user reports | Requires `group_by[]=actor`; without it, the request returns a 400 error. It drops only rows whose `actor` is a user with `deleted: true`; rows for other identities and rows with `actor: null` stay. |
12681268 
12691269Per-user cost for a month, before:
12701270 

manage-claude/usage-cost-api Changed · +10 / -10 lines

from line 48
4848 
4949The APIs you can call, and the key each one takes, depend on which Claude product your organization uses:
5050 
51| API | Claude Console (Claude Platform) | Claude Enterprise (claude.ai) |
52| ---------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
53| [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) (recommended) | Admin API key (`sk-ant-admin01-...`) or another [Admin API credential](https://platform.claude.com/docs/en/manage-claude/admin-api#authentication) | Analytics API key |
54| Usage and Cost API (legacy), which this page documents | Admin API key or another Admin API credential | Analytics API key |
55| [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/api/beta/organization/analytics) cost and usage endpoints (legacy) | Not available | Analytics API key |
51| API | Claude Console (Claude Platform) | Claude Enterprise (claude.ai) |
52| ----- | ----- | ----- |
53| [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) (recommended) | Admin API key (`sk-ant-admin01-...`) or another [Admin API credential](https://platform.claude.com/docs/en/manage-claude/admin-api#authentication) | Analytics API key |
54| Usage and Cost API (legacy), which this page documents | Admin API key or another Admin API credential | Analytics API key |
55| [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/api/beta/organization/analytics) cost and usage endpoints (legacy) | Not available | Analytics API key |
5656 
5757Claude Enterprise parent organizations do not appear in Claude Console and carry no Admin API keys, so for them the Analytics API key is the only path to this data. See [Analytics APIs](https://platform.claude.com/docs/en/manage-claude/analytics-api) for how to create each key type and which plans the Claude Enterprise cost data applies to.
5858 
from line 251
251251 
252252### Time granularity limits
253253 
254| Granularity | Default limit | Maximum limit | Use case |
255| ----------- | ------------- | ------------- | ---------------------- |
256| `1m` | 60 buckets | 1,440 buckets | Real-time monitoring |
257| `1h` | 24 buckets | 168 buckets | Daily patterns |
258| `1d` | 7 buckets | 31 buckets | Weekly/monthly reports |
254| Granularity | Default limit | Maximum limit | Use case |
255| ----- | ----- | ----- | ----- |
256| `1m` | 60 buckets | 1,440 buckets | Real-time monitoring |
257| `1h` | 24 buckets | 168 buckets | Daily patterns |
258| `1d` | 7 buckets | 31 buckets | Weekly/monthly reports |
259259 
260260## Cost API
261261 

manage-claude/user-management Changed · +34 / -34 lines

from line 19
1919 
2020The Admin API is a single set of endpoints under `https://api.anthropic.com/v1/organizations/`. Claude Console and Claude Enterprise organizations authenticate with different [Admin API keys](https://platform.claude.com/docs/en/manage-claude/admin-api-keys) and each have access to a different subset of the endpoints:
2121 
22| Endpoints | Claude Console (Claude Platform) | Claude Enterprise (claude.ai) |
23| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
24| [Members](https://platform.claude.com/docs/en/manage-claude/user-management#members) and [invites](https://platform.claude.com/docs/en/manage-claude/user-management#invites) | Available; see the [Admin API guide](https://platform.claude.com/docs/en/manage-claude/admin-api) | Available (this page) |
25| [Groups](https://platform.claude.com/docs/en/manage-claude/user-management#groups) | Not available | Available (this page) |
26| [Custom roles](https://platform.claude.com/docs/en/manage-claude/user-management#custom-roles) | Not available | Available, read-only (this page) |
27| [Plugins](https://platform.claude.com/docs/en/manage-claude/plugins-api) and [Claude Tag](https://platform.claude.com/docs/en/manage-claude/claude-tag-api) | Not available | Available in beta |
28| [Spend limits](https://platform.claude.com/docs/en/manage-claude/spend-limits-api) | Not available | Available |
29| Usage and cost reports | Available; see the [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) | Available through the [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) and the [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api#get-access-to-the-claude-enterprise-analytics-api) |
30| [Workspaces](https://platform.claude.com/docs/en/manage-claude/workspaces), [API keys](https://platform.claude.com/docs/en/manage-claude/admin-api#api-keys), [rate limits](https://platform.claude.com/docs/en/manage-claude/rate-limits-api), and the other endpoints in the [Admin API guide](https://platform.claude.com/docs/en/manage-claude/admin-api) | Available | Not available |
22| Endpoints | Claude Console (Claude Platform) | Claude Enterprise (claude.ai) |
23| ----- | ----- | ----- |
24| [Members](https://platform.claude.com/docs/en/manage-claude/user-management#members) and [invites](https://platform.claude.com/docs/en/manage-claude/user-management#invites) | Available; see the [Admin API guide](https://platform.claude.com/docs/en/manage-claude/admin-api) | Available (this page) |
25| [Groups](https://platform.claude.com/docs/en/manage-claude/user-management#groups) | Not available | Available (this page) |
26| [Custom roles](https://platform.claude.com/docs/en/manage-claude/user-management#custom-roles) | Not available | Available, read-only (this page) |
27| [Plugins](https://platform.claude.com/docs/en/manage-claude/plugins-api) and [Claude Tag](https://platform.claude.com/docs/en/manage-claude/claude-tag-api) | Not available | Available in beta |
28| [Spend limits](https://platform.claude.com/docs/en/manage-claude/spend-limits-api) | Not available | Available |
29| Usage and cost reports | Available; see the [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) | Available through the [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) and the [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api#get-access-to-the-claude-enterprise-analytics-api) |
30| [Workspaces](https://platform.claude.com/docs/en/manage-claude/workspaces), [API keys](https://platform.claude.com/docs/en/manage-claude/admin-api#api-keys), [rate limits](https://platform.claude.com/docs/en/manage-claude/rate-limits-api), and the other endpoints in the [Admin API guide](https://platform.claude.com/docs/en/manage-claude/admin-api) | Available | Not available |
3131 
3232Members and invites are the same endpoints for both organization types; this page documents their Claude Enterprise behavior, including the Claude Enterprise [organization roles](https://platform.claude.com/docs/en/manage-claude/user-management#organization-roles). The group and custom-role endpoints exist only for Claude Enterprise.
3333 
from line 41
4141 
4242This page covers five resources:
4343 
44| Resource | Endpoints | Use for |
45| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------- |
46| **Members** | `GET /v1/organizations/users`<br />`GET /v1/organizations/users/{user_id}`<br />`POST /v1/organizations/users/{user_id}`<br />`DELETE /v1/organizations/users/{user_id}`<br />`POST /v1/organizations/users/{user_id}/sign_out` (beta) | List the organization’s members or look one up by email; change a member’s role; remove a member; sign a member out everywhere. |
47| **Invites** | `POST /v1/organizations/invites`<br />`GET /v1/organizations/invites`<br />`GET /v1/organizations/invites/{invite_id}`<br />`DELETE /v1/organizations/invites/{invite_id}` | Invite a person to the organization, track the invitation’s status, and withdraw it before it is accepted. |
48| **Groups** | `GET /v1/organizations/rbac_groups`<br />`GET /v1/organizations/rbac_groups/{rbac_group_id}`<br />`POST /v1/organizations/rbac_groups`<br />`POST /v1/organizations/rbac_groups/{rbac_group_id}`<br />`DELETE /v1/organizations/rbac_groups/{rbac_group_id}` | Read your enterprise’s groups and the custom roles attached to each; create, rename, and delete groups. |
49| **Group members** | `GET /v1/organizations/rbac_groups/{rbac_group_id}/members`<br />`POST /v1/organizations/rbac_groups/{rbac_group_id}/members`<br />`DELETE /v1/organizations/rbac_groups/{rbac_group_id}/members/{user_id}` | Read a group’s members; add and remove members. |
50| **Custom roles** | `GET /v1/organizations/rbac_roles`<br />`GET /v1/organizations/rbac_roles/{rbac_role_id}`<br />`GET /v1/organizations/rbac_roles/{rbac_role_id}/permissions` | Read your organization’s custom roles and the permissions each role grants. |
44| Resource | Endpoints | Use for |
45| ----- | ----- | ----- |
46| **Members** | `GET /v1/organizations/users`<br />`GET /v1/organizations/users/{user_id}`<br />`POST /v1/organizations/users/{user_id}`<br />`DELETE /v1/organizations/users/{user_id}`<br />`POST /v1/organizations/users/{user_id}/sign_out` (beta) | List the organization’s members or look one up by email; change a member’s role; remove a member; sign a member out everywhere. |
47| **Invites** | `POST /v1/organizations/invites`<br />`GET /v1/organizations/invites`<br />`GET /v1/organizations/invites/{invite_id}`<br />`DELETE /v1/organizations/invites/{invite_id}` | Invite a person to the organization, track the invitation’s status, and withdraw it before it is accepted. |
48| **Groups** | `GET /v1/organizations/rbac_groups`<br />`GET /v1/organizations/rbac_groups/{rbac_group_id}`<br />`POST /v1/organizations/rbac_groups`<br />`POST /v1/organizations/rbac_groups/{rbac_group_id}`<br />`DELETE /v1/organizations/rbac_groups/{rbac_group_id}` | Read your enterprise’s groups and the custom roles attached to each; create, rename, and delete groups. |
49| **Group members** | `GET /v1/organizations/rbac_groups/{rbac_group_id}/members`<br />`POST /v1/organizations/rbac_groups/{rbac_group_id}/members`<br />`DELETE /v1/organizations/rbac_groups/{rbac_group_id}/members/{user_id}` | Read a group’s members; add and remove members. |
50| **Custom roles** | `GET /v1/organizations/rbac_roles`<br />`GET /v1/organizations/rbac_roles/{rbac_role_id}`<br />`GET /v1/organizations/rbac_roles/{rbac_role_id}/permissions` | Read your organization’s custom roles and the permissions each role grants. |
5151 
5252Custom roles and their group attachments are managed in [claude.ai organization settings](https://claude.ai/admin-settings); the API reads them but cannot change them.
5353 
from line 176
176176 
177177Every member has exactly one organization role. Reads return the member’s role as one of five values:
178178 
179| Role | Meaning |
180| ------------------ | ----------------------------------------------------------------------------------------- |
181| `user` | A standard member. |
182| `managed` | A member whose permissions are granted through the custom roles attached to their groups. |
183| `owner` | An organization owner. |
184| `membership_admin` | A member who can manage the organization’s members. |
185| `primary_owner` | The organization’s primary owner. There is exactly one. |
179| Role | Meaning |
180| ----- | ----- |
181| `user` | A standard member. |
182| `managed` | A member whose permissions are granted through the custom roles attached to their groups. |
183| `owner` | An organization owner. |
184| `membership_admin` | A member who can manage the organization’s members. |
185| `primary_owner` | The organization’s primary owner. There is exactly one. |
186186 
187187The API can assign only the `user` and `managed` roles, on invite creation and on role updates. Assigning `managed` requires the `write:rbac_groups` scope in addition to `write:members`, because a managed member’s permissions come from the custom roles attached to their groups. The administrative roles (`owner`, `membership_admin`, and `primary_owner`) are assigned in claude.ai organization settings, and members holding them cannot be modified or removed through this API.
188188 
from line 758
758758 
759759#### Responses
760760 
761| Status | Meaning |
762| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
763| 200 | The sign-out completed. It’s safe to retry: a request that finds nothing left to end also returns 200, and a second request ends any session, trusted device, or OAuth token that the person has gained since the first. |
764| 400 `cannot_sign_out_primary_owner` | The member is the primary owner, who can’t be signed out. See [Who you can’t sign out](https://platform.claude.com/docs/en/manage-claude/user-management#who-you-cant-sign-out). |
765| 400 `organization_not_enrolled_in_beta` | The endpoint isn’t available to your organization. |
766| 400 | The request omits the `anthropic-beta` value, which the message names, or the `id` in the path doesn’t start with `user_`. |
767| 401 | The key is missing, invalid, or deleted, or it was created for a parent organization and isn’t bound to one organization. |
768| 403 | The key lacks the `write:members` scope. |
769| 404 | No member with that ID is in your organization. |
770| 429 | The organization is over the [rate limit](https://platform.claude.com/docs/en/manage-claude/user-management#rate-limits) that Admin API endpoints share. The `retry-after` header says when to retry. Sign-out has no separate limit. |
771| 503 | A service that the request needs is temporarily unavailable. What the request already ended stays ended. Send the request again to end the rest. |
761| Status | Meaning |
762| ----- | ----- |
763| 200 | The sign-out completed. It’s safe to retry: a request that finds nothing left to end also returns 200, and a second request ends any session, trusted device, or OAuth token that the person has gained since the first. |
764| 400 `cannot_sign_out_primary_owner` | The member is the primary owner, who can’t be signed out. See [Who you can’t sign out](https://platform.claude.com/docs/en/manage-claude/user-management#who-you-cant-sign-out). |
765| 400 `organization_not_enrolled_in_beta` | The endpoint isn’t available to your organization. |
766| 400 | The request omits the `anthropic-beta` value, which the message names, or the `id` in the path doesn’t start with `user_`. |
767| 401 | The key is missing, invalid, or deleted, or it was created for a parent organization and isn’t bound to one organization. |
768| 403 | The key lacks the `write:members` scope. |
769| 404 | No member with that ID is in your organization. |
770| 429 | The organization is over the [rate limit](https://platform.claude.com/docs/en/manage-claude/user-management#rate-limits) that Admin API endpoints share. The `retry-after` header says when to retry. Sign-out has no separate limit. |
771| 503 | A service that the request needs is temporarily unavailable. What the request already ended stays ended. Send the request again to end the rest. |
772772 
773773Error responses follow the standard shape documented in [Claude API errors](https://platform.claude.com/docs/en/api/errors), with the error code in `error.details.error_code`:
774774 

manage-claude/user-profiles Changed · +12 / -12 lines

from line 18
1818 
1919The profile’s `access_type` field says whether the end customer uses your product or buys API access from you, such as through your gateway:
2020 
21| The end customer | `access_type` |
22| ------------------------------------------ | ----------------------------------------------------------------- |
23| Uses your product | `application` (the default, set when you leave `access_type` out) |
24| Is a company that buys API access from you | `passthrough` (not the default, so you have to send it) |
21| The end customer | `access_type` |
22| ----- | ----- |
23| Uses your product | `application` (the default, set when you leave `access_type` out) |
24| Is a company that buys API access from you | `passthrough` (not the default, so you have to send it) |
2525 
2626Don’t create a profile for either of the following:
2727 
from line 377
377377 
378378A profile ID of either access type also works on Claude Models on Google Cloud (Google managed) and on [Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock). It doesn’t work on [Amazon Bedrock (`bedrock-runtime`)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy), which you call with `InvokeModel` or `Converse`. You use your Anthropic organization’s credentials only to create and manage profiles. Inference stays on your existing AWS or Google Cloud credentials.
379379 
380| Platform | Create profiles | Send the profile ID in |
381| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
382| Claude API | Yes | `anthropic-user-profile-id` header |
383| [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) | Yes | `anthropic-user-profile-id` header |
384| [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry), deployments hosted on Anthropic | No. Create them on the Claude API, and [ask Anthropic to link your Foundry resource](https://platform.claude.com/docs/en/manage-claude/user-profiles#before-you-begin). | `anthropic-user-profile-id` header |
385| [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) | Yes | `anthropic-user-profile-id` header |
386| [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed) | No. Create them on the Claude API or Claude Platform on AWS. | `anthropic-user-profile-id` header |
387| [Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock) | No. Create them on the Claude API or Claude Platform on AWS. | `user_profile_id` field in the request body |
380| Platform | Create profiles | Send the profile ID in |
381| ----- | ----- | ----- |
382| Claude API | Yes | `anthropic-user-profile-id` header |
383| [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) | Yes | `anthropic-user-profile-id` header |
384| [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry), deployments hosted on Anthropic | No. Create them on the Claude API, and [ask Anthropic to link your Foundry resource](https://platform.claude.com/docs/en/manage-claude/user-profiles#before-you-begin). | `anthropic-user-profile-id` header |
385| [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) | Yes | `anthropic-user-profile-id` header |
386| [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed) | No. Create them on the Claude API or Claude Platform on AWS. | `anthropic-user-profile-id` header |
387| [Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock) | No. Create them on the Claude API or Claude Platform on AWS. | `user_profile_id` field in the request body |
388388 
389389On Claude in Amazon Bedrock, put the ID at the top level of the request body:
390390 

manage-claude/wif-admin-api Changed · +5 / -5 lines

from line 496
496496 
497497A [federation issuer](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation#federation-issuers) (`fdis_...`) registers an OIDC identity provider with your organization. The `jwks` field is a discriminated union that controls how Anthropic fetches the provider’s signing keys:
498498 
499| `jwks` value | When to use |
500| ---------------------------------------- | --------------------------------------------------------------------------------- |
501| `{"type": "discovery"}` | The provider serves `/.well-known/openid-configuration` at the issuer URL. |
502| `{"type": "explicit_url", "url": "..."}` | Point at a JWKS endpoint directly. |
503| `{"type": "inline", "keys": [...]}` | Upload the key set for providers that are not reachable from the public internet. |
499| `jwks` value | When to use |
500| ----- | ----- |
501| `{"type": "discovery"}` | The provider serves `/.well-known/openid-configuration` at the issuer URL. |
502| `{"type": "explicit_url", "url": "..."}` | Point at a JWKS endpoint directly. |
503| `{"type": "inline", "keys": [...]}` | Upload the key set for providers that are not reachable from the public internet. |
504504 
505505Register an issuer. This example registers GitHub Actions with JWKS discovery:
506506 

manage-claude/wif-providers/azure Changed · +6 / -6 lines

from line 80
8080 }
8181 ```
8282 
83 | Claim | Value | Match this when |
84 | ----- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
85 | `oid` | The managed identity’s object ID, identical to `sub` | You want to authorize one specific managed identity. This is the default. The rule in [Configure Anthropic](https://platform.claude.com/docs/en/manage-claude/wif-providers/azure#configure-anthropic) matches it. |
86 | `azp` | The calling identity’s client ID | You want to authorize every workload that shares one app registration. For a managed identity, `azp` is unique to that identity, so it is equivalent to `oid`. |
87 | `aud` | The audience app registration’s client ID (the `<APP_ID>` GUID from [Register the token audience](https://platform.claude.com/docs/en/manage-claude/wif-providers/azure#register-the-token-audience)) | Always. The rule’s `audience` field must equal the token’s `aud` value exactly. |
88 | `tid` | Your tenant ID | You want defense in depth. The issuer URL already pins the tenant. |
83 | Claim | Value | Match this when |
84 | ----- | ----- | ----- |
85 | `oid` | The managed identity’s object ID, identical to `sub` | You want to authorize one specific managed identity. This is the default. The rule in [Configure Anthropic](https://platform.claude.com/docs/en/manage-claude/wif-providers/azure#configure-anthropic) matches it. |
86 | `azp` | The calling identity’s client ID | You want to authorize every workload that shares one app registration. For a managed identity, `azp` is unique to that identity, so it is equivalent to `oid`. |
87 | `aud` | The audience app registration’s client ID (the `<APP_ID>` GUID from [Register the token audience](https://platform.claude.com/docs/en/manage-claude/wif-providers/azure#register-the-token-audience)) | Always. The rule’s `audience` field must equal the token’s `aud` value exactly. |
88 | `tid` | Your tenant ID | You want defense in depth. The issuer URL already pins the tenant. |
8989 
9090 If the decoded token’s `ver` claim is `1.0`, the claim names and values differ. See [If your tokens are v1.0](https://platform.claude.com/docs/en/manage-claude/wif-providers/azure#if-your-tokens-are-v1-0) before continuing.
9191 </Step>

manage-claude/wif-reference Changed · +94 / -94 lines

from line 10
1010 
1111`POST /v1/oauth/token` accepts a JSON body using the [RFC 7523](https://www.rfc-editor.org/rfc/rfc7523) `jwt-bearer` grant. The SDK builds this request for you from the [environment variables](https://platform.claude.com/docs/en/manage-claude/wif-reference#environment-variables).
1212 
13| Field | Required | Description |
14| -------------------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
15| `grant_type` | Yes | Always `urn:ietf:params:oauth:grant-type:jwt-bearer`. |
16| `assertion` | Yes | The OIDC JWT issued by your identity provider. |
17| `federation_rule_id` | Yes | Tagged ID (`fdrl_...`) of the federation rule to evaluate. |
18| `organization_id` | Yes | UUID of your Anthropic organization. |
19| `service_account_id` | No | Tagged ID (`svac_...`) of the rule’s target service account. The rule, not this field, determines which account the token acts as. If you send the field, it must be that account’s ID. |
20| `workspace_id` | Conditional | Tagged ID (`wrkspc_...`) of the workspace to scope the minted token to. Required when the rule is enabled for all workspaces or for more than one. When omitted, the server selects the rule’s sole enabled workspace. The literal `default` also works for the organization’s Default Workspace but is deprecated. Use that workspace’s `wrkspc_...` ID. |
13| Field | Required | Description |
14| ----- | ----- | ----- |
15| `grant_type` | Yes | Always `urn:ietf:params:oauth:grant-type:jwt-bearer`. |
16| `assertion` | Yes | The OIDC JWT issued by your identity provider. |
17| `federation_rule_id` | Yes | Tagged ID (`fdrl_...`) of the federation rule to evaluate. |
18| `organization_id` | Yes | UUID of your Anthropic organization. |
19| `service_account_id` | No | Tagged ID (`svac_...`) of the rule’s target service account. The rule, not this field, determines which account the token acts as. If you send the field, it must be that account’s ID. |
20| `workspace_id` | Conditional | Tagged ID (`wrkspc_...`) of the workspace to scope the minted token to. Required when the rule is enabled for all workspaces or for more than one. When omitted, the server selects the rule’s sole enabled workspace. The literal `default` also works for the organization’s Default Workspace but is deprecated. Use that workspace’s `wrkspc_...` ID. |
2121 
2222## Token exchange response
2323 
2424`POST /v1/oauth/token` returns a standard OAuth 2.0 token response ([RFC 6749 §5.1](https://www.rfc-editor.org/rfc/rfc6749#section-5.1)):
2525 
26| Field | Type | Description |
27| -------------- | ------- | --------------------------------------------------------------------------------------------------------- |
28| `access_token` | string | The short-lived Anthropic token, prefixed `sk-ant-oat01-...`. Pass it as `Authorization: Bearer <token>`. |
29| `token_type` | string | Always `Bearer`. |
30| `expires_in` | integer | Seconds until the token expires. |
31| `scope` | string | The OAuth scope granted by the matched rule. |
26| Field | Type | Description |
27| ----- | ----- | ----- |
28| `access_token` | string | The short-lived Anthropic token, prefixed `sk-ant-oat01-...`. Pass it as `Authorization: Bearer <token>`. |
29| `token_type` | string | Always `Bearer`. |
30| `expires_in` | integer | Seconds until the token expires. |
31| `scope` | string | The OAuth scope granted by the matched rule. |
3232 
3333## Environment variables
3434 
3535The SDK reads these variables to perform a federated token exchange with no constructor arguments.
3636 
37| Variable | Required | Description |
38| ------------------------------- | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
39| `ANTHROPIC_FEDERATION_RULE_ID` | Yes | Tagged ID (`fdrl_...`) of the federation rule to evaluate. |
40| `ANTHROPIC_ORGANIZATION_ID` | Yes | UUID of your Anthropic organization. Find it on the [Organization](https://platform.claude.com/settings/organization) page in the Claude Console. |
41| `ANTHROPIC_IDENTITY_TOKEN_FILE` | One of `_TOKEN_FILE` or `_TOKEN` | Filesystem path to the JWT issued by your identity provider (IdP). The SDK rereads this file on every exchange so that projected tokens that rotate on disk are always current. `/var/run/secrets/anthropic.com/token` is an example. |
42| `ANTHROPIC_IDENTITY_TOKEN` | One of `_TOKEN_FILE` or `_TOKEN` | The literal JWT as a string. Use when your platform injects the token as an environment variable rather than a file. `eyJhbGciOiJSUzI1NiIs...` is an example. |
43| `ANTHROPIC_SERVICE_ACCOUNT_ID` | No | Tagged ID (`svac_...`) of the rule’s target service account. The rule, not this variable, determines which account the token acts as. If you set the variable, it must be that account’s ID. |
44| `ANTHROPIC_WORKSPACE_ID` | Conditional | Tagged ID (`wrkspc_...`) of the workspace to scope the minted token to. Required when the federation rule is enabled for all workspaces or for more than one. Optional when the rule is bound to a single workspace. |
45| `ANTHROPIC_PROFILE` | No | Name of a [configuration profile](https://platform.claude.com/docs/en/manage-claude/wif-reference#profile-configuration-file) to load. Takes precedence over the federation environment variables in this table. `staging-profile` is an example. |
37| Variable | Required | Description |
38| ----- | ----- | ----- |
39| `ANTHROPIC_FEDERATION_RULE_ID` | Yes | Tagged ID (`fdrl_...`) of the federation rule to evaluate. |
40| `ANTHROPIC_ORGANIZATION_ID` | Yes | UUID of your Anthropic organization. Find it on the [Organization](https://platform.claude.com/settings/organization) page in the Claude Console. |
41| `ANTHROPIC_IDENTITY_TOKEN_FILE` | One of `_TOKEN_FILE` or `_TOKEN` | Filesystem path to the JWT issued by your identity provider (IdP). The SDK rereads this file on every exchange so that projected tokens that rotate on disk are always current. `/var/run/secrets/anthropic.com/token` is an example. |
42| `ANTHROPIC_IDENTITY_TOKEN` | One of `_TOKEN_FILE` or `_TOKEN` | The literal JWT as a string. Use when your platform injects the token as an environment variable rather than a file. `eyJhbGciOiJSUzI1NiIs...` is an example. |
43| `ANTHROPIC_SERVICE_ACCOUNT_ID` | No | Tagged ID (`svac_...`) of the rule’s target service account. The rule, not this variable, determines which account the token acts as. If you set the variable, it must be that account’s ID. |
44| `ANTHROPIC_WORKSPACE_ID` | Conditional | Tagged ID (`wrkspc_...`) of the workspace to scope the minted token to. Required when the federation rule is enabled for all workspaces or for more than one. Optional when the rule is bound to a single workspace. |
45| `ANTHROPIC_PROFILE` | No | Name of a [configuration profile](https://platform.claude.com/docs/en/manage-claude/wif-reference#profile-configuration-file) to load. Takes precedence over the federation environment variables in this table. `staging-profile` is an example. |
4646 
4747The direct environment-variable federation path activates only when `ANTHROPIC_FEDERATION_RULE_ID`, `ANTHROPIC_ORGANIZATION_ID`, and one of `ANTHROPIC_IDENTITY_TOKEN_FILE` or `ANTHROPIC_IDENTITY_TOKEN` are all set. The SDK also reads `ANTHROPIC_WORKSPACE_ID`, but this path activates with or without it.
4848 
from line 56
5656 
5757The SDK resolves credentials in this order. The first source that yields a credential wins.
5858 
59| Order | Source | Notes |
60| ----- | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
61| 1 | Constructor argument (API key, auth token, or credentials) | Always overrides everything else. |
62| 2 | `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN` | Overrides federation entirely. Unset these when migrating from API keys. |
63| 3 | `ANTHROPIC_PROFILE` | Loads `<config_dir>/configs/<name>.json`. If the named profile is missing, the SDK reports an error instead of trying the next source. |
64| 4 | Federation environment variables | `ANTHROPIC_FEDERATION_RULE_ID` + `ANTHROPIC_ORGANIZATION_ID` + `ANTHROPIC_IDENTITY_TOKEN[_FILE]`. |
65| 5 | Active profile | Resolved from `<config_dir>/active_config`, falling back to a profile named `default`. |
59| Order | Source | Notes |
60| ----- | ----- | ----- |
61| 1 | Constructor argument (API key, auth token, or credentials) | Always overrides everything else. |
62| 2 | `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN` | Overrides federation entirely. Unset these when migrating from API keys. |
63| 3 | `ANTHROPIC_PROFILE` | Loads `<config_dir>/configs/<name>.json`. If the named profile is missing, the SDK reports an error instead of trying the next source. |
64| 4 | Federation environment variables | `ANTHROPIC_FEDERATION_RULE_ID` + `ANTHROPIC_ORGANIZATION_ID` + `ANTHROPIC_IDENTITY_TOKEN[_FILE]`. |
65| 5 | Active profile | Resolved from `<config_dir>/active_config`, falling back to a profile named `default`. |
6666 
6767In the `ant` CLI, the settings for [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#authentication) rank after the federation environment variables and before the active profile. The settings are the project, the workspace ID, and the location. You set them with the `--google-cloud-*` flags or the `ANTHROPIC_GOOGLE_CLOUD_*` variables. The CLI uses these settings when any one of them is set. With these settings, the CLI gets its credential from Google Application Default Credentials.
6868 
from line 92
9292 
9393### File layout
9494 
95| Path | Contents | Sensitivity |
96| ----------------------------------------- | ------------------------------------------------------------------------------------------------ | -------------------------------------------------- |
97| `<config_dir>/configs/<profile>.json` | `version`, the `authentication` block, `organization_id`, `workspace_id`, and `base_url`. | Non-secret. Safe to commit or build into an image. |
95| Path | Contents | Sensitivity |
96| ----- | ----- | ----- |
97| `<config_dir>/configs/<profile>.json` | `version`, the `authentication` block, `organization_id`, `workspace_id`, and `base_url`. | Non-secret. Safe to commit or build into an image. |
9898| `<config_dir>/credentials/<profile>.json` | `version`, the cached `access_token`, `expires_at`, and (for interactive login) `refresh_token`. | Secret. The SDK writes this file with mode `0600`. |
9999 
100100Both the config file and the credentials file carry a top-level string `version` field in `major.minor` format, such as `"1.0"`. The SDK writes this field automatically. If you omit it when authoring a config by hand, the SDK treats the file as the current version.
from line 125
125125 
126126The `oauth_scope` you set on a federation rule determines which Claude API endpoints the minted access token can call.
127127 
128| Scope | Grants access to |
129| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
130| `workspace:developer` | All non-administrative Claude API endpoints in the rule’s workspace: [Messages](https://platform.claude.com/docs/en/api/messages) (including streaming and token counting), [Models](https://platform.claude.com/docs/en/api/models/list), [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) and their sessions, [Files](https://platform.claude.com/docs/en/build-with-claude/files), and [Skills](https://platform.claude.com/docs/en/build-with-claude/skills-guide). This matches the access a workspace API key in the same workspace has. |
131| `workspace:inference` | The inference endpoints in the rule’s workspace: [Messages](https://platform.claude.com/docs/en/api/messages) (including streaming and token counting), [Models](https://platform.claude.com/docs/en/api/models/list), and the [OpenAI-compatible chat endpoint](https://platform.claude.com/docs/en/cli-sdks-libraries/libraries/openai-sdk). Use this for workloads that only need to call Claude and never need to manage Files, Skills, or other resources. |
132| `workspace:manage_tunnels` | The [MCP tunnels API](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/reference#tunnels-api): create, list, and get tunnels, register and archive CA certificates, reveal and rotate the tunnel token, and archive tunnels. The Console’s create-tunnel modal window locks this scope when you create a rule from it. |
133| `org:admin` | Full access to the [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api) (organization members, invites, workspaces, API keys, and the rest). An OAuth `org:admin` token can only create or modify rules scoped to `workspace:developer` or `workspace:inference`. It cannot update an issuer that backs a rule with any other scope. See [Permissions and constraints](https://platform.claude.com/docs/en/manage-claude/wif-admin-api#permissions-and-constraints). |
128| Scope | Grants access to |
129| ----- | ----- |
130| `workspace:developer` | All non-administrative Claude API endpoints in the rule’s workspace: [Messages](https://platform.claude.com/docs/en/api/messages) (including streaming and token counting), [Models](https://platform.claude.com/docs/en/api/models/list), [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) and their sessions, [Files](https://platform.claude.com/docs/en/build-with-claude/files), and [Skills](https://platform.claude.com/docs/en/build-with-claude/skills-guide). This matches the access a workspace API key in the same workspace has. |
131| `workspace:inference` | The inference endpoints in the rule’s workspace: [Messages](https://platform.claude.com/docs/en/api/messages) (including streaming and token counting), [Models](https://platform.claude.com/docs/en/api/models/list), and the [OpenAI-compatible chat endpoint](https://platform.claude.com/docs/en/cli-sdks-libraries/libraries/openai-sdk). Use this for workloads that only need to call Claude and never need to manage Files, Skills, or other resources. |
132| `workspace:manage_tunnels` | The [MCP tunnels API](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/reference#tunnels-api): create, list, and get tunnels, register and archive CA certificates, reveal and rotate the tunnel token, and archive tunnels. The Console’s create-tunnel modal window locks this scope when you create a rule from it. |
133| `org:admin` | Full access to the [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api) (organization members, invites, workspaces, API keys, and the rest). An OAuth `org:admin` token can only create or modify rules scoped to `workspace:developer` or `workspace:inference`. It cannot update an issuer that backs a rule with any other scope. See [Permissions and constraints](https://platform.claude.com/docs/en/manage-claude/wif-admin-api#permissions-and-constraints). |
134134 
135135A request to an endpoint outside the token’s scope returns HTTP 403. Finer-grained scopes (by resource, or read versus write) are not available.
136136 
from line 138
138138 
139139A federation rule’s `oauth_scope` is a ceiling: the minted token can never exceed it. The target service account’s `organization_role` (`developer` or `admin`) determines which scopes a rule can grant. A rule that grants `org:admin` must target a service account with `organization_role=admin`. Effective permissions are the intersection of the rule’s scope and the service account’s role.
140140 
141| Rule `oauth_scope` | Service account `organization_role` | Effective permissions |
142| --------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
143| `workspace:developer` | `admin` | Claude API access in the rule’s workspace only. The scope caps the token below the role. |
144| `org:admin` | `admin` | Full Admin API access (organization members, invites, workspaces, API keys, and the rest), minus the OAuth-caller exceptions. See [Permissions and constraints](https://platform.claude.com/docs/en/manage-claude/wif-admin-api#permissions-and-constraints). |
141| Rule `oauth_scope` | Service account `organization_role` | Effective permissions |
142| ----- | ----- | ----- |
143| `workspace:developer` | `admin` | Claude API access in the rule’s workspace only. The scope caps the token below the role. |
144| `org:admin` | `admin` | Full Admin API access (organization members, invites, workspaces, API keys, and the rest), minus the OAuth-caller exceptions. See [Permissions and constraints](https://platform.claude.com/docs/en/manage-claude/wif-admin-api#permissions-and-constraints). |
145145 
146146## Validation rules
147147 
from line 151
151151 
152152### Resource fields
153153 
154| Field | Constraint |
155| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
156| Issuer, rule, and service account `name` | Must match `^[a-z0-9-]+$`, length 1 to 255 characters. |
157| `workspace_id` | Required on create unless `applies_to_all_workspaces` is true. The workspace (`wrkspc_...`) whose quota, billing, and rate limits apply to tokens minted under this rule. Must be a workspace in the same organization, and the target service account must be a member of that workspace. |
158| `applies_to_all_workspaces` | Boolean. Set `true` to enable the rule in every workspace in the organization instead of naming one. Either this or `workspace_id` is required on create. |
159| `token_lifetime_seconds` | Integer between `60` and `86400` (1 minute to 24 hours). Default `3600`. Anthropic rejects values outside this range at request time. See [Token lifetime and refresh](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation#token-lifetime-and-refresh). |
154| Field | Constraint |
155| ----- | ----- |
156| Issuer, rule, and service account `name` | Must match `^[a-z0-9-]+$`, length 1 to 255 characters. |
157| `workspace_id` | Required on create unless `applies_to_all_workspaces` is true. The workspace (`wrkspc_...`) whose quota, billing, and rate limits apply to tokens minted under this rule. Must be a workspace in the same organization, and the target service account must be a member of that workspace. |
158| `applies_to_all_workspaces` | Boolean. Set `true` to enable the rule in every workspace in the organization instead of naming one. Either this or `workspace_id` is required on create. |
159| `token_lifetime_seconds` | Integer between `60` and `86400` (1 minute to 24 hours). Default `3600`. Anthropic rejects values outside this range at request time. See [Token lifetime and refresh](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation#token-lifetime-and-refresh). |
160160 
161161### URL fields
162162 
163163Anthropic validates the `issuer_url`, `jwks.discovery_base`, and `jwks.url` fields:
164164 
165| Constraint | Detail |
166| ---------- | --------------------------------------------------------------------------------------------------------------------------------- |
167| Scheme | Must be `https`. |
168| Port | Must be `443` (explicit or default). |
169| Host | Must be a public DNS hostname for your OIDC provider. Must resolve to public IP addresses. Anthropic does not accept IP literals. |
165| Constraint | Detail |
166| ----- | ----- |
167| Scheme | Must be `https`. |
168| Port | Must be `443` (explicit or default). |
169| Host | Must be a public DNS hostname for your OIDC provider. Must resolve to public IP addresses. Anthropic does not accept IP literals. |
170170 
171171URL validation failures return `400 invalid_request_error` with the field name as a prefix on the error message (for example, `issuer_url: url must use https scheme`).
172172 
from line 176
176176 
177177### JWT verification
178178 
179| Constraint | Detail |
180| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
181| Maximum size | The `assertion` JWT must be at most 16 KiB. |
182| Signing algorithm | Anthropic accepts only asymmetric algorithms (RSA and ECDSA families: ES256, ES384, ES512, RS256, RS384, RS512, PS256, PS384, PS512). It rejects HMAC (`HS256`, `HS384`, `HS512`) and `none`. |
183| Key ID | The JWT header must carry a `kid` that matches a key in the issuer’s JWKS. Anthropic rejects tokens without `kid`. |
184| Required claims | `sub` must be present. `iat` must be present and not in the future. `exp` must be present and in the future. |
185| Single use | An assertion that carries a `jti` claim can be exchanged only once for each issuer. Anthropic rejects a repeat exchange with the same `jti` as a replay. The issuer’s `check_jti` field (enabled by default) controls this check. Assertions without a `jti` claim are not subject to it. See the [Federation issuers API reference](https://platform.claude.com/docs/en/api/organization/federation/issuers). |
186| Maximum lifetime | The token’s lifetime (`exp` minus `iat`) must not exceed the issuer’s configured maximum (1 hour by default, configurable for each issuer in the Claude Console). |
187| Clock skew | Anthropic applies a 30-second leeway to `exp`, `nbf`, and `iat`. |
179| Constraint | Detail |
180| ----- | ----- |
181| Maximum size | The `assertion` JWT must be at most 16 KiB. |
182| Signing algorithm | Anthropic accepts only asymmetric algorithms (RSA and ECDSA families: ES256, ES384, ES512, RS256, RS384, RS512, PS256, PS384, PS512). It rejects HMAC (`HS256`, `HS384`, `HS512`) and `none`. |
183| Key ID | The JWT header must carry a `kid` that matches a key in the issuer’s JWKS. Anthropic rejects tokens without `kid`. |
184| Required claims | `sub` must be present. `iat` must be present and not in the future. `exp` must be present and in the future. |
185| Single use | An assertion that carries a `jti` claim can be exchanged only once for each issuer. Anthropic rejects a repeat exchange with the same `jti` as a replay. The issuer’s `check_jti` field (enabled by default) controls this check. Assertions without a `jti` claim are not subject to it. See the [Federation issuers API reference](https://platform.claude.com/docs/en/api/organization/federation/issuers). |
186| Maximum lifetime | The token’s lifetime (`exp` minus `iat`) must not exceed the issuer’s configured maximum (1 hour by default, configurable for each issuer in the Claude Console). |
187| Clock skew | Anthropic applies a 30-second leeway to `exp`, `nbf`, and `iat`. |
188188 
189189## Rule matching semantics
190190 
191191A federation rule’s `match` block determines whether Anthropic accepts an incoming JWT. The JWT must satisfy every populated matcher. Set at least one of `subject_prefix`, `claims`, or `condition`. Anthropic rejects a `match` block that contains only `audience` or no matchers at all. This guards against rules that would accept every token from an issuer.
192192 
193| Matcher | Type | Semantics |
194| ---------------- | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
195| `subject_prefix` | string | Exact match against the JWT `sub` claim. A trailing `*` makes it a prefix match (the `sub` value must start with the characters before the `*`). Case-sensitive. |
196| `audience` | string | The JWT `aud` claim must contain this exact string. When `aud` is an array, any element matching exactly satisfies the check. |
197| `claims` | map\<string, string> | Each key is a top-level claim name and each value is the required exact string value. For nested, numeric, boolean, or complex claims such as lists and maps, use `condition` with a Common Expression Language (CEL) expression instead. |
198| `condition` | string (CEL) | A [CEL](https://cel.dev/) expression that must evaluate to `true`. |
193| Matcher | Type | Semantics |
194| ----- | ----- | ----- |
195| `subject_prefix` | string | Exact match against the JWT `sub` claim. A trailing `*` makes it a prefix match (the `sub` value must start with the characters before the `*`). Case-sensitive. |
196| `audience` | string | The JWT `aud` claim must contain this exact string. When `aud` is an array, any element matching exactly satisfies the check. |
197| `claims` | map\<string, string> | Each key is a top-level claim name and each value is the required exact string value. For nested, numeric, boolean, or complex claims such as lists and maps, use `condition` with a Common Expression Language (CEL) expression instead. |
198| `condition` | string (CEL) | A [CEL](https://cel.dev/) expression that must evaluate to `true`. |
199199 
200200### CEL evaluation environment
201201 
202202The `condition` expression has access to a single variable:
203203 
204| Variable | Type | Contents |
205| -------- | ---- | ----------------------------------------------------------------------------- |
206| `claims` | map | The full decoded JWT claim set. Nested objects are accessible as nested maps. |
204| Variable | Type | Contents |
205| ----- | ----- | ----- |
206| `claims` | map | The full decoded JWT claim set. Nested objects are accessible as nested maps. |
207207 
208208Example:
209209 
from line 221
221221 
222222`POST /v1/oauth/token` returns errors in the standard [API error shape](https://platform.claude.com/docs/en/api/errors). The SDK reports an exchange failure as `WorkloadIdentityError` (ruby: `Anthropic::Credentials::WorkloadIdentityError`; go: `error`; java: `UnexpectedStatusCodeException`; csharp: `WorkloadIdentityException`; php: `OAuthException`), which gives the HTTP status and the error details from the response body. Except in C# and PHP, the SDK also gives the request ID: on the error, in the exception’s response headers, or in the error’s message.
223223 
224| Status | Error | Cause | Resolution |
225| ------ | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
226| 400 | `invalid_request_error` | `federation_rule_id` is malformed or a required request field is missing. | Check the `fdrl_` ID and that the request body includes all required fields. |
227| 400 | `invalid_request_error` | `workspace_id` is present but is not a well-formed `wrkspc_...` ID or the literal `default`. | Fix the `workspace_id` value. The response message names the expected format. |
228| 401 | `authentication_error` | The JWT `iss` claim does not equal the registered `issuer_url` exactly. | Compare byte-for-byte, including trailing slashes and scheme: `jq -rR 'split(".")[1] \| gsub("-";"+") \| gsub("_";"/") \| @base64d \| fromjson \| .iss' <<< "$JWT"`. |
229| 401 | `authentication_error` | JWKS fetch failed, JWKS is stale, or the JWT was signed with a key not in the JWKS. | For `inline` mode, update the issuer with the rotated keys. For `discovery` and `explicit_url`, confirm the JWKS endpoint is reachable on port 443. If the issuer recently rotated its signing key, see [Key rotation and caching](https://platform.claude.com/docs/en/manage-claude/wif-reference#key-rotation-and-caching). |
230| 401 | `authentication_error` | The JWT `exp` claim is in the past (beyond the 30-second skew window). | Confirm your identity provider is projecting a fresh token and the SDK is rereading the token file. |
231| 401 | `authentication_error` | The JWT was verified but its claims do not satisfy the rule’s `match` block. | Decode the JWT and compare each claim against the rule. `subject_prefix` is case-sensitive. `audience` requires an exact element match. |
232| 401 | `authentication_error` | The `federation_rule_id` does not exist or is archived, or the JWT is not authorized for it (one error covers these cases to prevent enumeration). | Confirm the rule ID in the Claude Console and that the rule has not been archived. |
233| 401 | `authentication_error` | The federation rule is enabled for all workspaces or for more than one, and the request omits `workspace_id`. The authentication history entry shows the reason `workspace_id_required`. | Set `ANTHROPIC_WORKSPACE_ID` (or the `workspace_id` body field on a raw request) to the `wrkspc_...` ID you want the token scoped to. With the `ant` CLI, set `workspace_id` in a federation profile and set `ANTHROPIC_PROFILE` to its name. See [Token exchange request](https://platform.claude.com/docs/en/manage-claude/wif-reference#token-exchange-request). |
224| Status | Error | Cause | Resolution |
225| ----- | ----- | ----- | ----- |
226| 400 | `invalid_request_error` | `federation_rule_id` is malformed or a required request field is missing. | Check the `fdrl_` ID and that the request body includes all required fields. |
227| 400 | `invalid_request_error` | `workspace_id` is present but is not a well-formed `wrkspc_...` ID or the literal `default`. | Fix the `workspace_id` value. The response message names the expected format. |
228| 401 | `authentication_error` | The JWT `iss` claim does not equal the registered `issuer_url` exactly. | Compare byte-for-byte, including trailing slashes and scheme: `jq -rR 'split(".")[1] \| gsub("-";"+") \| gsub("_";"/") \| @base64d \| fromjson \| .iss' <<< "$JWT"`. |
229| 401 | `authentication_error` | JWKS fetch failed, JWKS is stale, or the JWT was signed with a key not in the JWKS. | For `inline` mode, update the issuer with the rotated keys. For `discovery` and `explicit_url`, confirm the JWKS endpoint is reachable on port 443. If the issuer recently rotated its signing key, see [Key rotation and caching](https://platform.claude.com/docs/en/manage-claude/wif-reference#key-rotation-and-caching). |
230| 401 | `authentication_error` | The JWT `exp` claim is in the past (beyond the 30-second skew window). | Confirm your identity provider is projecting a fresh token and the SDK is rereading the token file. |
231| 401 | `authentication_error` | The JWT was verified but its claims do not satisfy the rule’s `match` block. | Decode the JWT and compare each claim against the rule. `subject_prefix` is case-sensitive. `audience` requires an exact element match. |
232| 401 | `authentication_error` | The `federation_rule_id` does not exist or is archived, or the JWT is not authorized for it (one error covers these cases to prevent enumeration). | Confirm the rule ID in the Claude Console and that the rule has not been archived. |
233| 401 | `authentication_error` | The federation rule is enabled for all workspaces or for more than one, and the request omits `workspace_id`. The authentication history entry shows the reason `workspace_id_required`. | Set `ANTHROPIC_WORKSPACE_ID` (or the `workspace_id` body field on a raw request) to the `wrkspc_...` ID you want the token scoped to. With the `ant` CLI, set `workspace_id` in a federation profile and set `ANTHROPIC_PROFILE` to its name. See [Token exchange request](https://platform.claude.com/docs/en/manage-claude/wif-reference#token-exchange-request). |
234234 
235235Every assertion denial returns the same opaque `401` `authentication_error` with the fixed message `Authentication failed`, regardless of which check failed. A distinguishable error would let a caller probe rule configuration. The [authentication history](https://platform.claude.com/settings/workload-identity-federation?tab=history) in the Claude Console records the deny reason on the attempt’s entry. For example, it shows `match_subject_prefix` when the `sub` claim fails the rule’s `subject_prefix`, or `workspace_id_required` when the rule spans multiple workspaces and the request names none. Requests rejected before the rule’s organization is confirmed (the `400 invalid_request_error` family in the previous table) leave no history entry. Their response messages name the problem directly. A `401` with no matching history entry usually means that Anthropic did not recognize the `federation_rule_id`.
236236 
237237### Common SDK-side failures
238238 
239| Symptom | Cause | Resolution |
240| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
241| SDK reports missing credentials instead of exchanging | One of `ANTHROPIC_FEDERATION_RULE_ID`, `ANTHROPIC_ORGANIZATION_ID`, or `ANTHROPIC_IDENTITY_TOKEN[_FILE]` is unset and no profile is active. | Set all three variables, or configure a profile. |
242| SDK authenticates with an API key instead of federating | `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN` is set and wins precedence. | Unset the key or token variable. |
243| File-not-found error on first request | The path in `ANTHROPIC_IDENTITY_TOKEN_FILE` does not exist. The SDK opens the file lazily at exchange time. | Confirm the projected-token volume is mounted and the path matches. |
244| Token exchange succeeds but a Claude API request returns 403 | The minted token’s scope does not grant access to that endpoint. | Check the rule’s `oauth_scope` against [OAuth scopes](https://platform.claude.com/docs/en/manage-claude/wif-reference#oauth-scopes). |
245| Authentication fails with empty credential | A credential environment variable is exported but set to an empty string. Empty values can win their precedence slot. | Unset the variable with `unset VAR` rather than `VAR=""`. |
239| Symptom | Cause | Resolution |
240| ----- | ----- | ----- |
241| SDK reports missing credentials instead of exchanging | One of `ANTHROPIC_FEDERATION_RULE_ID`, `ANTHROPIC_ORGANIZATION_ID`, or `ANTHROPIC_IDENTITY_TOKEN[_FILE]` is unset and no profile is active. | Set all three variables, or configure a profile. |
242| SDK authenticates with an API key instead of federating | `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN` is set and wins precedence. | Unset the key or token variable. |
243| File-not-found error on first request | The path in `ANTHROPIC_IDENTITY_TOKEN_FILE` does not exist. The SDK opens the file lazily at exchange time. | Confirm the projected-token volume is mounted and the path matches. |
244| Token exchange succeeds but a Claude API request returns 403 | The minted token’s scope does not grant access to that endpoint. | Check the rule’s `oauth_scope` against [OAuth scopes](https://platform.claude.com/docs/en/manage-claude/wif-reference#oauth-scopes). |
245| Authentication fails with empty credential | A credential environment variable is exported but set to an empty string. Empty values can win their precedence slot. | Unset the variable with `unset VAR` rather than `VAR=""`. |
246246 
247247## Troubleshoot a failed exchange
248248 
from line 292
292292 
293293When you register a federation issuer, the `jwks` field controls how Anthropic obtains the public keys used to verify JWT signatures from that issuer. Its `type` field selects the source mode:
294294 
295| `jwks.type` | `jwks` shape | Behavior | Use when |
296| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
297| `discovery` (default) | `{ "type": "discovery", "discovery_base": "https://..." }` (set the optional `discovery_base` when the discovery URL differs from `issuer_url`) | Anthropic fetches `<discovery_base or issuer_url>/.well-known/openid-configuration`, reads `jwks_uri` from the discovery document, and fetches the JWKS from there. | Your IdP serves a standard OIDC discovery document on the public internet. Most managed providers (EKS, GKE, Cloud Run, GitHub Actions, Entra ID) support this. |
298| `explicit_url` | `{ "type": "explicit_url", "url": "https://..." }` | Anthropic fetches the JWKS directly from `url`. Anthropic uses the `issuer_url` only for string comparison against the JWT `iss` claim and never connects to it. | Your IdP does not serve a discovery document, or discovery is internal-only but the JWKS is publicly reachable. |
299| `inline` | `{ "type": "inline", "keys": [...] }` | You supply the array of JWK objects inline (the `keys` array from the JWKS document, not the wrapper object). Anthropic makes no outbound request. Anthropic uses the `issuer_url` only for `iss` comparison. | Air-gapped environments, self-managed Kubernetes clusters with cluster-internal issuer URLs, or when you want explicit control over key rotation. |
295| `jwks.type` | `jwks` shape | Behavior | Use when |
296| ----- | ----- | ----- | ----- |
297| `discovery` (default) | `{ "type": "discovery", "discovery_base": "https://..." }` (set the optional `discovery_base` when the discovery URL differs from `issuer_url`) | Anthropic fetches `<discovery_base or issuer_url>/.well-known/openid-configuration`, reads `jwks_uri` from the discovery document, and fetches the JWKS from there. | Your IdP serves a standard OIDC discovery document on the public internet. Most managed providers (EKS, GKE, Cloud Run, GitHub Actions, Entra ID) support this. |
298| `explicit_url` | `{ "type": "explicit_url", "url": "https://..." }` | Anthropic fetches the JWKS directly from `url`. Anthropic uses the `issuer_url` only for string comparison against the JWT `iss` claim and never connects to it. | Your IdP does not serve a discovery document, or discovery is internal-only but the JWKS is publicly reachable. |
299| `inline` | `{ "type": "inline", "keys": [...] }` | You supply the array of JWK objects inline (the `keys` array from the JWKS document, not the wrapper object). Anthropic makes no outbound request. Anthropic uses the `issuer_url` only for `iss` comparison. | Air-gapped environments, self-managed Kubernetes clusters with cluster-internal issuer URLs, or when you want explicit control over key rotation. |
300300 
301301Each `type` takes its own companion fields, so those fields are mutually exclusive. Both `discovery` and `explicit_url` also accept an optional `ca_cert_pem` string for issuers that serve TLS from a private CA.
302302 
Feedback