Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/sam-shervin/space7/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Returns all spaces associated with the currently authenticated user. Unlike the trending and recommended endpoints, this includes private spaces the user owns or has joined.

Endpoint

GET /api/spaces/my
Requires authentication. Include a Bearer token in the Authorization header.

Request

This endpoint has no query parameters or path parameters.

Response

Returns an array of Space objects. Both public and private spaces owned or joined by the user are included.
space_id
string
Unique identifier for the space.
title
string
Display title of the space.
description
string
Short description of the space.
visibility
string
Visibility of the space. Can be "public" or "private".
creator
object
The user who created the space.
participant_count
number
Number of participants currently in the space.
tags
array
Tags associated with the space.

Example

TypeScript
import { getMySpaces } from "./api/Spaces";

const mySpaces = await getMySpaces();

console.log(mySpaces);
// [
//   {
//     space_id: "prv001",
//     title: "Team Offsite Planning",
//     description: "Private planning space for our team",
//     visibility: "private",
//     creator: { user_id: "u1", username: "alice", profile_picture: "https://..." },
//     participant_count: 5,
//     tags: [{ tag_id: 7, tag_name: "internal" }]
//   },
//   {
//     space_id: "pub002",
//     title: "Open Source Chat",
//     description: "Public space for OSS discussions",
//     visibility: "public",
//     creator: { user_id: "u3", username: "carol", profile_picture: "https://..." },
//     participant_count: 130,
//     tags: [{ tag_id: 2, tag_name: "opensource" }]
//   }
// ]

Build docs developers (and LLMs) love