Skip to main content
Fetch Space by Slug
Fetches a space using its slug. Slugs are optional and unique per project. 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. 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

string
required
The URL slug of the space.
string
Optional. Pass "files" to include file objects.

Response

Returns a SpaceDetailed object.

Error Responses

See also: useFetchSpaceBySlug