Spaces
The Spaces resource (client.spaces) provides read-only access to governance spaces. Spaces are tenancy boundaries that scope products, checks, connectors, and other resources.
Methods
list()
List all spaces the authenticated user has access to.
Returns: list[Space]
spaces = await client.spaces.list()
for space in spaces:
print(f"{space.name} ({space.slug})")
list_members(space_slug)
List members of a space with their roles.
| Parameter | Type | Description |
|---|---|---|
space_slug | str | Space identifier |
Returns: list[SpaceMember]
members = await client.spaces.list_members("marketing-analytics")
for member in members:
print(f"{member.user_name}: {member.role}")