組織
取得目前組織
client.organization.retrieve(options?): OrganizationInfo擷取與已驗證 API 金鑰相關聯之組織的資訊。
Models
組織API 金鑰
擷取 API 金鑰(Admin API)
client.organization.apiKeys.retrieve(apiKeyID, options?): APIKey依 ID 查詢並擷取您組織中單一 API 金鑰的資訊。此 Admin API 端點需要 Admin API 金鑰,適用於以程式方式管理金鑰,且絕不會傳回金鑰的秘密值。若要檢視或建立您自己的 API 金鑰,請前往 Claude Console 中的 API 金鑰。
組織外部金鑰
建立外部金鑰
client.organization.externalKeys.create(body, options?): ExternalKey建立由呼叫者組織擁有的外部金鑰設定。
列出外部金鑰
client.organization.externalKeys.list(query?, options?): PageCursor<ExternalKey>列出呼叫者組織中的外部金鑰設定。
取得外部金鑰
client.organization.externalKeys.retrieve(externalKeyID, options?): ExternalKey依 ID 擷取呼叫者組織中的單一外部金鑰設定。
更新外部金鑰
client.organization.externalKeys.update(externalKeyID, body, options?): ExternalKey部分更新外部金鑰設定。省略的欄位將保持不變。
刪除外部金鑰
client.organization.externalKeys.delete(externalKeyID, options?): ExternalKeyDeleteResponse刪除外部金鑰設定。
驗證外部金鑰
client.organization.externalKeys.validate(externalKeyID, options?): ExternalKeyValidateResponse針對客戶的 KMS 驗證外部金鑰設定。
組織聯合簽發者
建立聯合簽發者
client.organization.federation.issuers.create(body, options?): FederationIssuer需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
列出聯合簽發者
client.organization.federation.issuers.list(query?, options?): PageCursor<FederationIssuer>需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
取得聯合簽發者
client.organization.federation.issuers.retrieve(federationIssuerID, options?): FederationIssuer需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
更新聯合簽發者
client.organization.federation.issuers.update(federationIssuerID, body, options?): FederationIssuer需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
封存聯合簽發者
client.organization.federation.issuers.archive(federationIssuerID, options?): FederationIssuer需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
組織聯合規則
建立聯合規則
client.organization.federation.rules.create(body, options?): FederationRule需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
列出聯合規則
client.organization.federation.rules.list(query?, options?): PageCursor<FederationRule>需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
取得聯合規則
client.organization.federation.rules.retrieve(federationRuleID, options?): FederationRule需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
更新聯合規則
client.organization.federation.rules.update(federationRuleID, body, options?): FederationRule需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
封存聯合規則
client.organization.federation.rules.archive(federationRuleID, options?): FederationRule需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
組織聯合規則工作區
新增聯合規則工作區
client.organization.federation.rules.workspaces.add(federationRuleID, body, options?): FederationRuleWorkspace需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
列出聯合規則工作區
client.organization.federation.rules.workspaces.list(federationRuleID, query?, options?): PageCursor<FederationRuleWorkspace>需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
移除聯合規則工作區
client.organization.federation.rules.workspaces.remove(workspaceID, params, options?): WorkspaceRemoveResponse需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
組織邀請
建立邀請
client.organization.invites.create(body, options?): OrganizationInvite透過電子郵件邀請使用者加入組織。
列出邀請
client.organization.invites.list(query?, options?): Page<OrganizationInvite>列出組織的邀請。
取得邀請
client.organization.invites.retrieve(inviteID, options?): OrganizationInvite依 ID 擷取邀請。
刪除邀請
client.organization.invites.delete(inviteID, options?): InviteDeleteResponse刪除待處理的邀請。
組織服務帳戶
建立服務帳戶
client.organization.serviceAccounts.create(body, options?): ServiceAccount需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
列出服務帳戶
client.organization.serviceAccounts.list(query?, options?): PageCursor<ServiceAccount>需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
取得服務帳戶
client.organization.serviceAccounts.retrieve(serviceAccountID, options?): ServiceAccount需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
更新服務帳戶
client.organization.serviceAccounts.update(serviceAccountID, body, options?): ServiceAccount需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
封存服務帳戶
client.organization.serviceAccounts.archive(serviceAccountID, options?): ServiceAccount需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
組織服務帳戶工作區
將工作區新增至服務帳戶
client.organization.serviceAccounts.workspaces.add(serviceAccountID, body, options?): ServiceAccountWorkspaceMember需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
列出服務帳戶的工作區
client.organization.serviceAccounts.workspaces.list(serviceAccountID, query?, options?): PageCursor<ServiceAccountWorkspaceMember>需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
從服務帳戶移除工作區
client.organization.serviceAccounts.workspaces.remove(workspaceID, params, options?): WorkspaceRemoveResponse需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
組織使用者
列出使用者
client.organization.users.list(query?, options?): Page<OrganizationUser>列出組織的成員。
取得使用者
client.organization.users.retrieve(userID, options?): OrganizationUser依使用者 ID 擷取組織成員。
更新使用者
client.organization.users.update(userID, body, options?): OrganizationUser更新成員的組織角色。
移除使用者
client.organization.users.remove(userID, options?): UserRemoveResponse從組織中移除成員。
組織工作區
組織工作區速率限制
列出工作區速率限制
client.organization.workspaces.rateLimits.list(workspaceID, query?, options?): PageCursor<WorkspaceRateLimit>列出工作區的速率限制。
組織工作區成員
列出工作區成員
client.organization.workspaces.members.list(workspaceID, query?, options?): Page<WorkspaceMember>建立工作區成員
client.organization.workspaces.members.add(workspaceID, body, options?): WorkspaceMember取得工作區成員
client.organization.workspaces.members.retrieve(userID, params, options?): WorkspaceMember更新工作區成員
client.organization.workspaces.members.update(userID, params, options?): WorkspaceMember刪除工作區成員
client.organization.workspaces.members.remove(userID, params, options?): MemberRemoveResponse組織工作區服務帳戶
列出服務帳戶工作區成員
client.organization.workspaces.serviceAccounts.list(workspaceID, query?, options?): PageCursor<ServiceAccountWorkspaceMember>需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
建立服務帳戶工作區成員
client.organization.workspaces.serviceAccounts.add(workspaceID, body, options?): ServiceAccountWorkspaceMember需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
取得服務帳戶工作區成員
client.organization.workspaces.serviceAccounts.retrieve(serviceAccountID, params, options?): ServiceAccountWorkspaceMember需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
更新服務帳戶工作區成員
client.organization.workspaces.serviceAccounts.update(serviceAccountID, params, options?): ServiceAccountWorkspaceMember需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
刪除服務帳戶工作區成員
client.organization.workspaces.serviceAccounts.remove(serviceAccountID, params, options?): ServiceAccountRemoveResponse需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
組織速率限制
列出組織速率限制
client.organization.rateLimits.list(query?, options?): PageCursor<OrganizationRateLimit>列出您組織的 Messages API 速率限制。
組織合規設定
取得合規設定
client.organization.complianceSettings.retrieve(options?): OrganizationComplianceSettings擷取您組織的合規設定。
更新合規設定
client.organization.complianceSettings.update(body, options?): OrganizationComplianceSettings更新您組織的合規設定。