Claude Platform Docs

組織

現在の組織を取得
$ ant organization retrieve
GET/v1/organizations/me

認証されたAPIキーに関連付けられた組織に関する情報を取得します。

Models
api_key_requester_unconfirmed_error_details: object{ error_code }
error_code: "api_key_requester_unconfirmed"
change_outcome_unknown_error_details: object{ error_code }
error_code: "change_outcome_unknown"
concurrent_membership_change_error_details: object{ error_code }
error_code: "concurrent_membership_change"
org_member_limit_exceeded_error_details: object{ error_code }
error_code: "org_member_limit_exceeded"
organization_info: object{ type: "organization", id, name }
type: "organization"

Object type.

For Organizations, this is always "organization".

id: string

ID of the Organization.

formatuuid
name: string

Name of the Organization.

organization_role: "admin" or "billing" or "claude_code_user" or 6 more
"admin"
"billing"
"claude_code_user"
"developer"
"managed"
"membership_admin"
"owner"
"primary_owner"
"user"
rbac_role_not_found_error_details: object{ error_code }
error_code: "rbac_role_not_found"
Errors
"org_member_limit_exceeded"⁠HTTP status 400

The organization has reached the member limit that Anthropic set for it. Pending invites count toward the limit.

details: object{ error_code }
error_code: "org_member_limit_exceeded"
"api_key_requester_unconfirmed"⁠HTTP status 403

The API could not confirm that this request came from your organization, so it refused a change to an API key. If you were updating an API key, the key did not change. If you were archiving a service account, it is archived, but some of its API keys are not. If you were removing a user, they are still a member, but they may be signed out and some of their API keys may be turned off. It is safe to send the same request again. If the error continues, contact Anthropic support and give them the request_id from this response.

details: object{ error_code }
error_code: "api_key_requester_unconfirmed"
"rbac_role_not_found"⁠HTTP status 404

No RBAC Role with this ID was found.

details: object{ error_code }
error_code: "rbac_role_not_found"
"concurrent_membership_change"⁠HTTP status 409

Another change to the organization's members is in progress. Retry the request once it completes.

details: object{ error_code }
error_code: "concurrent_membership_change"
"change_outcome_unknown"⁠HTTP status 503

Some of the request's changes may have been saved and others not. Send the same request again to finish it; changes already saved aren't repeated.

details: object{ error_code }
error_code: "change_outcome_unknown"

組織APIキー

APIキー一覧を取得
$ ant organization:api-keys list
GET/v1/organizations/api_keys
APIキーを取得(Admin API)
$ ant organization:api-keys retrieve
GET/v1/organizations/api_keys/{api_key_id}

組織内の単一のAPIキーに関する情報を、IDを指定して取得します。このAdmin APIエンドポイントにはAdmin APIキーが必要で、プログラムによるキー管理を目的としており、キーのシークレット値を返すことはありません。自分のAPIキーを表示または作成するには、Claude ConsoleのAPI キーにアクセスしてください。

APIキーを更新
$ ant organization:api-keys update
POST/v1/organizations/api_keys/{api_key_id}

組織外部キー

外部キーを作成
$ ant organization:external-keys create
POST/v1/organizations/external_keys

呼び出し元の組織が所有する外部キー設定を作成します。

外部キー一覧を取得
$ ant organization:external-keys list
GET/v1/organizations/external_keys

呼び出し元の組織内の外部キー設定を一覧表示します。

外部キーを取得
$ ant organization:external-keys retrieve
GET/v1/organizations/external_keys/{external_key_id}

呼び出し元の組織内の単一の外部キー設定をIDで取得します。

外部キーを更新
$ ant organization:external-keys update
POST/v1/organizations/external_keys/{external_key_id}

外部キー設定を部分的に更新します。省略されたフィールドは変更されません。

外部キーを削除
$ ant organization:external-keys delete
DELETE/v1/organizations/external_keys/{external_key_id}

外部キー設定を削除します。

外部キーを検証
$ ant organization:external-keys validate
POST/v1/organizations/external_keys/{external_key_id}/validate

顧客のKMSに対して外部キー設定を検証します。

組織フェデレーション発行者

フェデレーション発行者を作成
$ ant organization:federation:issuers create
POST/v1/organizations/federation_issuers

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

フェデレーション発行者一覧を取得
$ ant organization:federation:issuers list
GET/v1/organizations/federation_issuers

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

フェデレーション発行者を取得
$ ant organization:federation:issuers retrieve
GET/v1/organizations/federation_issuers/{federation_issuer_id}

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

フェデレーション発行者を更新
$ ant organization:federation:issuers update
POST/v1/organizations/federation_issuers/{federation_issuer_id}

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

フェデレーション発行者をアーカイブ
$ ant organization:federation:issuers archive
POST/v1/organizations/federation_issuers/{federation_issuer_id}/archive

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

組織フェデレーションルール

フェデレーションルールを作成
$ ant organization:federation:rules create
POST/v1/organizations/federation_rules

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

フェデレーションルール一覧を取得
$ ant organization:federation:rules list
GET/v1/organizations/federation_rules

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

フェデレーションルールを取得
$ ant organization:federation:rules retrieve
GET/v1/organizations/federation_rules/{federation_rule_id}

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

フェデレーションルールを更新
$ ant organization:federation:rules update
POST/v1/organizations/federation_rules/{federation_rule_id}

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

フェデレーションルールをアーカイブ
$ ant organization:federation:rules archive
POST/v1/organizations/federation_rules/{federation_rule_id}/archive

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

組織フェデレーションルールワークスペース

フェデレーションルールのワークスペースを追加
$ ant organization:federation:rules:workspaces add
POST/v1/organizations/federation_rules/{federation_rule_id}/workspaces

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

フェデレーションルールのワークスペース一覧を取得
$ ant organization:federation:rules:workspaces list
GET/v1/organizations/federation_rules/{federation_rule_id}/workspaces

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

フェデレーションルールのワークスペースを削除
$ ant organization:federation:rules:workspaces remove
DELETE/v1/organizations/federation_rules/{federation_rule_id}/workspaces/{workspace_id}

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

組織招待

招待を作成
$ ant organization:invites create
POST/v1/organizations/invites

メールでユーザーを組織に招待します。

招待一覧を取得
$ ant organization:invites list
GET/v1/organizations/invites

組織の招待を一覧表示します。

招待を取得
$ ant organization:invites retrieve
GET/v1/organizations/invites/{invite_id}

IDで招待を取得します。

招待を削除
$ ant organization:invites delete
DELETE/v1/organizations/invites/{invite_id}

保留中の招待を削除します。

サービスアカウントを作成
$ ant organization:service-accounts create
POST/v1/organizations/service_accounts

org:admin スコープを持つ OAuth アクセストークンが必要です。これは ant auth login --scope org:admin またはワークロード ID フェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin API で WIF を管理するを参照してください。

サービスアカウント一覧を取得
$ ant organization:service-accounts list
GET/v1/organizations/service_accounts

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

サービスアカウントを取得
$ ant organization:service-accounts retrieve
GET/v1/organizations/service_accounts/{service_account_id}

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

サービスアカウントを更新
$ ant organization:service-accounts update
POST/v1/organizations/service_accounts/{service_account_id}

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

サービスアカウントをアーカイブ
$ ant organization:service-accounts archive
POST/v1/organizations/service_accounts/{service_account_id}/archive

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

組織サービスアカウントワークスペース

サービスアカウントにワークスペースを追加
$ ant organization:service-accounts:workspaces add
POST/v1/organizations/service_accounts/{service_account_id}/workspaces

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

サービスアカウントのワークスペース一覧を取得
$ ant organization:service-accounts:workspaces list
GET/v1/organizations/service_accounts/{service_account_id}/workspaces

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

サービスアカウントからワークスペースを削除
$ ant organization:service-accounts:workspaces remove
DELETE/v1/organizations/service_accounts/{service_account_id}/workspaces/{workspace_id}

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

組織ユーザー

ユーザー一覧を取得
$ ant organization:users list
GET/v1/organizations/users

組織のメンバーを一覧表示します。

ユーザーを取得
$ ant organization:users retrieve
GET/v1/organizations/users/{user_id}

ユーザーIDで組織のメンバーを取得します。

ユーザーを更新
$ ant organization:users update
POST/v1/organizations/users/{user_id}

メンバーの組織ロールを更新します。

ユーザーを削除
$ ant organization:users remove
DELETE/v1/organizations/users/{user_id}

組織からメンバーを削除します。

ワークスペース一覧を取得
$ ant organization:workspaces list
GET/v1/organizations/workspaces
ワークスペースを作成
$ ant organization:workspaces create
POST/v1/organizations/workspaces
ワークスペースを取得
$ ant organization:workspaces retrieve
GET/v1/organizations/workspaces/{workspace_id}
ワークスペースを更新
$ ant organization:workspaces update
POST/v1/organizations/workspaces/{workspace_id}
ワークスペースをアーカイブ
$ ant organization:workspaces archive
POST/v1/organizations/workspaces/{workspace_id}/archive

組織ワークスペースレート制限

ワークスペースのレート制限一覧を取得
$ ant organization:workspaces:rate-limits list
GET/v1/organizations/workspaces/{workspace_id}/rate_limits

ワークスペースのレート制限を一覧表示します。

ワークスペースのレート制限を設定
$ ant organization:workspaces:rate-limits update
POST/v1/organizations/workspaces/{workspace_id}/rate_limits/{rate_limit_id}

ワークスペース内の1つのレート制限グループについて、レート制限のオーバーライドを設定またはクリアします。

組織ワークスペースメンバー

ワークスペースメンバー一覧を取得
$ ant organization:workspaces:members list
GET/v1/organizations/workspaces/{workspace_id}/members
ワークスペースメンバーを作成
$ ant organization:workspaces:members add
POST/v1/organizations/workspaces/{workspace_id}/members
ワークスペースメンバーを取得
$ ant organization:workspaces:members retrieve
GET/v1/organizations/workspaces/{workspace_id}/members/{user_id}
ワークスペースメンバーを更新
$ ant organization:workspaces:members update
POST/v1/organizations/workspaces/{workspace_id}/members/{user_id}
ワークスペースメンバーを削除
$ ant organization:workspaces:members remove
DELETE/v1/organizations/workspaces/{workspace_id}/members/{user_id}

組織ワークスペースサービスアカウント

サービスアカウントのワークスペースメンバー一覧を取得
$ ant organization:workspaces:service-accounts list
GET/v1/organizations/workspaces/{workspace_id}/service_accounts

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

サービスアカウントのワークスペースメンバーを作成
$ ant organization:workspaces:service-accounts add
POST/v1/organizations/workspaces/{workspace_id}/service_accounts

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

サービスアカウントのワークスペースメンバーを取得
$ ant organization:workspaces:service-accounts retrieve
GET/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

サービスアカウントのワークスペースメンバーを更新
$ ant organization:workspaces:service-accounts update
POST/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}

org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。

サービスアカウントのワークスペースメンバーを削除
$ ant organization:workspaces:service-accounts remove
DELETE/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}

org:admin スコープを持つ OAuth アクセストークンが必要です。このトークンは ant auth login --scope org:admin またはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin API で WIF を管理するを参照してください。

組織のレート制限を一覧表示
$ ant organization:rate-limits list
GET/v1/organizations/rate_limits

組織の Messages API のレート制限を一覧表示します。

コンプライアンス設定を取得
$ ant organization:compliance-settings retrieve
GET/v1/organizations/compliance_settings

組織のコンプライアンス設定を取得します。

コンプライアンス設定を更新
$ ant organization:compliance-settings update
POST/v1/organizations/compliance_settings

組織のコンプライアンス設定を更新します。

組織アナリティクスサマリー

アクティビティサマリーの取得
$ ant organization:analytics:summaries list
GET/v1/organizations/analytics/summaries

指定した期間における組織全体のアクティビティサマリーを取得します。

組織アナリティクスユーザー

ユーザーアクティビティの一覧を取得
$ ant organization:analytics:users list
GET/v1/organizations/analytics/users

指定した日のユーザーごとのアクティビティを、カーソルベースのページネーションで取得します。

組織アナリティクスアプリチャットプロジェクト

チャットプロジェクトの使用状況の取得
$ ant organization:analytics:apps:chat:projects list
GET/v1/organizations/analytics/apps/chat/projects

指定した日のプロジェクトごとのアクティビティを、カーソルベースのページネーションで取得します。

組織アナリティクスコネクター

コネクター使用量を取得
$ ant organization:analytics:connectors list
GET/v1/organizations/analytics/connectors

指定した日のコネクターごとの使用状況を、カーソルベースのページネーションで取得します。

組織アナリティクスプラグイン

プラグイン使用量を取得
$ ant organization:analytics:plugins list
GET/v1/organizations/analytics/plugins

指定した日のプラグインごとのインストールおよび呼び出しの使用状況を、ページネーション付きで取得します。

組織アナリティクススキル

スキル使用量を取得
$ ant organization:analytics:skills list
GET/v1/organizations/analytics/skills

指定した日のスキルごとの使用状況を、カーソルベースのページネーションで取得します。

組織アナリティクスArtifacts

Artifactsのアクティビティを取得
$ ant organization:analytics:artifacts list
GET/v1/organizations/analytics/artifacts

指定した日のアーティファクト作成アクティビティを、MIMEタイプごとに分類して取得します。

組織支出上限有効

有効な支出上限の一覧取得
$ ant organization:spend-limits:effective list
GET/v1/organizations/spend_limits/effective

各メンバーの実効支出上限と期間累計の支出を一覧表示します。

組織支出上限引き上げリクエスト

支出上限引き上げリクエストの一覧を取得
$ ant organization:spend-limits:increase-requests list
GET/v1/organizations/spend_limit_increase_requests

支出上限引き上げリクエストの一覧を、新しい順に取得します。

支出上限引き上げリクエストを取得
$ ant organization:spend-limits:increase-requests retrieve
GET/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}

支出上限引き上げリクエストを取得します。

支出上限引き上げリクエストを承認
$ ant organization:spend-limits:increase-requests approve
POST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/approve

保留中の支出上限引き上げリクエストを承認します。

支出上限引き上げリクエストを拒否
$ ant organization:spend-limits:increase-requests deny
POST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/deny

保留中の支出上限引き上げリクエストを拒否します。

RBACグループを作成
$ ant organization:rbac-groups create
POST/v1/organizations/rbac_groups

Claude Enterprise テナント内にRBACグループを作成します。API経由で作成されたグループのソースタイプは "direct" になります。

RBACグループの一覧を取得
$ ant organization:rbac-groups list
GET/v1/organizations/rbac_groups

Claude Enterprise テナント内のRBACグループを一覧表示します。

RBACグループを取得
$ ant organization:rbac-groups retrieve
GET/v1/organizations/rbac_groups/{rbac_group_id}

IDでRBACグループを取得します。

RBACグループを更新
$ ant organization:rbac-groups update
POST/v1/organizations/rbac_groups/{rbac_group_id}

RBACグループの名前を更新します。IDプロバイダーによってプロビジョニングされたグループ(ソースタイプ "scim")をAPIで変更することはできません。

RBACグループを削除
$ ant organization:rbac-groups delete
DELETE/v1/organizations/rbac_groups/{rbac_group_id}

RBACグループを削除します。ディレクトリが接続されている間は、IDプロバイダーによってプロビジョニングされたグループ(ソースタイプ "scim")をAPIで削除することはできません。

組織RBACグループメンバー

RBACグループメンバーの一覧を取得
$ ant organization:rbac-groups:members list
GET/v1/organizations/rbac_groups/{rbac_group_id}/members

RBACグループのメンバーを一覧表示します。

RBACグループメンバーの追加
$ ant organization:rbac-groups:members add
POST/v1/organizations/rbac_groups/{rbac_group_id}/members

RBACグループにユーザーを追加します。IDプロバイダーによってプロビジョニングされたグループ(ソースタイプ "scim")のメンバーシップをAPIで変更することはできません。

RBACグループメンバーの削除
$ ant organization:rbac-groups:members remove
DELETE/v1/organizations/rbac_groups/{rbac_group_id}/members/{user_id}

RBACグループからユーザーを削除します。IDプロバイダーによってプロビジョニングされたグループ(ソースタイプ "scim")のメンバーシップをAPIで変更することはできません。

組織RBACロール

RBACロールの一覧を取得
$ ant organization:rbac-roles list
GET/v1/organizations/rbac_roles

組織内のRBACロールを一覧表示します。

RBACロールを取得
$ ant organization:rbac-roles retrieve
GET/v1/organizations/rbac_roles/{rbac_role_id}

IDでRBACロールを取得します。

組織RBACロール権限

RBACロールの権限の一覧を取得
$ ant organization:rbac-roles:permissions list
GET/v1/organizations/rbac_roles/{rbac_role_id}/permissions

RBACロールが付与する権限を一覧表示します。