> ## 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 by short ID

> Fetch a single space by its short identifier

## Overview

`useFetchSpaceByShortId` returns a callable function that fetches a space using its `shortId`. The `shortId` is a compact, URL-safe identifier generated automatically when a space is created.

## Usage Example

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

function SpacePage({ shortId }: { shortId: string }) {
  const fetchSpace = useFetchSpaceByShortId();

  const handleFetch = async () => {
    const space = await fetchSpace({ shortId });
    console.log(space.name);
  };
}
```

## Parameters

<ParamField path="shortId" type="string" required>
  The short identifier of the space.
</ParamField>

<ParamField path="include" type="&#x22;files&#x22; | string[]">
  Optional. Pass `"files"` to include avatar and banner file objects.
</ParamField>

## Returns

Returns a [SpaceDetailed](/data-models/space) object.

For most use cases, prefer [`SpaceProvider shortId`](/sdk/spaces/provider-and-hook) prop over calling this hook directly.
