Skip to main content
Fetch Space Breadcrumb
Returns an ordered list of spaces from the root ancestor down to and including the specified space itself, suitable for breadcrumb navigation. Authentication is optional; the path depends on who asks. 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. When the caller can see the space but not every space above it (they’re an active member of a private space nested under another private space they aren’t in), the list starts just below the lowest space above they can’t see, so it never names a hidden space and each entry is the parent of the next. depth is always the space’s own depth.

Path Parameters

string
required
UUID of the space whose ancestors to fetch.

Response

SpacePreview[]
Ordered array of ancestor SpacePreview objects from the root down to the space itself. For a root-level space this array contains only that space. Each item includes: id, shortId, name, slug, avatarFileId, parentSpaceId, depth.
number
Nesting depth of the requested space. 0 for root-level spaces.
See also: useFetchSpaceBreadcrumb