Claude Platform Docs

Workspaces

Add Workspace To Service Account
beta.organization.service_accounts.workspaces.add(strservice_account_id, WorkspaceAddParams**kwargs) -> BetaServiceAccountWorkspaceMember
POST/v1/organizations/service_accounts/{service_account_id}/workspaces
List Workspaces For Service Account
beta.organization.service_accounts.workspaces.list(strservice_account_id, WorkspaceListParams**kwargs) -> SyncPageCursor[BetaServiceAccountWorkspaceMember]
GET/v1/organizations/service_accounts/{service_account_id}/workspaces
Remove Workspace From Service Account
beta.organization.service_accounts.workspaces.remove(strworkspace_id, WorkspaceRemoveParams**kwargs) -> WorkspaceRemoveResponse
DELETE/v1/organizations/service_accounts/{service_account_id}/workspaces/{workspace_id}
Models
class WorkspaceRemoveResponse:
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.