Skip to main content
Fetch Space Breadcrumb
Returns every space on the path from the top-level space down to and including the requested space, root first, as the viewer (the signed-in user, or the user a service key names in actingUserId) may see it.
  • A space the viewer can’t see answers 404 space/not-found, exactly like one that doesn’t exist. See Space visibility.
  • Otherwise the whole path is returned. Each entry carries hidden. A space above that the viewer can’t see — a private space they aren’t an active member of, or a space under one — is exactly { "hidden": true }, with no id, name, slug or avatar. A member of a sub-space can see it while a private space above it stays hidden from them.
How to render hidden entries is up to the app: skip them, show a placeholder such as ”…”, or start the breadcrumb after the last hidden one.

Path Parameters

string
required
UUID of the space.

Query Parameters

string
Service key only: the user to read as. The response is exactly what that user’s own access token would get. Leave it out for the anonymous view. A user token always acts as its own user and must not send it, and neither may a request with no credentials (400 space/acting-user-not-allowed).

Response

array
The path from the top-level space down to the requested space, root first. For a top-level space it holds only that space. Each entry is one of:
number
Nesting depth of the requested space. 0 for a top-level space.
Example: the viewer is a member of Archive, under a private Design they aren't in

Error Responses

Returned when spaceId isn’t a valid UUID. Checked before sign-in, permissions and the endpoint’s other checks.
The space doesn’t exist, or the viewer can’t see it.
A user token, or a request with no credentials, sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
actingUserId is not a user id.
Returned when a service key names an actingUserId that isn’t a user in this project.
See also: useFetchSpaceBreadcrumb