---
title: "Get one space plus a light list of its pages (id, title, path)."
method: GET
path: "/spaces/{idOrSlug}"
tags: ["Client spaces"]
---

# Get one space plus a light list of its pages (id, title, path).

`GET /spaces/{idOrSlug}`

## Request

- Base URL: `https://api.stacktr.ee`
- URL: `https://api.stacktr.ee/spaces/{idOrSlug}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.stacktr.ee/oauth/authorize`, token URL `https://api.stacktr.ee/oauth/token`, scopes: `sites:write`, `sites:read`)

Full site objects live on `GET /sites?client=`.

## Response `200`

OK

- object
  - `id` string, required
  - `name` string, required
  - `slug` string, required
  - `hostname` string, nullable
  - `archived_at` integer, nullable
  - `created_at` integer
  - `updated_at` integer
  - `pages` object[], required
    - `id` string
    - `title` string, nullable
    - `space_path` string, nullable
    - `unlisted_token` string
    - `updated_at` integer
  - `portal` object, nullable: The generated client portal, when enabled: a system-managed index page listing the space’s work, newest first.
    - `enabled` boolean
    - `managed` boolean: true = regenerates automatically; false = customized, the owner edits it like any page.
    - `site_id` string
    - `url` string
  - `domain` object, nullable: The hostname bound to this space, when one exists.
    - `hostname` string
    - `verified` boolean
    - `ssl_status` string, nullable

## Other responses

- `404`: Resource not found.

---

[API](https://skmtc.dev/stacktr/apis/stacktree-api.md) · [All operations](https://skmtc.dev/stacktr/apis/stacktree-api/llms.txt) · [OpenAPI document](https://skmtc.dev/stacktr/apis/stacktree-api/revisions/5878cce46977?raw)
