ThoughtBox Conversations API

The conversations API from ThoughtBox — 8 operation(s) for conversations.

GitHub OpenAPI

Operations 12

GET /api/conversations/ List Conversations #
POST /api/conversations/ Create Conversation #
DELETE /api/conversations/ Clear All Conversations #
POST /api/conversations/tidy Tidy Conversations #
POST /api/conversations/untidy Untidy Conversations #
PUT /api/conversations/{conversation_id}/space Move Conversation #
GET /api/conversations/{conversation_id} Get Conversation #
PATCH /api/conversations/{conversation_id} Update Conversation #
DELETE /api/conversations/{conversation_id} Delete Conversation #
POST /api/conversations/{conversation_id}/skip-choices Skip Choices #
POST /api/conversations/{conversation_id}/messages Add Message #
PUT /api/conversations/{conversation_id}/messages/{message_id}/reactions Set Reaction #

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-conversations-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-conversations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThoughtBox Conversations API
  description: Document proxy and AI chat platform with MCP support
  version: 0.1.0
tags:
- name: Conversations
paths:
  /api/conversations/:
    get:
      tags:
      - Conversations
      summary: List Conversations
      description: 'The user''s chats, most recently used first. Tidied ones (#693) only with include_hidden; with space_id

        (a space''s id, or "home"), only that space''s (#813), else every space''s. Each has

        when it was last used (its last message), and the start of

        that message with who said it, for the sidebar''s second line.'
      operationId: list_conversations_api_conversations__get
      security:
      - HTTPBearer: []
      parameters:
      - name: include_hidden
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Include Hidden
      - name: space_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Space Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Conversations
      summary: Create Conversation
      description: Create a new conversation.
      operationId: create_conversation_api_conversations__post
      security:
      - HTTPBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConversationCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Conversations
      summary: Clear All Conversations
      description: 'Delete all conversations (and their messages) for the current user.

        Optionally exclude a single conversation by ID (e.g. the active one). listed_only: only the chats in

        the sidebar''s list, not ones already tidied away (#693''s "delete for good", which names a count).

        space_id: only that space''s (#813), as the sidebar lists them.'
      operationId: clear_all_conversations_api_conversations__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: exclude
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Exclude
      - name: listed_only
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Listed Only
      - name: space_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Space Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/conversations/tidy:
    post:
      tags:
      - Conversations
      summary: Tidy Conversations
      description: '#693: chats off the sidebar, kept. Returns the ids tidied, for Undo.'
      operationId: tidy_conversations_api_conversations_tidy_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TidyBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/conversations/untidy:
    post:
      tags:
      - Conversations
      summary: Untidy Conversations
      description: '#693''s Undo: tidied chats back in the list.'
      operationId: untidy_conversations_api_conversations_untidy_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UntidyBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/conversations/{conversation_id}/space:
    put:
      tags:
      - Conversations
      summary: Move Conversation
      description: '#813: move a chat to another of the user''s spaces (a thread''s ... menu). Its next turn gets that

        space''s instructions and notes, and what it puts on The Map goes there.'
      operationId: move_conversation_api_conversations__conversation_id__space_put
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Conversation Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConversationSpace'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/conversations/{conversation_id}:
    get:
      tags:
      - Conversations
      summary: Get Conversation
      description: 'Get a conversation with all its messages. found: the find_chats search whose link opened it, for

        #741''s log of which searches found something.'
      operationId: get_conversation_api_conversations__conversation_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Conversation Id
      - name: found
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Found
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - Conversations
      summary: Update Conversation
      description: Update conversation metadata (title, provider, model).
      operationId: update_conversation_api_conversations__conversation_id__patch
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Conversation Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConversationUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Conversations
      summary: Delete Conversation
      description: Delete a conversation and all its messages.
      operationId: delete_conversation_api_conversations__conversation_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Conversation Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/conversations/{conversation_id}/skip-choices:
    post:
      tags:
      - Conversations
      summary: Skip Choices
      description: 'Skip the options question the page is showing: the newest reply holding it, so a tab that

        hasn''t seen a newer reply from another device skips its own question, not that one (PR #606

        review). Kept with the message, so it stays skipped everywhere (11-10).'
      operationId: skip_choices_api_conversations__conversation_id__skip_choices_post
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Conversation Id
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/SkipChoices'
              - type: 'null'
              title: Body
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/conversations/{conversation_id}/messages:
    post:
      tags:
      - Conversations
      summary: Add Message
      description: Add a message to a conversation.
      operationId: add_message_api_conversations__conversation_id__messages_post
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Conversation Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MessageCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/conversations/{conversation_id}/messages/{message_id}/reactions:
    put:
      tags:
      - Conversations
      summary: Set Reaction
      description: '#780: put an emoji on a message, or take yours off. Returns the message''s reactions as they now stand.'
      operationId: set_reaction_api_conversations__conversation_id__messages__message_id__reactions_put
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Conversation Id
      - name: message_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Message Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReactionSet'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ReactionSet:
      properties:
        emoji:
          type: string
          title: Emoji
        'on':
          type: boolean
          title: 'On'
          default: true
      type: object
      required:
      - emoji
      title: ReactionSet
    ConversationCreate:
      properties:
        title:
          type: string
          title: Title
          default: New conversation
        provider:
          type: string
          title: Provider
          default: ''
        model:
          type: string
          title: Model
          default: ''
        panel_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Panel Id
        brief_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Brief Id
        space_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Space Id
      type: object
      title: ConversationCreate
    SkipChoices:
      properties:
        choices:
          anyOf:
          - type: string
          - type: 'null'
          title: Choices
      type: object
      title: SkipChoices
    ConversationSpace:
      properties:
        space_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Space Id
      type: object
      title: ConversationSpace
    ConversationUpdate:
      properties:
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        provider:
          anyOf:
          - type: string
          - type: 'null'
          title: Provider
        model:
          anyOf:
          - type: string
          - type: 'null'
          title: Model
      type: object
      title: ConversationUpdate
    UntidyBody:
      properties:
        ids:
          items:
            type: string
            format: uuid
          type: array
          title: Ids
      type: object
      required:
      - ids
      title: UntidyBody
    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
    TidyBody:
      properties:
        ids:
          anyOf:
          - items:
              type: string
              format: uuid
            type: array
          - type: 'null'
          title: Ids
        keep:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Keep
      type: object
      title: TidyBody
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MessageCreate:
      properties:
        role:
          type: string
          title: Role
        content:
          type: string
          title: Content
        advisor_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Advisor Id
        advisor_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Advisor Name
        provider:
          anyOf:
          - type: string
          - type: 'null'
          title: Provider
        model:
          anyOf:
          - type: string
          - type: 'null'
          title: Model
        tool_trace:
          anyOf:
          - items:
              additionalProperties: true
              type: object
            type: array
          - type: 'null'
          title: Tool Trace
        spoken:
          type: boolean
          title: Spoken
          default: false
      type: object
      required:
      - role
      - content
      title: MessageCreate
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer