---
title: "Get a space"
method: GET
path: "/spaces/{space_id}"
---

# Get a space

`GET /spaces/{space_id}`

Returns details about a single space, including the owner and the
caller's role. For user JWTs the role and owner are populated; for API
keys they are omitted (the members lookup that resolves the owner is not
available to API keys).

## Path parameters

- `space_id` string, required

## Response `200`

Space details

- SpaceDetail — Detailed information about a single Ghost space.
  - `id` string, required — Space ID.
  - `name` string, required — Space name.
  - `role` 'owner' | 'admin' | 'developer' | 'viewer' — A member's role within a space. The `owner` role belongs to the user who created the space; every space has exactly one owner, so `owner` is never accepted as an input when granting a role. On the `Space` schema, this is the caller's own role in the space, omitted for API-key authentication (API keys are space-scoped and carry no member identity).
  - `owner` Member — A member of a Ghost space.
    - `user_id` integer, required — User ID of the member.
    - `name` string, required — Display name of the member.
    - `email` string, required — Email address of the member.
    - `role` 'owner' | 'admin' | 'developer' | 'viewer', required — A member's role within a space. The `owner` role belongs to the user who created the space; every space has exactly one owner, so `owner` is never accepted as an input when granting a role. On the `Space` schema, this is the caller's own role in the space, omitted for API-key authentication (API keys are space-scoped and carry no member identity).

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/timescale/apis/ghost-api.md) · [All operations](https://skmtc.net/timescale/apis/ghost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/timescale/ghost-api/versions/808022f897be/schema)
