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

# Fetch Space by Short ID

> Get a single space by its short identifier

Fetches a space using its `shortId`. Returns the same `SpaceDetailed` shape as the UUID fetch endpoint. A space the caller can't see (a `private` space they aren't an active member of, or a space under one) answers `404`, exactly like a nonexistent space. See [Space visibility](https://docs.sublay.io/v7/data-models/space.md#visibility). `parentSpace` is `null` when the caller can't see the parent, and `childSpaces` holds the sub-spaces the caller can see that are `public` or that they're an active member of.

## Query Parameters

**shortId** `string` *required*

The short identifier of the space.

**include** `string`

Optional. Pass `"files"` to include file objects.

## Response

Returns a [SpaceDetailed](https://docs.sublay.io/v7/data-models/space.md) object.

## Error Responses

> [accordion] Not Found — 404
>
> ```json theme={null}
> { "error": "Space not found.", "code": "space/not-found" }
> ```

See also: [useFetchSpaceByShortId](https://docs.sublay.io/v7/hooks/spaces/use-fetch-space-by-short-id.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.