Rulebase Chats API

The Chats API from Rulebase — 3 operation(s) for chats.

Operations 4

GET /chats Get chats #
GET /chats/{chatId}/references Get chats by chat id references #
POST /chats/{chatId}/references Create chats by chat id references #
DELETE /chats/{chatId}/references/{referenceId} Delete chats by chat id references by reference id #

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/rulebase:rulebase-chats-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

rulebase-chats-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rulebase API2 Chats API
  version: 0.0.1
tags:
- name: Chats
paths:
  /chats:
    get:
      parameters:
      - schema:
          type: string
        required: false
        name: query
        in: query
      - schema:
          type: integer
          minimum: 1
          maximum: 100
        required: false
        name: limit
        in: query
      - schema:
          type: string
        required: false
        name: cursor
        in: query
      - schema:
          type: string
          enum:
          - 'true'
          - 'false'
        required: false
        name: pinned
        in: query
      - schema:
          type: string
          format: date-time
        required: false
        name: from
        in: query
      - schema:
          type: string
          format: date-time
        required: false
        name: to
        in: query
      - schema:
          type: string
          enum:
          - human_qa
          - agent_monitoring
        required: false
        name: experience
        in: query
      responses:
        '200':
          description: List of chats
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        organizationId:
                          type: string
                        membershipId:
                          type: string
                          nullable: true
                        title:
                          type: string
                        experience:
                          type: string
                          enum:
                          - human_qa
                          - agent_monitoring
                        pinnedAt:
                          type: string
                          nullable: true
                        createdAt:
                          type: string
                        updatedAt:
                          type: string
                        isGenerating:
                          type: boolean
                          description: True while an assistant response is still streaming.
                      required:
                      - id
                      - organizationId
                      - membershipId
                      - title
                      - experience
                      - pinnedAt
                      - createdAt
                      - updatedAt
                      - isGenerating
                  meta:
                    type: object
                    properties:
                      page:
                        type: object
                        properties:
                          next:
                            type: string
                            nullable: true
                          limit:
                            type: integer
                        required:
                        - next
                        - limit
                    required:
                    - page
                required:
                - data
                - meta
      tags:
      - Chats
      summary: Get chats
      x-summary-source: derived
      operationId: getChats
      x-operation-id-source: derived
  /chats/{chatId}/references:
    get:
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: chatId
        in: path
      responses:
        '200':
          description: Objects the chat has referenced
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        chatId:
                          type: string
                        kind:
                          type: string
                          enum:
                          - task
                          - conversation
                          - sheet
                          - artifact
                        objectId:
                          type: string
                        label:
                          type: string
                          nullable: true
                        metadata:
                          type: object
                          additionalProperties:
                            nullable: true
                        createdAt:
                          type: string
                        updatedAt:
                          type: string
                      required:
                      - id
                      - chatId
                      - kind
                      - objectId
                      - label
                      - metadata
                      - createdAt
                      - updatedAt
                required:
                - data
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '404':
          description: Chat not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Chats
      summary: Get chats by chat id references
      x-summary-source: derived
      operationId: getChatsByChatIdReferences
      x-operation-id-source: derived
    post:
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: chatId
        in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                kind:
                  type: string
                  enum:
                  - task
                  - conversation
                  - sheet
                  - artifact
                objectId:
                  type: string
                  minLength: 1
                label:
                  type: string
                  nullable: true
                  minLength: 1
                  maxLength: 200
                metadata:
                  type: object
                  additionalProperties:
                    nullable: true
              required:
              - kind
              - objectId
      responses:
        '200':
          description: Recorded reference
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      chatId:
                        type: string
                      kind:
                        type: string
                        enum:
                        - task
                        - conversation
                        - sheet
                        - artifact
                      objectId:
                        type: string
                      label:
                        type: string
                        nullable: true
                      metadata:
                        type: object
                        additionalProperties:
                          nullable: true
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                    required:
                    - id
                    - chatId
                    - kind
                    - objectId
                    - label
                    - metadata
                    - createdAt
                    - updatedAt
                required:
                - data
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '404':
          description: Chat not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Chats
      summary: Create chats by chat id references
      x-summary-source: derived
      operationId: postChatsByChatIdReferences
      x-operation-id-source: derived
  /chats/{chatId}/references/{referenceId}:
    delete:
      parameters:
      - schema:
          type: string
          format: uuid
        required: true
        name: chatId
        in: path
      - schema:
          type: string
          format: uuid
        required: true
        name: referenceId
        in: path
      responses:
        '204':
          description: Reference removed
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '404':
          description: Chat or reference not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Chats
      summary: Delete chats by chat id references by reference id
      x-summary-source: derived
      operationId: deleteChatsByChatIdReferencesByReferenceId
      x-operation-id-source: derived
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Rulebase organization API key