> ## 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 Slug

> Get a single space by its URL slug

Fetches a space using its `slug`. Slugs are optional and unique per project.

## Query Parameters

<ParamField query="slug" type="string" required>
  The URL slug of the space.
</ParamField>

<ParamField query="include" type="string">
  Optional. Pass `"files"` to include file objects.
</ParamField>

## Response

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

## Error Responses

<AccordionGroup>
  <Accordion title="Not Found — 404">
    ```json theme={null}
    { "error": "Space not found.", "code": "space/not-found" }
    ```
  </Accordion>
</AccordionGroup>

See also: [useFetchSpaceBySlug](/hooks/spaces/use-fetch-space-by-slug)
