組織
現在の組織を取得
$client->organization->retrieve(): OrganizationInfo認証されたAPIキーに関連付けられた組織に関する情報を取得します。
Models
組織APIキー
APIキー一覧を取得
$client->organization->apiKeys->list(?string afterID, ?string beforeID, ?string createdByUserID, ?int limit, ?Status status, ?string workspaceID): Page<APIKey>APIキーを取得(Admin API)
$client->organization->apiKeys->retrieve(string apiKeyID): APIKey組織内の単一のAPIキーに関する情報を、そのIDで検索して取得します。このAdmin APIエンドポイントにはAdmin APIキーが必要で、プログラムによるキー管理を目的としており、キーのシークレット値を返すことはありません。自分のAPIキーを表示または作成するには、Claude ConsoleのAPI キーにアクセスしてください。
組織外部キー
外部キーを作成
$client->organization->externalKeys->create(ProviderConfig providerConfig, ?string displayName, ?Geo geo, ?string userProfileID): ExternalKey呼び出し元の組織が所有する外部キー設定を作成します。
外部キー一覧を取得
$client->organization->externalKeys->list(?int limit, ?string page): PageCursor<ExternalKey>呼び出し元の組織内の外部キー設定を一覧表示します。
外部キーを取得
$client->organization->externalKeys->retrieve(string externalKeyID): ExternalKey呼び出し元の組織内の単一の外部キー設定をIDで取得します。
外部キーを更新
$client->organization->externalKeys->update(string externalKeyID, ?string displayName, ?Geo geo, ?ProviderConfig providerConfig): ExternalKey外部キー設定を部分的に更新します。省略されたフィールドは変更されません。
外部キーを削除
$client->organization->externalKeys->delete(string externalKeyID): ExternalKeyDeleteResponse外部キー設定を削除します。
外部キーを検証
$client->organization->externalKeys->validate(string externalKeyID): ExternalKeyValidateResponse顧客のKMSに対して外部キー設定を検証します。
組織フェデレーション発行者
フェデレーション発行者を作成
$client->organization->federation->issuers->create(string issuerURL, string name, ?bool checkJTI, ?JWKS jwks, ?int maxJWTLifetimeSeconds): FederationIssuerorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
フェデレーション発行者一覧を取得
$client->organization->federation->issuers->list(?bool includeArchived, ?int limit, ?string page): PageCursor<FederationIssuer>org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
フェデレーション発行者を取得
$client->organization->federation->issuers->retrieve(string federationIssuerID): FederationIssuerorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
フェデレーション発行者を更新
$client->organization->federation->issuers->update(string federationIssuerID, ?bool checkJTI, ?string issuerURL, ?JWKS jwks, ?bool jwksPollingDisabled, ?int maxJWTLifetimeSeconds, ?string name): FederationIssuerorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
フェデレーション発行者をアーカイブ
$client->organization->federation->issuers->archive(string federationIssuerID): FederationIssuerorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
組織フェデレーションルール
フェデレーションルールを作成
$client->organization->federation->rules->create(string issuerID, FederationRuleMatch match, string name, string oauthScope, ServiceAccountTarget target, ?bool appliesToAllWorkspaces, ?string description, ?int tokenLifetimeSeconds, ?string workspaceID): FederationRuleorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
フェデレーションルール一覧を取得
$client->organization->federation->rules->list(?bool includeArchived, ?string issuerID, ?int limit, ?string page): PageCursor<FederationRule>org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
フェデレーションルールを取得
$client->organization->federation->rules->retrieve(string federationRuleID): FederationRuleorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
フェデレーションルールを更新
$client->organization->federation->rules->update(string federationRuleID, ?bool appliesToAllWorkspaces, ?string description, ?FederationRuleMatch match, ?string name, ?string oauthScope, ?ServiceAccountTarget target, ?int tokenLifetimeSeconds, ?string workspaceID): FederationRuleorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
フェデレーションルールをアーカイブ
$client->organization->federation->rules->archive(string federationRuleID): FederationRuleorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
組織フェデレーションルールワークスペース
フェデレーションルールのワークスペースを追加
$client->organization->federation->rules->workspaces->add(string federationRuleID, string workspaceID): FederationRuleWorkspaceorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
フェデレーションルールのワークスペース一覧を取得
$client->organization->federation->rules->workspaces->list(string federationRuleID, ?int limit, ?string page): PageCursor<FederationRuleWorkspace>org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
フェデレーションルールのワークスペースを削除
$client->organization->federation->rules->workspaces->remove(string workspaceID, string federationRuleID): WorkspaceRemoveResponseorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
組織招待
招待を作成
$client->organization->invites->create(string email, Role role, ?list<string> rbacGroupIDs): OrganizationInviteメールでユーザーを組織に招待します。
招待一覧を取得
$client->organization->invites->list(?string afterID, ?string beforeID, ?string email, ?int limit, ?list<string> roles, ?list<Status> statuses): Page<OrganizationInvite>組織の招待を一覧表示します。
招待を取得
$client->organization->invites->retrieve(string inviteID): OrganizationInviteIDで招待を取得します。
招待を削除
$client->organization->invites->delete(string inviteID): InviteDeleteResponse保留中の招待を削除します。
サービスアカウントを作成
$client->organization->serviceAccounts->create(string name, ?string description, ?OrganizationRole organizationRole): ServiceAccountorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
サービスアカウント一覧を取得
$client->organization->serviceAccounts->list(?bool includeArchived, ?int limit, ?string page): PageCursor<ServiceAccount>org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
サービスアカウントを取得
$client->organization->serviceAccounts->retrieve(string serviceAccountID): ServiceAccountorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
サービスアカウントを更新
$client->organization->serviceAccounts->update(string serviceAccountID, ?string description, ?OrganizationRole organizationRole): ServiceAccountorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
サービスアカウントをアーカイブ
$client->organization->serviceAccounts->archive(string serviceAccountID): ServiceAccountorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
組織サービスアカウントワークスペース
サービスアカウントにワークスペースを追加
$client->organization->serviceAccounts->workspaces->add(string serviceAccountID, string workspaceID, NoBillingWorkspaceRole workspaceRole): ServiceAccountWorkspaceMemberorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
サービスアカウントのワークスペース一覧を取得
$client->organization->serviceAccounts->workspaces->list(string serviceAccountID, ?int limit, ?string page): PageCursor<ServiceAccountWorkspaceMember>org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
サービスアカウントからワークスペースを削除
$client->organization->serviceAccounts->workspaces->remove(string workspaceID, string serviceAccountID): WorkspaceRemoveResponseorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
組織ユーザー
ユーザー一覧を取得
$client->organization->users->list(?string afterID, ?string beforeID, ?string email, ?int limit, ?list<string> roles): Page<OrganizationUser>組織のメンバーを一覧表示します。
ユーザーを取得
$client->organization->users->retrieve(string userID): OrganizationUserユーザーIDで組織のメンバーを取得します。
ユーザーを更新
$client->organization->users->update(string userID, Role role): OrganizationUserメンバーの組織ロールを更新します。
ユーザーを削除
$client->organization->users->remove(string userID): UserRemoveResponse組織からメンバーを削除します。
組織ワークスペース
ワークスペース一覧を取得
$client->organization->workspaces->list(?string afterID, ?string beforeID, ?bool includeArchived, ?bool includeDefault, ?int limit): Page<Workspace>ワークスペースを作成
$client->organization->workspaces->create(string name, ?DataResidencyCreateConfig dataResidency, ?string displayColor, ?string externalKeyID, ?array<string,string> tags, ?string userProfileID): Workspaceワークスペースを取得
$client->organization->workspaces->retrieve(string workspaceID): Workspaceワークスペースを更新
$client->organization->workspaces->update(string workspaceID, ?DataResidencyUpdateConfig dataResidency, ?string displayColor, ?string externalKeyID, ?string name, ?array<string,string> tags, ?string userProfileID): Workspaceワークスペースをアーカイブ
$client->organization->workspaces->archive(string workspaceID): Workspace組織ワークスペースレート制限
ワークスペースのレート制限一覧を取得
$client->organization->workspaces->rateLimits->list(string workspaceID, ?GroupType groupType, ?bool includeInherited, ?int limit, ?string page): PageCursor<WorkspaceRateLimit>ワークスペースのレート制限を一覧表示します。
ワークスペースのレート制限を設定
$client->organization->workspaces->rateLimits->update(string rateLimitID, string workspaceID, list<WorkspaceRateLimitUpdateValue> limits): WorkspaceRateLimitワークスペース内の1つのレート制限グループについて、レート制限のオーバーライドを設定またはクリアします。
組織ワークスペースメンバー
ワークスペースメンバー一覧を取得
$client->organization->workspaces->members->list(string workspaceID, ?string afterID, ?string beforeID, ?int limit): Page<WorkspaceMember>ワークスペースメンバーを作成
$client->organization->workspaces->members->add(string workspaceID, string userID, NoBillingWorkspaceRole workspaceRole): WorkspaceMemberワークスペースメンバーを取得
$client->organization->workspaces->members->retrieve(string userID, string workspaceID): WorkspaceMemberワークスペースメンバーを更新
$client->organization->workspaces->members->update(string userID, string workspaceID, WorkspaceRole workspaceRole): WorkspaceMemberワークスペースメンバーを削除
$client->organization->workspaces->members->remove(string userID, string workspaceID): MemberRemoveResponse組織ワークスペースサービスアカウント
サービスアカウントのワークスペースメンバー一覧を取得
$client->organization->workspaces->serviceAccounts->list(string workspaceID, ?int limit, ?string page): PageCursor<ServiceAccountWorkspaceMember>org:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
サービスアカウントのワークスペースメンバーを作成
$client->organization->workspaces->serviceAccounts->add(string workspaceID, string serviceAccountID, NoBillingWorkspaceRole workspaceRole): ServiceAccountWorkspaceMemberorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
サービスアカウントのワークスペースメンバーを取得
$client->organization->workspaces->serviceAccounts->retrieve(string serviceAccountID, string workspaceID): ServiceAccountWorkspaceMemberorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
サービスアカウントのワークスペースメンバーを更新
$client->organization->workspaces->serviceAccounts->update(string serviceAccountID, string workspaceID, NoBillingWorkspaceRole workspaceRole): ServiceAccountWorkspaceMemberorg:adminスコープを持つOAuthアクセストークンが必要です。このトークンはant auth login --scope org:adminまたはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin APIでWIFを管理するを参照してください。
サービスアカウントのワークスペースメンバーを削除
$client->organization->workspaces->serviceAccounts->remove(string serviceAccountID, string workspaceID): ServiceAccountRemoveResponseorg:admin スコープを持つ OAuth アクセストークンが必要です。このトークンは ant auth login --scope org:admin またはワークロードアイデンティティフェデレーションルールから取得します。Admin APIキーは受け付けられません。Admin API で WIF を管理するを参照してください。
組織レート制限
組織のレート制限を一覧表示
$client->organization->rateLimits->list(?GroupType groupType, ?int limit, ?string model, ?string page): PageCursor<OrganizationRateLimit>組織の Messages API のレート制限を一覧表示します。
コンプライアンス設定を取得
$client->organization->complianceSettings->retrieve(): OrganizationComplianceSettings組織のコンプライアンス設定を取得します。
コンプライアンス設定を更新
$client->organization->complianceSettings->update(ComplianceSettingsStateParam state): OrganizationComplianceSettings組織のコンプライアンス設定を更新します。
組織アナリティクスサマリー
アクティビティサマリーの取得
$client->organization->analytics->summaries->list(\Datetime startingDate, ?\Datetime endingDate, ?list<string> filter, ?int limit, ?string page): PageCursor<AnalyticsSingleDayActivitySummary>指定した期間における組織全体のアクティビティサマリーを取得します。
組織アナリティクスユーザー
ユーザーアクティビティの一覧を取得
$client->organization->analytics->users->list(?\Datetime date, ?\Datetime endingDate, ?list<string> filter, ?list<AnalyticsUserGroupBy> groupBy, ?int limit, ?AnalyticsOrder order, ?string orderBy, ?string page, ?\Datetime startingDate): PageCursor<AnalyticsUserActivity>指定した日のユーザーごとのアクティビティを、カーソルベースのページネーションで取得します。
組織アナリティクスアプリチャットプロジェクト
チャットプロジェクトの使用状況の取得
$client->organization->analytics->apps->chat->projects->list(?\Datetime date, ?\Datetime endingDate, ?list<string> filter, ?list<AnalyticsProjectGroupBy> groupBy, ?int limit, ?AnalyticsOrder order, ?string orderBy, ?string page, ?\Datetime startingDate): PageCursor<AnalyticsProjectActivity>指定した日のプロジェクトごとのアクティビティを、カーソルベースのページネーションで取得します。
組織アナリティクスコネクター
コネクター使用量を取得
$client->organization->analytics->connectors->list(?\Datetime date, ?\Datetime endingDate, ?list<string> filter, ?list<AnalyticsConnectorGroupBy> groupBy, ?int limit, ?AnalyticsOrder order, ?string orderBy, ?string page, ?\Datetime startingDate): PageCursor<AnalyticsConnectorActivity>指定した日のコネクターごとの使用状況を、カーソルベースのページネーションで取得します。
組織アナリティクスプラグイン
プラグイン使用量を取得
$client->organization->analytics->plugins->list(?\Datetime date, ?\Datetime endingDate, ?list<string> filter, ?list<AnalyticsPluginGroupBy> groupBy, ?int limit, ?AnalyticsOrder order, ?string orderBy, ?string page, ?\Datetime startingDate): PageCursor<AnalyticsPluginActivity>指定した日のプラグインごとのインストールおよび呼び出しの使用状況を、ページネーション付きで取得します。
組織アナリティクススキル
スキル使用量を取得
$client->organization->analytics->skills->list(?\Datetime date, ?\Datetime endingDate, ?list<string> filter, ?list<AnalyticsSkillGroupBy> groupBy, ?int limit, ?AnalyticsOrder order, ?string orderBy, ?string page, ?\Datetime startingDate): PageCursor<AnalyticsSkillActivity>指定した日のスキルごとの使用状況を、カーソルベースのページネーションで取得します。
組織アナリティクスArtifacts
Artifactsのアクティビティを取得
$client->organization->analytics->artifacts->list(\Datetime date, ?list<string> filter, ?list<AnalyticsArtifactGroupBy> groupBy, ?int limit, ?string page): PageCursor<AnalyticsArtifactActivity>指定した日のアーティファクト作成アクティビティを、MIMEタイプごとに分類して取得します。
組織支出上限有効
有効な支出上限の一覧取得
$client->organization->spendLimits->effective->list(?int limit, ?string page, ?list<SpendLimitPeriod> period, ?list<string> userIDs): PageCursor<SpendSummary>各メンバーの実効支出上限と期間累計の支出を一覧表示します。
組織支出上限引き上げリクエスト
支出上限引き上げリクエストの一覧を取得
$client->organization->spendLimits->increaseRequests->list(?list<string> actorIDs, ?int limit, ?string page, ?list<SpendLimitIncreaseRequestStatus> status): PageCursor<SpendLimitIncreaseRequest>支出上限引き上げリクエストの一覧を、新しい順に取得します。
支出上限引き上げリクエストを取得
$client->organization->spendLimits->increaseRequests->retrieve(string spendLimitIncreaseRequestID): SpendLimitIncreaseRequest支出上限引き上げリクエストを取得します。
支出上限引き上げリクエストを承認
$client->organization->spendLimits->increaseRequests->approve(string spendLimitIncreaseRequestID, string amount, ?SpendLimitPeriod period, ?bool suppressNotification): IncreaseRequestApproveResponse保留中の支出上限引き上げリクエストを承認します。
支出上限引き上げリクエストを拒否
$client->organization->spendLimits->increaseRequests->deny(string spendLimitIncreaseRequestID, ?bool suppressNotification): SpendLimitIncreaseRequest保留中の支出上限引き上げリクエストを拒否します。
組織RBACグループ
RBACグループを作成
$client->organization->rbacGroups->create(string name): RBACGroupClaude Enterprise テナント内にRBACグループを作成します。API経由で作成されたグループのソースタイプは "direct" になります。
RBACグループの一覧を取得
$client->organization->rbacGroups->list(?int limit, ?string page): PageCursor<RBACGroup>Claude Enterprise テナント内のRBACグループを一覧表示します。
RBACグループを取得
$client->organization->rbacGroups->retrieve(string rbacGroupID): RBACGroupIDでRBACグループを取得します。
RBACグループを更新
$client->organization->rbacGroups->update(string rbacGroupID, ?string name): RBACGroupRBACグループの名前を更新します。テナント内の組織がSCIMプロビジョニングを使用している間は、IDプロバイダーによってプロビジョニングされたグループ(ソースタイプ "scim")をAPIで変更することはできません。
RBACグループを削除
$client->organization->rbacGroups->delete(string rbacGroupID): DeletedRBACGroupRBACグループを削除します。テナント内の組織がSCIMプロビジョニングを使用している間は、IDプロバイダーによってプロビジョニングされたグループ(ソースタイプ "scim")をAPIで削除することはできません。
組織RBACグループメンバー
RBACグループメンバーの一覧を取得
$client->organization->rbacGroups->members->list(string rbacGroupID, ?int limit, ?string page): PageCursor<RBACGroupMember>RBACグループのメンバーを一覧表示します。
RBACグループメンバーの追加
$client->organization->rbacGroups->members->add(string rbacGroupID, string userID): RBACGroupMemberRBACグループにユーザーを追加します。テナント内の組織がSCIMプロビジョニングを使用している間は、IDプロバイダーによってプロビジョニングされたグループ(ソースタイプ "scim")のメンバーシップをAPIで変更することはできません。
RBACグループメンバーの削除
$client->organization->rbacGroups->members->remove(string userID, string rbacGroupID): DeletedRBACGroupMemberRBACグループからユーザーを削除します。テナント内の組織がSCIMプロビジョニングを使用している間は、IDプロバイダーによってプロビジョニングされたグループ(ソースタイプ "scim")のメンバーシップをAPIで変更することはできません。
組織RBACロール
RBACロールの一覧を取得
$client->organization->rbacRoles->list(?int limit, ?string page): PageCursor<RBACRole>組織内のRBACロールを一覧表示します。
RBACロールを取得
$client->organization->rbacRoles->retrieve(string rbacRoleID): RBACRoleIDでRBACロールを取得します。
組織RBACロール権限
RBACロールの権限の一覧を取得
$client->organization->rbacRoles->permissions->list(string rbacRoleID, ?int limit, ?string page): PageCursor<RBACRolePermission>RBACロールが付与する権限を一覧表示します。