Claude Platform Docs

組織

現在の組織を取得
client.Organization.Get(ctx) (*OrganizationInfo, error)
GET/v1/organizations/me

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

Models
type APIKeyRequesterUnconfirmedErrorDetails struct { ErrorCode }
ErrorCode APIKeyRequesterUnconfirmedErrorCode
type ChangeOutcomeUnknownErrorDetails struct { ErrorCode }
ErrorCode ChangeOutcomeUnknownErrorCode
type ConcurrentMembershipChangeErrorDetails struct { ErrorCode }
ErrorCode ConcurrentMembershipChangeErrorCode
type OrgMemberLimitExceededErrorDetails struct { ErrorCode }
ErrorCode OrgMemberLimitExceededErrorCode
type OrganizationInfo struct { Type: "organization"; ID; Name }
Type Organization

Object type.

For Organizations, this is always "organization".

defaultorganization
ID string

ID of the Organization.

formatuuid
Name string

Name of the Organization.

type OrganizationRole string
One of the following:
const OrganizationRoleAdmin OrganizationRole = "admin"
const OrganizationRoleBilling OrganizationRole = "billing"
const OrganizationRoleClaudeCodeUser OrganizationRole = "claude_code_user"
const OrganizationRoleDeveloper OrganizationRole = "developer"
const OrganizationRoleManaged OrganizationRole = "managed"
const OrganizationRoleMembershipAdmin OrganizationRole = "membership_admin"
const OrganizationRoleOwner OrganizationRole = "owner"
const OrganizationRolePrimaryOwner OrganizationRole = "primary_owner"
const OrganizationRoleUser OrganizationRole = "user"
type RBACRoleNotFoundErrorDetails struct { ErrorCode }
ErrorCode RBACRoleNotFoundErrorCode
Errors
const ErrorCodeOrgMemberLimitExceeded ErrorCode = "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.

const ErrorCodeAPIKeyRequesterUnconfirmed ErrorCode = "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.

const ErrorCodeRBACRoleNotFound ErrorCode = "rbac_role_not_found"⁠HTTP status 404

No RBAC Role with this ID was found.

const ErrorCodeConcurrentMembershipChange ErrorCode = "concurrent_membership_change"⁠HTTP status 409

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

const ErrorCodeChangeOutcomeUnknown ErrorCode = "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.

組織APIキー

APIキー一覧を取得
client.Organization.APIKeys.List(ctx, query) (*Page[APIKey], error)
GET/v1/organizations/api_keys
APIキーを取得(Admin API)
client.Organization.APIKeys.Get(ctx, apiKeyID) (*APIKey, error)
GET/v1/organizations/api_keys/{api_key_id}

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

APIキーを更新
client.Organization.APIKeys.Update(ctx, apiKeyID, body) (*APIKey, error)
POST/v1/organizations/api_keys/{api_key_id}

組織外部キー

外部キーを作成
client.Organization.ExternalKeys.New(ctx, body) (*ExternalKey, error)
POST/v1/organizations/external_keys

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

外部キー一覧を取得
client.Organization.ExternalKeys.List(ctx, query) (*PageCursor[ExternalKey], error)
GET/v1/organizations/external_keys

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

外部キーを取得
client.Organization.ExternalKeys.Get(ctx, externalKeyID) (*ExternalKey, error)
GET/v1/organizations/external_keys/{external_key_id}

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

外部キーを更新
client.Organization.ExternalKeys.Update(ctx, externalKeyID, body) (*ExternalKey, error)
POST/v1/organizations/external_keys/{external_key_id}

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

外部キーを削除
client.Organization.ExternalKeys.Delete(ctx, externalKeyID) (*OrganizationExternalKeyDeleteResponse, error)
DELETE/v1/organizations/external_keys/{external_key_id}

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

外部キーを検証
client.Organization.ExternalKeys.Validate(ctx, externalKeyID) (*OrganizationExternalKeyValidateResponse, error)
POST/v1/organizations/external_keys/{external_key_id}/validate

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

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

フェデレーション発行者を作成
client.Organization.Federation.Issuers.New(ctx, body) (*FederationIssuer, error)
POST/v1/organizations/federation_issuers

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

フェデレーション発行者一覧を取得
client.Organization.Federation.Issuers.List(ctx, query) (*PageCursor[FederationIssuer], error)
GET/v1/organizations/federation_issuers

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

フェデレーション発行者を取得
client.Organization.Federation.Issuers.Get(ctx, federationIssuerID) (*FederationIssuer, error)
GET/v1/organizations/federation_issuers/{federation_issuer_id}

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

フェデレーション発行者を更新
client.Organization.Federation.Issuers.Update(ctx, federationIssuerID, body) (*FederationIssuer, error)
POST/v1/organizations/federation_issuers/{federation_issuer_id}

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

フェデレーション発行者をアーカイブ
client.Organization.Federation.Issuers.Archive(ctx, federationIssuerID) (*FederationIssuer, error)
POST/v1/organizations/federation_issuers/{federation_issuer_id}/archive

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

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

フェデレーションルールを作成
client.Organization.Federation.Rules.New(ctx, body) (*FederationRule, error)
POST/v1/organizations/federation_rules

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

フェデレーションルール一覧を取得
client.Organization.Federation.Rules.List(ctx, query) (*PageCursor[FederationRule], error)
GET/v1/organizations/federation_rules

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

フェデレーションルールを取得
client.Organization.Federation.Rules.Get(ctx, federationRuleID) (*FederationRule, error)
GET/v1/organizations/federation_rules/{federation_rule_id}

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

フェデレーションルールを更新
client.Organization.Federation.Rules.Update(ctx, federationRuleID, body) (*FederationRule, error)
POST/v1/organizations/federation_rules/{federation_rule_id}

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

フェデレーションルールをアーカイブ
client.Organization.Federation.Rules.Archive(ctx, federationRuleID) (*FederationRule, error)
POST/v1/organizations/federation_rules/{federation_rule_id}/archive

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

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

フェデレーションルールのワークスペースを追加
client.Organization.Federation.Rules.Workspaces.Add(ctx, federationRuleID, body) (*FederationRuleWorkspace, error)
POST/v1/organizations/federation_rules/{federation_rule_id}/workspaces

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

フェデレーションルールのワークスペース一覧を取得
client.Organization.Federation.Rules.Workspaces.List(ctx, federationRuleID, query) (*PageCursor[FederationRuleWorkspace], error)
GET/v1/organizations/federation_rules/{federation_rule_id}/workspaces

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

フェデレーションルールのワークスペースを削除
client.Organization.Federation.Rules.Workspaces.Remove(ctx, workspaceID, body) (*OrganizationFederationRuleWorkspaceRemoveResponse, error)
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を管理するを参照してください。

組織招待

招待を作成
client.Organization.Invites.New(ctx, body) (*OrganizationInvite, error)
POST/v1/organizations/invites

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

招待一覧を取得
client.Organization.Invites.List(ctx, query) (*Page[OrganizationInvite], error)
GET/v1/organizations/invites

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

招待を取得
client.Organization.Invites.Get(ctx, inviteID) (*OrganizationInvite, error)
GET/v1/organizations/invites/{invite_id}

IDで招待を取得します。

招待を削除
client.Organization.Invites.Delete(ctx, inviteID) (*OrganizationInviteDeleteResponse, error)
DELETE/v1/organizations/invites/{invite_id}

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

サービスアカウントを作成
client.Organization.ServiceAccounts.New(ctx, body) (*ServiceAccount, error)
POST/v1/organizations/service_accounts

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

サービスアカウント一覧を取得
client.Organization.ServiceAccounts.List(ctx, query) (*PageCursor[ServiceAccount], error)
GET/v1/organizations/service_accounts

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

サービスアカウントを取得
client.Organization.ServiceAccounts.Get(ctx, serviceAccountID) (*ServiceAccount, error)
GET/v1/organizations/service_accounts/{service_account_id}

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

サービスアカウントを更新
client.Organization.ServiceAccounts.Update(ctx, serviceAccountID, body) (*ServiceAccount, error)
POST/v1/organizations/service_accounts/{service_account_id}

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

サービスアカウントをアーカイブ
client.Organization.ServiceAccounts.Archive(ctx, serviceAccountID) (*ServiceAccount, error)
POST/v1/organizations/service_accounts/{service_account_id}/archive

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

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

サービスアカウントにワークスペースを追加
client.Organization.ServiceAccounts.Workspaces.Add(ctx, serviceAccountID, body) (*ServiceAccountWorkspaceMember, error)
POST/v1/organizations/service_accounts/{service_account_id}/workspaces

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

サービスアカウントのワークスペース一覧を取得
client.Organization.ServiceAccounts.Workspaces.List(ctx, serviceAccountID, query) (*PageCursor[ServiceAccountWorkspaceMember], error)
GET/v1/organizations/service_accounts/{service_account_id}/workspaces

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

サービスアカウントからワークスペースを削除
client.Organization.ServiceAccounts.Workspaces.Remove(ctx, workspaceID, body) (*OrganizationServiceAccountWorkspaceRemoveResponse, error)
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を管理するを参照してください。

組織ユーザー

ユーザー一覧を取得
client.Organization.Users.List(ctx, query) (*Page[OrganizationUser], error)
GET/v1/organizations/users

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

ユーザーを取得
client.Organization.Users.Get(ctx, userID) (*OrganizationUser, error)
GET/v1/organizations/users/{user_id}

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

ユーザーを更新
client.Organization.Users.Update(ctx, userID, body) (*OrganizationUser, error)
POST/v1/organizations/users/{user_id}

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

ユーザーを削除
client.Organization.Users.Remove(ctx, userID) (*OrganizationUserRemoveResponse, error)
DELETE/v1/organizations/users/{user_id}

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

ワークスペース一覧を取得
client.Organization.Workspaces.List(ctx, query) (*Page[Workspace], error)
GET/v1/organizations/workspaces
ワークスペースを作成
client.Organization.Workspaces.New(ctx, body) (*Workspace, error)
POST/v1/organizations/workspaces
ワークスペースを取得
client.Organization.Workspaces.Get(ctx, workspaceID) (*Workspace, error)
GET/v1/organizations/workspaces/{workspace_id}
ワークスペースを更新
client.Organization.Workspaces.Update(ctx, workspaceID, body) (*Workspace, error)
POST/v1/organizations/workspaces/{workspace_id}
ワークスペースをアーカイブ
client.Organization.Workspaces.Archive(ctx, workspaceID) (*Workspace, error)
POST/v1/organizations/workspaces/{workspace_id}/archive

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

ワークスペースのレート制限一覧を取得
client.Organization.Workspaces.RateLimits.List(ctx, workspaceID, query) (*PageCursor[WorkspaceRateLimit], error)
GET/v1/organizations/workspaces/{workspace_id}/rate_limits

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

ワークスペースのレート制限を設定
client.Organization.Workspaces.RateLimits.Update(ctx, rateLimitID, params) (*WorkspaceRateLimit, error)
POST/v1/organizations/workspaces/{workspace_id}/rate_limits/{rate_limit_id}

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

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

ワークスペースメンバー一覧を取得
client.Organization.Workspaces.Members.List(ctx, workspaceID, query) (*Page[WorkspaceMember], error)
GET/v1/organizations/workspaces/{workspace_id}/members
ワークスペースメンバーを作成
client.Organization.Workspaces.Members.Add(ctx, workspaceID, body) (*WorkspaceMember, error)
POST/v1/organizations/workspaces/{workspace_id}/members
ワークスペースメンバーを取得
client.Organization.Workspaces.Members.Get(ctx, userID, query) (*WorkspaceMember, error)
GET/v1/organizations/workspaces/{workspace_id}/members/{user_id}
ワークスペースメンバーを更新
client.Organization.Workspaces.Members.Update(ctx, userID, params) (*WorkspaceMember, error)
POST/v1/organizations/workspaces/{workspace_id}/members/{user_id}
ワークスペースメンバーを削除
client.Organization.Workspaces.Members.Remove(ctx, userID, body) (*OrganizationWorkspaceMemberRemoveResponse, error)
DELETE/v1/organizations/workspaces/{workspace_id}/members/{user_id}

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

サービスアカウントのワークスペースメンバー一覧を取得
client.Organization.Workspaces.ServiceAccounts.List(ctx, workspaceID, query) (*PageCursor[ServiceAccountWorkspaceMember], error)
GET/v1/organizations/workspaces/{workspace_id}/service_accounts

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

サービスアカウントのワークスペースメンバーを作成
client.Organization.Workspaces.ServiceAccounts.Add(ctx, workspaceID, body) (*ServiceAccountWorkspaceMember, error)
POST/v1/organizations/workspaces/{workspace_id}/service_accounts

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

サービスアカウントのワークスペースメンバーを取得
client.Organization.Workspaces.ServiceAccounts.Get(ctx, serviceAccountID, query) (*ServiceAccountWorkspaceMember, error)
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を管理するを参照してください。

サービスアカウントのワークスペースメンバーを更新
client.Organization.Workspaces.ServiceAccounts.Update(ctx, serviceAccountID, params) (*ServiceAccountWorkspaceMember, error)
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を管理するを参照してください。

サービスアカウントのワークスペースメンバーを削除
client.Organization.Workspaces.ServiceAccounts.Remove(ctx, serviceAccountID, body) (*OrganizationWorkspaceServiceAccountRemoveResponse, error)
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 を管理するを参照してください。

組織のレート制限を一覧表示
client.Organization.RateLimits.List(ctx, query) (*PageCursor[OrganizationRateLimit], error)
GET/v1/organizations/rate_limits

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

コンプライアンス設定を取得
client.Organization.ComplianceSettings.Get(ctx) (*OrganizationComplianceSettings, error)
GET/v1/organizations/compliance_settings

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

コンプライアンス設定を更新
client.Organization.ComplianceSettings.Update(ctx, body) (*OrganizationComplianceSettings, error)
POST/v1/organizations/compliance_settings

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

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

アクティビティサマリーの取得
client.Organization.Analytics.Summaries.List(ctx, query) (*PageCursor[AnalyticsSingleDayActivitySummary], error)
GET/v1/organizations/analytics/summaries

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

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

ユーザーアクティビティの一覧を取得
client.Organization.Analytics.Users.List(ctx, query) (*PageCursor[AnalyticsUserActivity], error)
GET/v1/organizations/analytics/users

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

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

チャットプロジェクトの使用状況の取得
client.Organization.Analytics.Apps.Chat.Projects.List(ctx, query) (*PageCursor[AnalyticsProjectActivity], error)
GET/v1/organizations/analytics/apps/chat/projects

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

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

コネクター使用量を取得
client.Organization.Analytics.Connectors.List(ctx, query) (*PageCursor[AnalyticsConnectorActivity], error)
GET/v1/organizations/analytics/connectors

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

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

プラグイン使用量を取得
client.Organization.Analytics.Plugins.List(ctx, query) (*PageCursor[AnalyticsPluginActivity], error)
GET/v1/organizations/analytics/plugins

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

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

スキル使用量を取得
client.Organization.Analytics.Skills.List(ctx, query) (*PageCursor[AnalyticsSkillActivity], error)
GET/v1/organizations/analytics/skills

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

組織アナリティクスArtifacts

Artifactsのアクティビティを取得
client.Organization.Analytics.Artifacts.List(ctx, query) (*PageCursor[AnalyticsArtifactActivity], error)
GET/v1/organizations/analytics/artifacts

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

組織支出上限有効

有効な支出上限の一覧取得
client.Organization.SpendLimits.Effective.List(ctx, query) (*PageCursor[SpendSummary], error)
GET/v1/organizations/spend_limits/effective

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

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

支出上限引き上げリクエストの一覧を取得
client.Organization.SpendLimits.IncreaseRequests.List(ctx, query) (*PageCursor[SpendLimitIncreaseRequest], error)
GET/v1/organizations/spend_limit_increase_requests

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

支出上限引き上げリクエストを取得
client.Organization.SpendLimits.IncreaseRequests.Get(ctx, spendLimitIncreaseRequestID) (*SpendLimitIncreaseRequest, error)
GET/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}

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

支出上限引き上げリクエストを承認
client.Organization.SpendLimits.IncreaseRequests.Approve(ctx, spendLimitIncreaseRequestID, body) (*OrganizationSpendLimitIncreaseRequestApproveResponse, error)
POST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/approve

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

支出上限引き上げリクエストを拒否
client.Organization.SpendLimits.IncreaseRequests.Deny(ctx, spendLimitIncreaseRequestID, body) (*SpendLimitIncreaseRequest, error)
POST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/deny

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

RBACグループを作成
client.Organization.RBACGroups.New(ctx, body) (*RBACGroup, error)
POST/v1/organizations/rbac_groups

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

RBACグループの一覧を取得
client.Organization.RBACGroups.List(ctx, query) (*PageCursor[RBACGroup], error)
GET/v1/organizations/rbac_groups

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

RBACグループを取得
client.Organization.RBACGroups.Get(ctx, rbacGroupID) (*RBACGroup, error)
GET/v1/organizations/rbac_groups/{rbac_group_id}

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

RBACグループを更新
client.Organization.RBACGroups.Update(ctx, rbacGroupID, body) (*RBACGroup, error)
POST/v1/organizations/rbac_groups/{rbac_group_id}

RBACグループの名前を更新します。テナント内の組織がSCIMプロビジョニングを使用している間は、IDプロバイダーによってプロビジョニングされたグループ(ソースタイプ "scim")をAPIで変更することはできません。

RBACグループを削除
client.Organization.RBACGroups.Delete(ctx, rbacGroupID) (*DeletedRBACGroup, error)
DELETE/v1/organizations/rbac_groups/{rbac_group_id}

RBACグループを削除します。テナント内の組織がSCIMプロビジョニングを使用している間は、IDプロバイダーによってプロビジョニングされたグループ(ソースタイプ "scim")をAPIで削除することはできません。

組織RBACグループメンバー

RBACグループメンバーの一覧を取得
client.Organization.RBACGroups.Members.List(ctx, rbacGroupID, query) (*PageCursor[RBACGroupMember], error)
GET/v1/organizations/rbac_groups/{rbac_group_id}/members

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

RBACグループメンバーの追加
client.Organization.RBACGroups.Members.Add(ctx, rbacGroupID, body) (*RBACGroupMember, error)
POST/v1/organizations/rbac_groups/{rbac_group_id}/members

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

RBACグループメンバーの削除
client.Organization.RBACGroups.Members.Remove(ctx, userID, body) (*DeletedRBACGroupMember, error)
DELETE/v1/organizations/rbac_groups/{rbac_group_id}/members/{user_id}

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

組織RBACロール

RBACロールの一覧を取得
client.Organization.RBACRoles.List(ctx, query) (*PageCursor[RBACRole], error)
GET/v1/organizations/rbac_roles

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

RBACロールを取得
client.Organization.RBACRoles.Get(ctx, rbacRoleID) (*RBACRole, error)
GET/v1/organizations/rbac_roles/{rbac_role_id}

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

組織RBACロール権限

RBACロールの権限の一覧を取得
client.Organization.RBACRoles.Permissions.List(ctx, rbacRoleID, query) (*PageCursor[RBACRolePermission], error)
GET/v1/organizations/rbac_roles/{rbac_role_id}/permissions

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