Organization
Get Current Organization
BetaOrganization Beta.Organization.Retrieve(parameters, cancellationToken = default)Retrieve information about the organization associated with the authenticated API key.
Models
OrganizationAPI Keys
List API Keys
ApiKeyListPage Beta.Organization.ApiKeys.List(parameters, cancellationToken = default)Retrieve API Key (Admin API)
BetaApiKey Beta.Organization.ApiKeys.Retrieve(parameters, cancellationToken = default)Retrieve information about a single API key in your organization, looked up by its ID. This Admin API endpoint requires an Admin API key, is intended for programmatic key management, and never returns the key's secret value. To view or create your own API keys, go to API keys in the Claude Console.
Update API Key
BetaApiKey Beta.Organization.ApiKeys.Update(parameters, cancellationToken = default)OrganizationExternal Keys
Create External Key
BetaExternalKey Beta.Organization.ExternalKeys.Create(parameters, cancellationToken = default)Create an external key config owned by the caller's organization.
List External Keys
ExternalKeyListPage Beta.Organization.ExternalKeys.List(parameters, cancellationToken = default)List external key configs in the caller's organization.
Get External Key
BetaExternalKey Beta.Organization.ExternalKeys.Retrieve(parameters, cancellationToken = default)Retrieve a single external key config in the caller's organization by ID.
Update External Key
BetaExternalKey Beta.Organization.ExternalKeys.Update(parameters, cancellationToken = default)Partially update an external key config. Omitted fields are left unchanged.
Delete External Key
ExternalKeyDeleteResponse Beta.Organization.ExternalKeys.Delete(parameters, cancellationToken = default)Delete an external key config.
Validate External Key
ExternalKeyValidateResponse Beta.Organization.ExternalKeys.Validate(parameters, cancellationToken = default)Validate an external key config against the customer's KMS.
OrganizationFederationIssuers
Create Federation Issuer
BetaFederationIssuer Beta.Organization.Federation.Issuers.Create(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
List Federation Issuers
IssuerListPage Beta.Organization.Federation.Issuers.List(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Get Federation Issuer
BetaFederationIssuer Beta.Organization.Federation.Issuers.Retrieve(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Update Federation Issuer
BetaFederationIssuer Beta.Organization.Federation.Issuers.Update(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Archive Federation Issuer
BetaFederationIssuer Beta.Organization.Federation.Issuers.Archive(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
OrganizationFederationRules
Create Federation Rule
BetaFederationRule Beta.Organization.Federation.Rules.Create(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
List Federation Rules
RuleListPage Beta.Organization.Federation.Rules.List(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Get Federation Rule
BetaFederationRule Beta.Organization.Federation.Rules.Retrieve(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Update Federation Rule
BetaFederationRule Beta.Organization.Federation.Rules.Update(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Archive Federation Rule
BetaFederationRule Beta.Organization.Federation.Rules.Archive(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
OrganizationFederationRulesWorkspaces
Add Federation Rule Workspace
BetaFederationRuleWorkspace Beta.Organization.Federation.Rules.Workspaces.Add(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
List Federation Rule Workspaces
WorkspaceListPage Beta.Organization.Federation.Rules.Workspaces.List(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Remove Federation Rule Workspace
WorkspaceRemoveResponse Beta.Organization.Federation.Rules.Workspaces.Remove(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
OrganizationInvites
Create Invite
BetaOrganizationInvite Beta.Organization.Invites.Create(parameters, cancellationToken = default)Invite a user to join the organization by email.
List Invites
InviteListPage Beta.Organization.Invites.List(parameters, cancellationToken = default)List the organization's invites.
Get Invite
BetaOrganizationInvite Beta.Organization.Invites.Retrieve(parameters, cancellationToken = default)Retrieve an invite by ID.
Delete Invite
InviteDeleteResponse Beta.Organization.Invites.Delete(parameters, cancellationToken = default)Delete a pending invite.
OrganizationService Accounts
Create Service Account
BetaServiceAccount Beta.Organization.ServiceAccounts.Create(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
List Service Accounts
ServiceAccountListPage Beta.Organization.ServiceAccounts.List(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Get Service Account
BetaServiceAccount Beta.Organization.ServiceAccounts.Retrieve(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Update Service Account
BetaServiceAccount Beta.Organization.ServiceAccounts.Update(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Archive Service Account
BetaServiceAccount Beta.Organization.ServiceAccounts.Archive(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
OrganizationService AccountsWorkspaces
Add Workspace To Service Account
BetaServiceAccountWorkspaceMember Beta.Organization.ServiceAccounts.Workspaces.Add(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
List Workspaces For Service Account
WorkspaceListPage Beta.Organization.ServiceAccounts.Workspaces.List(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Remove Workspace From Service Account
WorkspaceRemoveResponse Beta.Organization.ServiceAccounts.Workspaces.Remove(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
OrganizationUsers
List Users
UserListPage Beta.Organization.Users.List(parameters, cancellationToken = default)List the organization's members.
Get User
BetaOrganizationUser Beta.Organization.Users.Retrieve(parameters, cancellationToken = default)Retrieve a member of the organization by user ID.
Update User
BetaOrganizationUser Beta.Organization.Users.Update(parameters, cancellationToken = default)Update a member's organization role.
Remove User
UserRemoveResponse Beta.Organization.Users.Remove(parameters, cancellationToken = default)Remove a member from the organization.
OrganizationWorkspaces
List Workspaces
WorkspaceListPage Beta.Organization.Workspaces.List(parameters, cancellationToken = default)Create Workspace
BetaWorkspace Beta.Organization.Workspaces.Create(parameters, cancellationToken = default)Get Workspace
BetaWorkspace Beta.Organization.Workspaces.Retrieve(parameters, cancellationToken = default)Update Workspace
BetaWorkspace Beta.Organization.Workspaces.Update(parameters, cancellationToken = default)Archive Workspace
BetaWorkspace Beta.Organization.Workspaces.Archive(parameters, cancellationToken = default)OrganizationWorkspacesRate Limits
List Workspace Rate Limits
RateLimitListPage Beta.Organization.Workspaces.RateLimits.List(parameters, cancellationToken = default)List rate-limit overrides configured for a workspace.
OrganizationWorkspacesMembers
List Workspace Members
MemberListPage Beta.Organization.Workspaces.Members.List(parameters, cancellationToken = default)Create Workspace Member
BetaWorkspaceMember Beta.Organization.Workspaces.Members.Add(parameters, cancellationToken = default)Get Workspace Member
BetaWorkspaceMember Beta.Organization.Workspaces.Members.Retrieve(parameters, cancellationToken = default)Update Workspace Member
BetaWorkspaceMember Beta.Organization.Workspaces.Members.Update(parameters, cancellationToken = default)Delete Workspace Member
MemberRemoveResponse Beta.Organization.Workspaces.Members.Remove(parameters, cancellationToken = default)OrganizationWorkspacesService Accounts
List Service Account Workspace Members
ServiceAccountListPage Beta.Organization.Workspaces.ServiceAccounts.List(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Create Service Account Workspace Member
BetaServiceAccountWorkspaceMember Beta.Organization.Workspaces.ServiceAccounts.Add(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Get Service Account Workspace Member
BetaServiceAccountWorkspaceMember Beta.Organization.Workspaces.ServiceAccounts.Retrieve(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Update Service Account Workspace Member
BetaServiceAccountWorkspaceMember Beta.Organization.Workspaces.ServiceAccounts.Update(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Delete Service Account Workspace Member
ServiceAccountRemoveResponse Beta.Organization.Workspaces.ServiceAccounts.Remove(parameters, cancellationToken = default)Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
OrganizationRate Limits
List Organization Rate Limits
RateLimitListPage Beta.Organization.RateLimits.List(parameters, cancellationToken = default)List Messages API rate limits for your organization.
OrganizationCompliance Settings
Get Compliance Settings
BetaComplianceSettings Beta.Organization.ComplianceSettings.Retrieve(parameters, cancellationToken = default)Retrieve your organization's Compliance Settings.
Update Compliance Settings
BetaComplianceSettings Beta.Organization.ComplianceSettings.Update(parameters, cancellationToken = default)Update your organization's Compliance Settings.