Claude Platform Docs

Service Accounts

List Service Account Workspace Members
beta.organization.workspaces.service_accounts.list(strworkspace_id, ServiceAccountListParams**kwargs) -> SyncPageCursor[BetaServiceAccountWorkspaceMember]
GET/v1/organizations/workspaces/{workspace_id}/service_accounts
Create Service Account Workspace Member
beta.organization.workspaces.service_accounts.add(strworkspace_id, ServiceAccountAddParams**kwargs) -> BetaServiceAccountWorkspaceMember
POST/v1/organizations/workspaces/{workspace_id}/service_accounts
Get Service Account Workspace Member
beta.organization.workspaces.service_accounts.retrieve(strservice_account_id, ServiceAccountRetrieveParams**kwargs) -> BetaServiceAccountWorkspaceMember
GET/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}
Update Service Account Workspace Member
beta.organization.workspaces.service_accounts.update(strservice_account_id, ServiceAccountUpdateParams**kwargs) -> BetaServiceAccountWorkspaceMember
POST/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}
Delete Service Account Workspace Member
beta.organization.workspaces.service_accounts.remove(strservice_account_id, ServiceAccountRemoveParams**kwargs) -> ServiceAccountRemoveResponse
DELETE/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}
Models
class ServiceAccountRemoveResponse:
service_account_id: str

Tagged service account ID (svac_...) named in the delete request. Removal is idempotent; see the endpoint description for the implicit-membership no-op.

type: Literal["service_account_workspace_member_deleted"]
defaultservice_account_workspace_member_deleted
workspace_id: str

Tagged workspace ID (wrkspc_...) named in the delete request.