Skip to navigation

List Spaces

List the spaces (post groupings) the current user can see, each with its latest activity and unread count. The synthetic all space is always first.

Authentication: Public with visitor fallback — visitors receive only the all space (unread always 0).

Feature gate: Requires posts feature enabled.

Response: A JSON array (under data) of space objects:

  • slug, name, type (all, everyone, members, product, segment, or custom)
  • icon, cosmic_id, cosmic_tier
  • latest_post_at, unread_count

Dynamic spaces with no posts are omitted; they are sorted by latest activity (desc) then name (asc).

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Response

OK