Overfit Conversations API

The conversations API from Overfit — 3 operation(s) for conversations.

GitHub OpenAPI

Operations 4

POST /insight/{insight_id}/conversations Create Conversation #
GET /insight/{insight_id}/conversations List Conversations #
GET /insight/{insight_id}/conversations/{conv_id} Get Conversation #
POST /insight/{insight_id}/conversations/{conv_id}/messages Send Message #

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/overfit-de:overfit-de-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

overfit-de-conversations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'Overfit Insights: Revolutionizing Data Retrieval…'
  description: '### Brought to you by _Overfit_


    **Overfit** is a sophisticated API server designed to enhance contextual information retrieval and workflow management. At its core, it provides a robust framework for handling contextualized requests and complex workflow orchestration.


    ### **Key Components of Overfit**


    #### **1. Insights Engine**

    The Insights Engine stands as the cornerstone of Overfit, delivering context-aware information processing through its innovative architecture. Sources serve as the fundamental building blocks, providing the contextual data that forms the knowledge foundation of the system. These Sources work in harmony with Questions - natural language queries that interface with our semantic search system, enabling precise and context-aware information retrieval through seamless LLM integration.


    #### **2. Graph System**

    The Graph System represents our approach to workflow orchestration, operating on two distinct levels. At its foundation lies the Graph Definition, where users craft their workflow structure through nodes and edges. This blueprint transforms into a Graph Configuration during execution, encompassing essential runtime elements such as chat history, graph state dictionary, and transition history, along with comprehensive runtime analytics.


    #### **3. Agent Framework**

    While Overfit maintains a fully implemented agent framework, we embrace a "less is more" philosophy in this domain. The system supports agent-based automation for specific use cases, but emphasizes direct insight retrieval as the primary means of interaction, offering a more streamlined and efficient approach to information processing.


    #### **4. Enterprise-Grade Security**

    Security stands as a foundational pillar of Overfit, implemented through a comprehensive OIDC authentication system utilizing JWT token management. Our integration with Keycloak ensures robust access control and security measures, providing enterprise-grade protection for all system interactions.


    ---

    Overfit | No human should be forced to do work that a machine can do.

    For more support write to us at mhermelschmidt@okns.de

    © 2024 Michael Hermelschmidt'
  contact:
    name: Michael Hermelschmidt
    email: mail@okns.de
  version: 1.7.1
tags:
- name: Conversations
paths:
  /insight/{insight_id}/conversations:
    post:
      tags:
      - Conversations
      summary: Create Conversation
      description: Create a new conversation thread for an insight.
      operationId: create_conversation_insight__insight_id__conversations_post
      security:
      - OpenIdConnect: []
      - APIKeyHeader: []
      parameters:
      - name: insight_id
        in: path
        required: true
        schema:
          type: string
          title: Insight Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConversationCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Conversation'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Conversations
      summary: List Conversations
      description: List all conversations for an insight.
      operationId: list_conversations_insight__insight_id__conversations_get
      security:
      - OpenIdConnect: []
      - APIKeyHeader: []
      parameters:
      - name: insight_id
        in: path
        required: true
        schema:
          type: string
          title: Insight Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Conversation'
                title: Response List Conversations Insight  Insight Id  Conversations Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /insight/{insight_id}/conversations/{conv_id}:
    get:
      tags:
      - Conversations
      summary: Get Conversation
      description: Get a conversation with its full message history.
      operationId: get_conversation_insight__insight_id__conversations__conv_id__get
      security:
      - OpenIdConnect: []
      - APIKeyHeader: []
      parameters:
      - name: insight_id
        in: path
        required: true
        schema:
          type: string
          title: Insight Id
      - name: conv_id
        in: path
        required: true
        schema:
          type: string
          title: Conv Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationDetail'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /insight/{insight_id}/conversations/{conv_id}/messages:
    post:
      tags:
      - Conversations
      summary: Send Message
      description: Send a message in a conversation and get the assistant's reply.
      operationId: send_message_insight__insight_id__conversations__conv_id__messages_post
      security:
      - OpenIdConnect: []
      - APIKeyHeader: []
      parameters:
      - name: insight_id
        in: path
        required: true
        schema:
          type: string
          title: Insight Id
      - name: conv_id
        in: path
        required: true
        schema:
          type: string
          title: Conv Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConversationMessageCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationMessageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ConversationMessage:
      properties:
        id:
          type: string
          title: Id
        conversation_id:
          type: string
          title: Conversation Id
        role:
          type: string
          title: Role
        content:
          type: string
          title: Content
        retrieval_used:
          type: boolean
          title: Retrieval Used
          default: false
        source_snippets:
          anyOf:
          - items:
              $ref: '#/components/schemas/SourceSnippet'
            type: array
          - type: 'null'
          title: Source Snippets
        embedding_tokens:
          anyOf:
          - type: integer
          - type: 'null'
          title: Embedding Tokens
        generative_tokens:
          anyOf:
          - type: integer
          - type: 'null'
          title: Generative Tokens
        cost:
          anyOf:
          - type: number
          - type: 'null'
          title: Cost
        created_at:
          type: string
          format: date-time
          title: Created At
        order_index:
          type: integer
          title: Order Index
      type: object
      required:
      - id
      - conversation_id
      - role
      - content
      - created_at
      - order_index
      title: ConversationMessage
    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
    ConversationDetail:
      properties:
        id:
          type: string
          title: Id
        insight_id:
          type: string
          title: Insight Id
        sub:
          type: string
          format: uuid
          title: Sub
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        created_at:
          type: string
          format: date-time
          title: Created At
        message_count:
          type: integer
          title: Message Count
          default: 0
        messages:
          items:
            $ref: '#/components/schemas/ConversationMessage'
          type: array
          title: Messages
          default: []
      type: object
      required:
      - id
      - insight_id
      - sub
      - created_at
      title: ConversationDetail
    ConversationCreate:
      properties:
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
      type: object
      title: ConversationCreate
    Conversation:
      properties:
        id:
          type: string
          title: Id
        insight_id:
          type: string
          title: Insight Id
        sub:
          type: string
          format: uuid
          title: Sub
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        created_at:
          type: string
          format: date-time
          title: Created At
        message_count:
          type: integer
          title: Message Count
          default: 0
      type: object
      required:
      - id
      - insight_id
      - sub
      - created_at
      title: Conversation
    ConversationMessageResponse:
      properties:
        message:
          $ref: '#/components/schemas/ConversationMessage'
        conversation_id:
          type: string
          title: Conversation Id
        retrieval_used:
          type: boolean
          title: Retrieval Used
        source_snippets:
          anyOf:
          - items:
              $ref: '#/components/schemas/SourceSnippet'
            type: array
          - type: 'null'
          title: Source Snippets
      type: object
      required:
      - message
      - conversation_id
      - retrieval_used
      title: ConversationMessageResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SourceSnippet:
      properties:
        source_id:
          type: string
          title: Source Id
        snippet_id:
          type: string
          title: Snippet Id
        snippet:
          type: string
          title: Snippet
        score:
          type: number
          title: Score
          default: 0.0
      type: object
      required:
      - source_id
      - snippet_id
      - snippet
      title: SourceSnippet
      examples:
      - snippet: The screwdriver is a tool, manual or powered, used for screwing (installing) and unscrewing (removing) screws. A typical simple screwdriver has a handle and a shaft.
        snippet_id: 789b936a-9e1b-41b5-b721-42d7308b858c
        source_id: src_1EbVewEDVUf0oyAxzsi6LW
    ConversationMessageCreate:
      properties:
        message:
          type: string
          maxLength: 8192
          minLength: 1
          title: Message
      type: object
      required:
      - message
      title: ConversationMessageCreate
  securitySchemes:
    OpenIdConnect:
      type: openIdConnect
      openIdConnectUrl: https://auth.okns.de/realms/overfit-products/.well-known/openid-configuration
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key