ThoughtBox Spaces API

The spaces API from ThoughtBox — 4 operation(s) for spaces.

GitHub OpenAPI

Operations 8

GET /api/spaces List Spaces #
POST /api/spaces Create Space #
PUT /api/spaces/order Order Spaces #
PATCH /api/spaces/{space_id} Change Space #
DELETE /api/spaces/{space_id} Delete Space #
GET /api/spaces/{space_id}/notes Get Notes #
PUT /api/spaces/{space_id}/notes Put Notes #
DELETE /api/spaces/{space_id}/notes Clear Notes #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/thoughtbox-ai:thoughtbox-ai-spaces-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

thoughtbox-ai-spaces-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThoughtBox Spaces API
  description: Document proxy and AI chat platform with MCP support
  version: 0.1.0
tags:
- name: Spaces
paths:
  /api/spaces:
    get:
      tags:
      - Spaces
      summary: List Spaces
      description: Home first, then the user's order. Makes Home the first time.
      operationId: list_spaces_api_spaces_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/SpaceOut'
                type: array
                title: Response List Spaces Api Spaces Get
      security:
      - HTTPBearer: []
    post:
      tags:
      - Spaces
      summary: Create Space
      operationId: create_space_api_spaces_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpaceIn'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpaceOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/spaces/order:
    put:
      tags:
      - Spaces
      summary: Order Spaces
      operationId: order_spaces_api_spaces_order_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpaceOrder'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/SpaceOut'
                type: array
                title: Response Order Spaces Api Spaces Order Put
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/spaces/{space_id}:
    patch:
      tags:
      - Spaces
      summary: Change Space
      operationId: change_space_api_spaces__space_id__patch
      security:
      - HTTPBearer: []
      parameters:
      - name: space_id
        in: path
        required: true
        schema:
          type: string
          title: Space Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpaceChange'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpaceOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Spaces
      summary: Delete Space
      description: 'Removes the space and what''s on its Map; its chats move to Home. Returns a JSON body, never 204:

        apiFetch always reads one.'
      operationId: delete_space_api_spaces__space_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: space_id
        in: path
        required: true
        schema:
          type: string
          title: Space Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Delete Space Api Spaces  Space Id  Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/spaces/{space_id}/notes:
    get:
      tags:
      - Spaces
      summary: Get Notes
      description: The space's notes (its memories), what every chat in it is given (#813). Empty when it has none.
      operationId: get_notes_api_spaces__space_id__notes_get
      security:
      - HTTPBearer: []
      parameters:
      - name: space_id
        in: path
        required: true
        schema:
          type: string
          title: Space Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotesOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Spaces
      summary: Put Notes
      description: Replace the space's notes from the Spaces page; empty clears them.
      operationId: put_notes_api_spaces__space_id__notes_put
      security:
      - HTTPBearer: []
      parameters:
      - name: space_id
        in: path
        required: true
        schema:
          type: string
          title: Space Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NotesIn'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotesOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Spaces
      summary: Clear Notes
      operationId: clear_notes_api_spaces__space_id__notes_delete
      security:
      - HTTPBearer: []
      parameters:
      - name: space_id
        in: path
        required: true
        schema:
          type: string
          title: Space Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotesOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SpaceOrder:
      properties:
        ids:
          items:
            type: string
          type: array
          title: Ids
      type: object
      required:
      - ids
      title: SpaceOrder
    SpaceOut:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        is_home:
          type: boolean
          title: Is Home
        position:
          type: integer
          title: Position
        viewport:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Viewport
        instructions:
          anyOf:
          - type: string
          - type: 'null'
          title: Instructions
      type: object
      required:
      - id
      - name
      - is_home
      - position
      - viewport
      - instructions
      title: SpaceOut
    SpaceChange:
      properties:
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        instructions:
          anyOf:
          - type: string
          - type: 'null'
          title: Instructions
      type: object
      title: SpaceChange
      description: Only the fields given change; empty instructions clear them.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    SpaceIn:
      properties:
        name:
          type: string
          title: Name
        instructions:
          anyOf:
          - type: string
          - type: 'null'
          title: Instructions
      type: object
      required:
      - name
      title: SpaceIn
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    NotesOut:
      properties:
        notes:
          type: string
          title: Notes
      type: object
      required:
      - notes
      title: NotesOut
    NotesIn:
      properties:
        notes:
          type: string
          title: Notes
      type: object
      required:
      - notes
      title: NotesIn
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer