claude-tag-api changedmanage-claude/claude-tag-api
Nearest release: v2.1.330, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+113added
Lines−113removed
From line
24
where the diff opens
First seen
23 Oct 2026
this site's first read of the page
Recorded edits8to this page, all time
The whole hunk
from line 24, old and new numbered
/
from line 24
2424
2525The API exposes 14 endpoints across four resources:
2626
27| Resource | Endpoints |
28| --------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
29| **Slack channels:** set a channel up, list the channels of a workspace or find one by its Slack IDs, read one, change its settings, remove it | `POST /v1/organizations/claude_tag/slack_channels`<br />`GET /v1/organizations/claude_tag/slack_channels`<br />`GET /v1/organizations/claude_tag/slack_channels/{id}`<br />`POST /v1/organizations/claude_tag/slack_channels/{id}`<br />`DELETE /v1/organizations/claude_tag/slack_channels/{id}` |
30| **Slack workspaces:** list your workspaces or find one by its Slack ID, read one, change its settings | `GET /v1/organizations/claude_tag/slack_workspaces`<br />`GET /v1/organizations/claude_tag/slack_workspaces/{id}`<br />`POST /v1/organizations/claude_tag/slack_workspaces/{id}` |
31| **Bundles:** list your organization’s Access bundles, read one (read-only) | `GET /v1/organizations/claude_tag/bundles`<br />`GET /v1/organizations/claude_tag/bundles/{bundle_id}` |
32| **Bundle targets:** list where a Bundle is attached, attach it to a channel or workspace, read one attachment, detach it | `GET /v1/organizations/claude_tag/bundles/{bundle_id}/targets`<br />`POST /v1/organizations/claude_tag/bundles/{bundle_id}/targets`<br />`GET /v1/organizations/claude_tag/bundles/{bundle_id}/targets/{target_id}`<br />`DELETE /v1/organizations/claude_tag/bundles/{bundle_id}/targets/{target_id}` |
27| Resource | Endpoints |
28| ----- | ----- |
29| **Slack channels:** set a channel up, list the channels of a workspace or find one by its Slack IDs, read one, change its settings, remove it | `POST /v1/organizations/claude_tag/slack_channels`<br />`GET /v1/organizations/claude_tag/slack_channels`<br />`GET /v1/organizations/claude_tag/slack_channels/{id}`<br />`POST /v1/organizations/claude_tag/slack_channels/{id}`<br />`DELETE /v1/organizations/claude_tag/slack_channels/{id}` |
30| **Slack workspaces:** list your workspaces or find one by its Slack ID, read one, change its settings | `GET /v1/organizations/claude_tag/slack_workspaces`<br />`GET /v1/organizations/claude_tag/slack_workspaces/{id}`<br />`POST /v1/organizations/claude_tag/slack_workspaces/{id}` |
31| **Bundles:** list your organization’s Access bundles, read one (read-only) | `GET /v1/organizations/claude_tag/bundles`<br />`GET /v1/organizations/claude_tag/bundles/{bundle_id}` |
32| **Bundle targets:** list where a Bundle is attached, attach it to a channel or workspace, read one attachment, detach it | `GET /v1/organizations/claude_tag/bundles/{bundle_id}/targets`<br />`POST /v1/organizations/claude_tag/bundles/{bundle_id}/targets`<br />`GET /v1/organizations/claude_tag/bundles/{bundle_id}/targets/{target_id}`<br />`DELETE /v1/organizations/claude_tag/bundles/{bundle_id}/targets/{target_id}` |
3333
3434This release covers Slack. Connecting and disconnecting a Slack workspace or Enterprise Grid, your organization’s Slack defaults, creating and editing Access bundles, spend limits, and every Claude Tag setting other than the five in [Settings](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#settings) stay in claude.ai.
3535
from line 179
179179
180180## Scopes
181181
182| Scope | Grants |
183| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
184| `read:claude_tag` | Every `GET` endpoint on this page. |
182| Scope | Grants |
183| ----- | ----- |
184| `read:claude_tag` | Every `GET` endpoint on this page. |
185185| `write:claude_tag` | Every `POST` and `DELETE` endpoint on this page. It does not grant reads, although the response to a change holds the changed resource. |
186186
187187A key can carry both scopes. An integration that looks a channel up and then changes it needs both. No other scope grants access to these endpoints, and a key created in the Claude Console does not work here.
from line 192
192192
193193### Names on this page and in claude.ai
194194
195| This API | claude.ai and Slack |
196| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
197| Slack workspace | A Slack workspace. Slack’s own API calls it a team, so Slack’s own workspace ID on this page is the team ID there. It is unrelated to a Claude Platform workspace, whose IDs start with `wrkspc_`. |
198| Slack defaults | **Default Slack access**: the settings that apply to every workspace and channel. An organization owner changes them in claude.ai; this API shows where a channel or workspace inherits from them. |
199| Settings level | A [scope](https://claude.com/docs/claude-tag/admins/customize): a channel, a workspace, or the Slack defaults |
200| Bundle | An Access bundle ([Claude Tag glossary](https://claude.com/docs/claude-tag/concepts/glossary#access-bundle)) |
201| `enabled` | The **Enable Claude Tag in Slack** toggle |
202| `instructions` | **Custom instructions** |
203| `model` | **Model** |
204| `environment_id` | **Environment** |
205| `guest_policy` | **How should Claude work in channels with guests**: `restrict` is **Restrict**, `channel_only` is **Channel only**, and `allow` is **Full access** |
195| This API | claude.ai and Slack |
196| ----- | ----- |
197| Slack workspace | A Slack workspace. Slack’s own API calls it a team, so Slack’s own workspace ID on this page is the team ID there. It is unrelated to a Claude Platform workspace, whose IDs start with `wrkspc_`. |
198| Slack defaults | **Default Slack access**: the settings that apply to every workspace and channel. An organization owner changes them in claude.ai; this API shows where a channel or workspace inherits from them. |
199| Settings level | A [scope](https://claude.com/docs/claude-tag/admins/customize): a channel, a workspace, or the Slack defaults |
200| Bundle | An Access bundle ([Claude Tag glossary](https://claude.com/docs/claude-tag/concepts/glossary#access-bundle)) |
201| `enabled` | The **Enable Claude Tag in Slack** toggle |
202| `instructions` | **Custom instructions** |
203| `model` | **Model** |
204| `environment_id` | **Environment** |
205| `guest_policy` | **How should Claude work in channels with guests**: `restrict` is **Restrict**, `channel_only` is **Channel only**, and `allow` is **Full access** |
206206
207207### Set-up channels and workspaces
208208
from line 221
221221
222222You know a channel by the IDs Slack shows you. Look its `id` up once with [Find a channel by its Slack IDs](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#find-a-channel-by-its-slack-ids), then store and use the `id`.
223223
224| ID | Prefix | Where it appears |
225| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
226| Slack channel resource | `slch_` | `id` on a channel; `slack_channel_id` in request bodies and responses |
227| Slack workspace resource | `slws_` | `id` on a workspace; `slack_workspace_id` in request bodies and responses |
228| Bundle | `capp_` | `id` on a Bundle; `{bundle_id}` in paths |
229| Bundle target | `btgt_` | `id` on a Bundle target; `{target_id}` in paths |
230| Slack’s own workspace ID | `T`, or `E` for a Grid’s own ID (see [Set-up channels and workspaces](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#set-up-channels-and-workspaces)) | `slack.workspace_id`; the `slack_workspace_id` query parameter |
231| Slack’s own channel ID | `C` or `G` | `slack.channel_id`; the `slack_channel_id` query parameter |
224| ID | Prefix | Where it appears |
225| ----- | ----- | ----- |
226| Slack channel resource | `slch_` | `id` on a channel; `slack_channel_id` in request bodies and responses |
227| Slack workspace resource | `slws_` | `id` on a workspace; `slack_workspace_id` in request bodies and responses |
228| Bundle | `capp_` | `id` on a Bundle; `{bundle_id}` in paths |
229| Bundle target | `btgt_` | `id` on a Bundle target; `{target_id}` in paths |
230| Slack’s own workspace ID | `T`, or `E` for a Grid’s own ID (see [Set-up channels and workspaces](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#set-up-channels-and-workspaces)) | `slack.workspace_id`; the `slack_workspace_id` query parameter |
231| Slack’s own channel ID | `C` or `G` | `slack.channel_id`; the `slack_channel_id` query parameter |
232232
233233<Warning>
234234 `slack_channel_id` and `slack_workspace_id` each mean two things. In a **query parameter** each is Slack’s own ID (`C05HJKL6MNP`, `T01ABCD2EFG`). In a **request body or a response** each is the `id` this API issues (`slch_...`, `slws_...`). Slack’s own IDs in a body or a response are always under `slack`.
from line 242
242242
243243Each settings level stores the same five settings, all optional:
244244
245| Setting | Type | Description |
246| ---------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
247| `enabled` | boolean | Whether Claude is on. |
248| `instructions` | string | Standing guidance Claude reads in every session. At most 8,192 characters after leading and trailing white space is trimmed. Blank text clears the setting. |
249| `model` | string | The model new sessions start on: a [model ID](https://platform.claude.com/docs/en/models/overview) your organization can use with Claude Tag. At most 128 characters. |
250| `environment_id` | string | The environment sessions run in: an active environment of your organization, prefixed `env_`, or a self-hosted runner pool of your organization that every member may use, prefixed `ccpool_`. |
251| `guest_policy` | object | What Claude does in a channel while a Slack guest is in it, for everyone in the channel: `{"type": "allow"}` (Claude answers), `{"type": "restrict"}` (Claude does not answer), or `{"type": "channel_only"}` (Claude answers with only the Bundles attached to the channel itself; if `channel_only` is not available to your organization, a request that sets it returns `400`). See [Restrict guest channels](https://claude.com/docs/claude-tag/admins/restrict-access#restrict-guest-channels) for what it means in channels shared through Slack Connect or across an Enterprise Grid. |
245| Setting | Type | Description |
246| ----- | ----- | ----- |
247| `enabled` | boolean | Whether Claude is on. |
248| `instructions` | string | Standing guidance Claude reads in every session. At most 8,192 characters after leading and trailing white space is trimmed. Blank text clears the setting. |
249| `model` | string | The model new sessions start on: a [model ID](https://platform.claude.com/docs/en/models/overview) your organization can use with Claude Tag. At most 128 characters. |
250| `environment_id` | string | The environment sessions run in: an active environment of your organization, prefixed `env_`, or a self-hosted runner pool of your organization that every member may use, prefixed `ccpool_`. |
251| `guest_policy` | object | What Claude does in a channel while a Slack guest is in it, for everyone in the channel: `{"type": "allow"}` (Claude answers), `{"type": "restrict"}` (Claude does not answer), or `{"type": "channel_only"}` (Claude answers with only the Bundles attached to the channel itself; if `channel_only` is not available to your organization, a request that sets it returns `400`). See [Restrict guest channels](https://claude.com/docs/claude-tag/admins/restrict-access#restrict-guest-channels) for what it means in channels shared through Slack Connect or across an Enterprise Grid. |
252252
253253`model` and `environment_id` are checked when you write them and not again: if the model or environment later changes, responses keep returning the stored value.
254254
from line 265
265265
266266Each setting is resolved on its own:
267267
268| Setting | Rule | When no level sets it |
269| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- |
270| `enabled` | The nearest level that sets it determines the value, so `true` on a channel turns Claude on there even when its workspace stores `false`. | `true` |
271| `instructions` | Additive. The text of every level that sets it is joined, broadest first, with a blank line between. | `null` |
272| `model` | The nearest level that sets it determines the value. | `null`: Claude uses the product’s default model |
273| `environment_id` | The nearest level that sets it determines the value. | `null` |
274| `guest_policy` | The nearest level that sets it determines the value. | `restrict` |
268| Setting | Rule | When no level sets it |
269| ----- | ----- | ----- |
270| `enabled` | The nearest level that sets it determines the value, so `true` on a channel turns Claude on there even when its workspace stores `false`. | `true` |
271| `instructions` | Additive. The text of every level that sets it is joined, broadest first, with a blank line between. | `null` |
272| `model` | The nearest level that sets it determines the value. | `null`: Claude uses the product’s default model |
273| `environment_id` | The nearest level that sets it determines the value. | `null` |
274| `guest_policy` | The nearest level that sets it determines the value. | `restrict` |
275275
276276For example, an organization stores instructions on its Slack defaults, turns Claude off on a workspace, and sets a model on one channel of that workspace. Read with `include_inherited=true`, the channel shows the three values and where each comes from:
277277
from line 312
312312
313313A source is one of:
314314
315| `type` | Meaning |
316| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
317| `slack_channel` | The channel, named in `slack_channel_id`. |
318| `slack_workspace` | The workspace, named in `slack_workspace_id`. |
319| `slack_parent_channel` | The parent of a code channel, named in `slack_channel_id`. A code channel is one that was started from another channel. While the parent is a public channel in the same workspace, it sits between the channel and the workspace and contributes `instructions` and `environment_id` only. |
320| `slack_grid_channel` | The same Slack channel as set up under another workspace of its Slack Enterprise Grid, named by Slack’s own IDs under `slack`. It contributes `enabled` only: when neither the channel nor its workspace sets `enabled`, a `true` stored for the channel under another workspace of the Grid applies. |
321| `slack_default` | Your organization’s Slack defaults, which have no ID. |
322| `default` | No level sets a value, so the built-in default applies. |
315| `type` | Meaning |
316| ----- | ----- |
317| `slack_channel` | The channel, named in `slack_channel_id`. |
318| `slack_workspace` | The workspace, named in `slack_workspace_id`. |
319| `slack_parent_channel` | The parent of a code channel, named in `slack_channel_id`. A code channel is one that was started from another channel. While the parent is a public channel in the same workspace, it sits between the channel and the workspace and contributes `instructions` and `environment_id` only. |
320| `slack_grid_channel` | The same Slack channel as set up under another workspace of its Slack Enterprise Grid, named by Slack’s own IDs under `slack`. It contributes `enabled` only: when neither the channel nor its workspace sets `enabled`, a `true` stored for the channel under another workspace of the Grid applies. |
321| `slack_default` | Your organization’s Slack defaults, which have no ID. |
322| `default` | No level sets a value, so the built-in default applies. |
323323
324324`sources.instructions` lists every level that contributes text, broadest first, which is the order of their text in `settings.instructions`, and is empty when none does. It says whose text comes first, not where one level’s text ends: to get one level’s own text, read that channel or workspace without `include_inherited`, or, for the Slack defaults, look in claude.ai. A source that names a channel or workspace always carries its ID, which is never `null`: an `id` of this API in `slack_channel_id` or `slack_workspace_id`, or, on `slack_grid_channel`, Slack’s own IDs under `slack` as on a channel object.
325325
from line 384
384384
385385The channel object describes one Slack channel:
386386
387| Field | Description |
388| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
389| `type` | `slack_channel`. |
390| `id` | Prefixed `slch_`. See [IDs](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#ids). |
391| `slack` | Slack’s own IDs: `workspace_id` for the workspace the channel is in, and `channel_id` for the channel. |
392| `settings` | What the channel itself stores, or, with `include_inherited=true`, what applies in it. Always present, with all five [settings](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#settings); one that is not set is `null`. See [Stored and inherited values](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#stored-and-inherited-values). |
393| `sources` | For each setting, the level that the value in `settings` comes from. Always present. |
394| `created_at` | When the channel was set up. |
395| `updated_at` | When Claude Tag’s record of the channel last changed. It moves on every change to a setting, here, in claude.ai, or in Slack, and can also move for a change that no response here shows. Treat a later value as a reason to read the channel again, not as proof that a setting changed. Attaching or detaching a Bundle does not by itself move it. |
387| Field | Description |
388| ----- | ----- |
389| `type` | `slack_channel`. |
390| `id` | Prefixed `slch_`. See [IDs](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#ids). |
391| `slack` | Slack’s own IDs: `workspace_id` for the workspace the channel is in, and `channel_id` for the channel. |
392| `settings` | What the channel itself stores, or, with `include_inherited=true`, what applies in it. Always present, with all five [settings](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#settings); one that is not set is `null`. See [Stored and inherited values](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#stored-and-inherited-values). |
393| `sources` | For each setting, the level that the value in `settings` comes from. Always present. |
394| `created_at` | When the channel was set up. |
395| `updated_at` | When Claude Tag’s record of the channel last changed. It moves on every change to a setting, here, in claude.ai, or in Slack, and can also move for a change that no response here shows. Treat a later value as a reason to read the channel again, not as proof that a setting changed. Attaching or detaching a Bundle does not by itself move it. |
396396
397397An `id` that is not a valid `slch_` identifier returns `400`. A valid one that names no channel of your organization returns `404`.
398398
from line 1569
15691569
15701570A Bundle is what claude.ai calls an [Access bundle](https://claude.com/docs/claude-tag/admins/add-connections): a named set of access, such as connectors, repositories, and credentials, that Claude can use in a channel or workspace. Organization owners create, edit, and delete Bundles in claude.ai. This API lists them and attaches them. It returns a Bundle’s name and description and never what the Bundle grants.
15711571
1572| Field | Description |
1573| -------------------------- | ------------------------------------------------ |
1574| `type` | `bundle`. |
1575| `id` | Prefixed `capp_`. |
1576| `display_name` | The Bundle’s name. |
1577| `description` | What the Bundle is for. `null` when it has none. |
1578| `created_at`, `updated_at` | When the Bundle was created and last changed. |
1572| Field | Description |
1573| ----- | ----- |
1574| `type` | `bundle`. |
1575| `id` | Prefixed `capp_`. |
1576| `display_name` | The Bundle’s name. |
1577| `description` | What the Bundle is for. `null` when it has none. |
1578| `created_at`, `updated_at` | When the Bundle was created and last changed. |
15791579
15801580A `bundle_id` that is not a valid `capp_` identifier returns `400`. A valid one that does not exist or belongs to another organization returns `404`, whatever else the request holds. Bundles that Claude Tag manages for itself are not listed and return `404`.
15811581
from line 1786
17861786
17871787A Bundle target is the record of one Bundle attached to one channel or one workspace. A Bundle attached to a workspace can be used in the workspace and in every channel in it. A Bundle attached to a channel can be used in that channel only.
17881788
1789| Field | Description |
1790| -------------------- | ------------------------------------------------------------------------------------------------------- |
1791| `type` | `slack_channel` or `slack_workspace`. |
1792| `id` | Prefixed `btgt_`. It is the `{target_id}` in paths, and is never the channel’s or workspace’s own `id`. |
1793| `slack_channel_id` | On a `slack_channel` target: the channel’s `id`, prefixed `slch_`. |
1794| `slack_workspace_id` | On a `slack_workspace` target: the workspace’s `id`, prefixed `slws_`. |
1795| `created_at` | When the Bundle was attached. |
1789| Field | Description |
1790| ----- | ----- |
1791| `type` | `slack_channel` or `slack_workspace`. |
1792| `id` | Prefixed `btgt_`. It is the `{target_id}` in paths, and is never the channel’s or workspace’s own `id`. |
1793| `slack_channel_id` | On a `slack_channel` target: the channel’s `id`, prefixed `slch_`. |
1794| `slack_workspace_id` | On a `slack_workspace` target: the workspace’s `id`, prefixed `slws_`. |
1795| `created_at` | When the Bundle was attached. |
17961796
17971797A Bundle is attached to a channel or workspace at most once, and the same pair always has the same `id`, also after a detach and a new attach. The `id` is opaque: get it from the response to an attach or from the list. A Bundle target does not hold its Bundle’s `id`, which its paths also need, so keep the two together.
17981798
from line 2442
24422442
24432443Requests are limited for each organization, in two budgets that all of your organization’s keys share and that are separate from your organization’s other Admin API limits. Each budget allows a burst and then refills at a steady rate:
24442444
2445| Budget | Requests | Burst | Refill |
2446| ------- | ------------------------- | ----- | ------------ |
2447| Reads | Every `GET` | 120 | 2 per second |
2448| Changes | Every `POST` and `DELETE` | 60 | 1 per second |
2445| Budget | Requests | Burst | Refill |
2446| ----- | ----- | ----- | ----- |
2447| Reads | Every `GET` | 120 | 2 per second |
2448| Changes | Every `POST` and `DELETE` | 60 | 1 per second |
24492449
24502450Requests over a budget return **429 Too Many Requests** with a `retry-after` header: wait that many seconds, then send the request again. A request that got as far as its budget, whatever its outcome, gets the `anthropic-ratelimit-requests-limit`, `anthropic-ratelimit-requests-remaining`, and `anthropic-ratelimit-requests-reset` headers for that budget; a request refused before that, such as for its key, scope, or headers, or because the API, changes, or new storage are not enabled for your organization, gets none.
24512451
from line 2459
24592459
24602460Error 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.
24612461
2462| Status | Meaning |
2463| ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2464| 400 | Invalid input, or the operation does not apply to this channel, workspace, or Bundle (see each endpoint’s section). |
2465| 401 | Missing `x-api-key` header, or the key is not recognized. |
2466| 403 | The key is not an organization-level scoped key, is missing the required scope, or your organization cannot make this change. |
2467| 404 | Resource not found, or not your organization’s. 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. |
2468| 409 | Something else changed or removed the resource while the request ran. Nothing the request asked for was done: no setting stored, nothing attached, detached, or removed. The one exception is a setup request, which can have set the channel up before its `settings` met the conflict (`slack_channel_set_up_settings_conflict`). Read the resource again and resend the request if it is still needed. |
2469| 429 | Rate limit exceeded. See [Rate limiting](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#rate-limiting). |
2470| 500 | Internal error. |
2471| 503 | Temporary. On a change, it does not say whether the change was stored. Every change is safe to repeat, so send the request again unchanged. If a resent `DELETE` then returns `404`, the channel or Bundle target is already gone. |
2462| Status | Meaning |
2463| ----- | ----- |
2464| 400 | Invalid input, or the operation does not apply to this channel, workspace, or Bundle (see each endpoint’s section). |
2465| 401 | Missing `x-api-key` header, or the key is not recognized. |
2466| 403 | The key is not an organization-level scoped key, is missing the required scope, or your organization cannot make this change. |
2467| 404 | Resource not found, or not your organization’s. 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. |
2468| 409 | Something else changed or removed the resource while the request ran. Nothing the request asked for was done: no setting stored, nothing attached, detached, or removed. The one exception is a setup request, which can have set the channel up before its `settings` met the conflict (`slack_channel_set_up_settings_conflict`). Read the resource again and resend the request if it is still needed. |
2469| 429 | Rate limit exceeded. See [Rate limiting](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#rate-limiting). |
2470| 500 | Internal error. |
2471| 503 | Temporary. On a change, it does not say whether the change was stored. Every change is safe to repeat, so send the request again unchanged. If a resent `DELETE` then returns `404`, the channel or Bundle target is already gone. |
24722472
24732473When one status has several causes that you would handle differently, the error also carries `error.details.error_code`:
24742474
from line 2487
24872487}
24882488```
24892489
2490| `error_code` | Status | Meaning and what to do |
2491| -------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2492| `organization_level_scoped_api_key_required` | 403 | The credential is not a scoped Admin API key that belongs to the organization as a whole. Ask your primary owner for one. |
2493| `api_key_scope_missing` | 403 | The key lacks `read:claude_tag` or `write:claude_tag`, whichever the endpoint requires. |
2494| `claude_tag_writes_not_enabled` | 403 | Your organization can read through this API but is not enabled for changes. |
2495| `compliance_configuration_restricted` | 403 | Your organization has a compliance configuration under which Claude Tag stores nothing new, such as zero data retention. Setting a channel up, updating settings (even to clear them), and attaching a Bundle are refused. Detaching a Bundle and removing a channel are not, and such an organization can [remove](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#remove-a-channel) a channel even while Claude is on in it. |
2496| `environment_not_found` | 404 | `environment_id` names no environment or runner pool your organization can use here. The `id` in the path is fine. |
2497| `environment_archived` | 400 | `environment_id` names an archived environment. |
2498| `runner_pool_restricted` | 400 | The request would put a settings level on a restricted runner pool, or changes or clears `environment_id` on a settings level that stores one. An organization owner makes that change in claude.ai. See [Settings](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#settings). |
2499| `slack_channel_set_up_settings_refused` | 400 | The request set the channel up, then `settings` was refused. `details.slack_channel_id` is the channel. See [Set up a channel](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#set-up-a-channel). |
2500| `slack_channel_set_up_environment_not_found` | 404 | The request set the channel up, then `environment_id` was not found. `details.slack_channel_id` is the channel. See [Set up a channel](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#set-up-a-channel). |
2501| `slack_channel_set_up_settings_conflict` | 409 | The request set the channel up, then another change overlapped `settings`. Nothing of `settings` was stored. `details.slack_channel_id` is the channel. See [Set up a channel](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#set-up-a-channel). |
2502| `slack_channel_enabled` | 400 | Claude is on in the channel (`enabled` resolves to `true`), so it cannot be removed. Set `enabled` to `false` first. See [Remove a channel](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#remove-a-channel). |
2490| `error_code` | Status | Meaning and what to do |
2491| ----- | ----- | ----- |
2492| `organization_level_scoped_api_key_required` | 403 | The credential is not a scoped Admin API key that belongs to the organization as a whole. Ask your primary owner for one. |
2493| `api_key_scope_missing` | 403 | The key lacks `read:claude_tag` or `write:claude_tag`, whichever the endpoint requires. |
2494| `claude_tag_writes_not_enabled` | 403 | Your organization can read through this API but is not enabled for changes. |
2495| `compliance_configuration_restricted` | 403 | Your organization has a compliance configuration under which Claude Tag stores nothing new, such as zero data retention. Setting a channel up, updating settings (even to clear them), and attaching a Bundle are refused. Detaching a Bundle and removing a channel are not, and such an organization can [remove](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#remove-a-channel) a channel even while Claude is on in it. |
2496| `environment_not_found` | 404 | `environment_id` names no environment or runner pool your organization can use here. The `id` in the path is fine. |
2497| `environment_archived` | 400 | `environment_id` names an archived environment. |
2498| `runner_pool_restricted` | 400 | The request would put a settings level on a restricted runner pool, or changes or clears `environment_id` on a settings level that stores one. An organization owner makes that change in claude.ai. See [Settings](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#settings). |
2499| `slack_channel_set_up_settings_refused` | 400 | The request set the channel up, then `settings` was refused. `details.slack_channel_id` is the channel. See [Set up a channel](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#set-up-a-channel). |
2500| `slack_channel_set_up_environment_not_found` | 404 | The request set the channel up, then `environment_id` was not found. `details.slack_channel_id` is the channel. See [Set up a channel](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#set-up-a-channel). |
2501| `slack_channel_set_up_settings_conflict` | 409 | The request set the channel up, then another change overlapped `settings`. Nothing of `settings` was stored. `details.slack_channel_id` is the channel. See [Set up a channel](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#set-up-a-channel). |
2502| `slack_channel_enabled` | 400 | Claude is on in the channel (`enabled` resolves to `true`), so it cannot be removed. Set `enabled` to `false` first. See [Remove a channel](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#remove-a-channel). |
25032503
25042504New codes may be added. Treat a code you do not recognize the way you treat its status. A `404` with no `error_code` has one of two causes. Either something the request names was not found (an `id` in the path, or a Slack channel or workspace in the body or the query), or every endpoint reads as nonexistent because the request omits the `anthropic-beta` value or the API is not enabled for your organization. To tell them apart, [list your workspaces](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#list-workspaces) with the same key and headers: that request names nothing, so it returns `404` only in the second case.
25052505
from line 2507
25072507
25082508Every change through this API is recorded on your organization’s [Compliance API 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 events are the ones the feed records when the same change is made in claude.ai, so one query finds a change whichever way it was made.
25092509
2510| Event | Emitted when |
2511| --------------------------------- | ----------------------------------------------------------------------------------- |
2512| `ccr_agent_created` | A channel is set up. |
2513| `ccr_agent_updated` | A setting changes on a channel or a workspace. |
2514| `ccr_agent_deleted` | A channel is removed. Its Bundle targets go with it and emit no event of their own. |
2515| `ccr_agent_proxy_profile_bound` | A Bundle is attached. |
2516| `ccr_agent_proxy_profile_unbound` | A Bundle is detached. |
2510| Event | Emitted when |
2511| ----- | ----- |
2512| `ccr_agent_created` | A channel is set up. |
2513| `ccr_agent_updated` | A setting changes on a channel or a workspace. |
2514| `ccr_agent_deleted` | A channel is removed. Its Bundle targets go with it and emit no event of their own. |
2515| `ccr_agent_proxy_profile_bound` | A Bundle is attached. |
2516| `ccr_agent_proxy_profile_unbound` | A Bundle is detached. |
25172517
25182518The events name a channel or workspace by an identifier of the feed’s own, `agent_id` (prefixed `cagt_`), which no response of this API holds, so you cannot yet match an event to a channel’s or workspace’s `id`. The two Bundle events name the Bundle in `profile_id` and the channel or workspace, by the same `agent_id`, in `scope_id`.
25192519
25202520A `ccr_agent_updated` event lists what changed in `updated_fields`, under the feed’s own names:
25212521
2522| Setting | Name in `updated_fields` |
2523| ---------------- | ------------------------ |
2524| `enabled` | `slackbot_version` |
2525| `instructions` | `system_prompt_addendum` |
2526| `model` | `default_model` |
2522| Setting | Name in `updated_fields` |
2523| ----- | ----- |
2524| `enabled` | `slackbot_version` |
2525| `instructions` | `system_prompt_addendum` |
2526| `model` | `default_model` |
25272527| `environment_id` | `default_environment_id` |
2528| `guest_policy` | `guest_policy` |
2528| `guest_policy` | `guest_policy` |
25292529
25302530`updated_fields` can also hold `is_virtual`, which names no setting. It appears beside the names of the changed settings in the event for a change through this API that is the first thing anyone stores on the channel or workspace: a channel that Claude’s first use set up, or that this API set up with no `settings`, or a workspace in which Claude was never used, and on which nobody has yet stored a setting or attached a Bundle, here or in claude.ai. The `model` a code channel starts with does not count as stored. Attaching a Bundle records only `ccr_agent_proxy_profile_bound`.
25312531
No line in this hunk matches that.