> ## Documentation Index
> Fetch the complete documentation index at: https://docs.replyke.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch space team

> Fetch all admins and moderators of a space

## Overview

`useFetchSpaceTeam` returns a callable function that fetches all admins and moderators of a space in a single non-paginated response. This is useful for displaying the space's leadership team.

## Usage Example

```tsx theme={null}
import { useFetchSpaceTeam } from "@replyke/react-js";

function SpaceTeam({ spaceId }: { spaceId: string }) {
  const fetchTeam = useFetchSpaceTeam();

  const loadTeam = async () => {
    const { data } = await fetchTeam({ spaceId });
    data.forEach(({ user, role }) => {
      console.log(user.displayName, role);
    });
  };
}
```

## Parameters

<ParamField path="spaceId" type="string" required>
  UUID of the space.
</ParamField>

## Returns

<ResponseField name="data" type="SpaceMemberWithUser[]">
  All admins and moderators with active status, including embedded user details. See [SpaceMember](/data-models/space-member).
</ResponseField>
