Overfit Sources API

Manage sources. Create, update, delete, or retrieve source details. Sources can only be created in the context of an insight.

GitHub OpenAPI

Operations 6

POST /insight/{insight_id}/source Create Source #
GET /insight/{insight_id}/source Get All Sources #
PATCH /insight/{insight_id}/source/{source_id} Update Source #
DELETE /insight/{insight_id}/source/{source_id} Delete Source #
GET /insight/{insight_id}/source/{source_id} Get Source #
POST /insight/{insight_id}/source/upload Create Source Upload #

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-sources-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-sources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'Overfit Insights: Revolutionizing Data Retrieval Sources API'
  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: Sources
  description: Manage sources. Create, update, delete, or retrieve source details. Sources can only be created in the context of an insight.
paths:
  /insight/{insight_id}/source:
    post:
      tags:
      - Sources
      summary: Create Source
      description: 'Create a new source. A Source is allways associated with an insight and can not be created without an insight.

        Accepts Insight ID (ins_) and SourceCreate Schema as input.'
      operationId: create_source_insight__insight_id__source_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/SourceCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Source'
                title: Response Create Source Insight  Insight Id  Source Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Sources
      summary: Get All Sources
      description: 'Get all sources associated with an insight. A Source is allways associated with an insight and can not be created without an insight.

        Accepts Insight ID (ins_) as input.'
      operationId: get_all_sources_insight__insight_id__source_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/Source'
                title: Response Get All Sources Insight  Insight Id  Source Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /insight/{insight_id}/source/{source_id}:
    patch:
      tags:
      - Sources
      summary: Update Source
      description: 'Update a source. A Source is allways associated with an insight and can not be created without an insight.

        Accepts Insight ID (ins_), Source ID (src_) and SourceUpdate Schema as input.'
      operationId: update_source_insight__insight_id__source__source_id__patch
      security:
      - OpenIdConnect: []
      - APIKeyHeader: []
      parameters:
      - name: insight_id
        in: path
        required: true
        schema:
          type: string
          title: Insight Id
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          title: Source Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SourceUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Source'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Sources
      summary: Delete Source
      description: 'Delete a source. A Source is allways associated with an insight and can not be created without an insight.

        Accepts Insight ID (ins_) and Source ID (src_) as input.'
      operationId: delete_source_insight__insight_id__source__source_id__delete
      security:
      - OpenIdConnect: []
      - APIKeyHeader: []
      parameters:
      - name: insight_id
        in: path
        required: true
        schema:
          type: string
          title: Insight Id
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          title: Source Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Sources
      summary: Get Source
      description: 'Get a specific source. A Source is allways associated with an insight and can not be created without an insight.

        Accepts Insight ID (ins_) and Source ID (src_) as input.'
      operationId: get_source_insight__insight_id__source__source_id__get
      security:
      - OpenIdConnect: []
      - APIKeyHeader: []
      parameters:
      - name: insight_id
        in: path
        required: true
        schema:
          type: string
          title: Insight Id
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          title: Source Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Source'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /insight/{insight_id}/source/upload:
    post:
      tags:
      - Sources
      summary: Create Source Upload
      description: 'Create a new source from a uploaded file, the source_data must be of type : DocumentUploadData. Supportet formates are currently: ["hwp", "pdf", "docx", "pptx", "jpg", "png", "jpeg", "csv", "epub", "md", "mbox", "eml", "html", "json", "txt"]. A Source is allways associated with an insight and can not be created without an insight.

        Accepts Insight ID (ins_) and SourceCreate Schema as input.'
      operationId: create_source_upload_insight__insight_id__source_upload_post
      security:
      - OpenIdConnect: []
      - APIKeyHeader: []
      parameters:
      - name: insight_id
        in: path
        required: true
        schema:
          type: string
          title: Insight Id
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_create_source_upload_insight__insight_id__source_upload_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Source'
                title: Response Create Source Upload Insight  Insight Id  Source Upload Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Source:
      properties:
        id:
          type: string
          title: Id
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        insight_id:
          type: string
          title: Insight Id
        time_created:
          type: string
          format: date-time
          title: Time Created
        source_type:
          $ref: '#/components/schemas/SourceTypes'
        public:
          type: boolean
          title: Public
          default: false
        keywords:
          anyOf:
          - type: string
          - type: 'null'
          title: Keywords
        path:
          type: string
          title: Path
        length:
          type: integer
          title: Length
      type: object
      required:
      - id
      - insight_id
      - time_created
      - source_type
      - path
      - length
      title: Source
    WebsiteData:
      properties:
        source_type:
          type: string
          const: WEBSITE
          title: Source Type
        url:
          type: string
          maxLength: 2083
          minLength: 1
          format: uri
          title: Url
        keywords:
          anyOf:
          - type: string
          - type: 'null'
          title: Keywords
      type: object
      required:
      - source_type
      - url
      title: WebsiteData
    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
    SourceTypes:
      type: string
      enum:
      - WEBSITE
      - REMOTE_DOCUMENT
      - SEARCH
      - DOCUMENT_UPLOAD
      title: SourceTypes
    Body_create_source_upload_insight__insight_id__source_upload_post:
      properties:
        files:
          items:
            type: string
            contentMediaType: application/octet-stream
          type: array
          title: Files
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        public:
          type: boolean
          title: Public
          default: false
        keywords:
          type: string
          title: Keywords
        snippet_length:
          type: integer
          title: Snippet Length
        source_alias:
          type: string
          title: Source Alias
      type: object
      required:
      - files
      - name
      title: Body_create_source_upload_insight__insight_id__source_upload_post
    DocumentUploadData:
      properties:
        source_type:
          type: string
          const: DOCUMENT_UPLOAD
          title: Source Type
        path:
          anyOf:
          - type: string
          - type: 'null'
          title: Path
        keywords:
          anyOf:
          - type: string
          - type: 'null'
          title: Keywords
        source_alias:
          anyOf:
          - type: string
          - type: 'null'
          title: Source Alias
      type: object
      required:
      - source_type
      title: DocumentUploadData
    SourceUpdate:
      properties:
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        public:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Public
        keywords:
          anyOf:
          - type: string
          - type: 'null'
          title: Keywords
      additionalProperties: false
      type: object
      title: SourceUpdate
    RemoteDocumentData:
      properties:
        source_type:
          type: string
          const: REMOTE_DOCUMENT
          title: Source Type
        url:
          type: string
          maxLength: 2083
          minLength: 1
          format: uri
          title: Url
        keywords:
          anyOf:
          - type: string
          - type: 'null'
          title: Keywords
        source_alias:
          anyOf:
          - type: string
          - type: 'null'
          title: Source Alias
      type: object
      required:
      - source_type
      - url
      title: RemoteDocumentData
    SourceCreate:
      properties:
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        public:
          type: boolean
          title: Public
          default: false
        source_data:
          oneOf:
          - $ref: '#/components/schemas/RemoteDocumentData'
          - $ref: '#/components/schemas/WebsiteData'
          - $ref: '#/components/schemas/DocumentUploadData'
          title: Source Data
          discriminator:
            propertyName: source_type
            mapping:
              DOCUMENT_UPLOAD: '#/components/schemas/DocumentUploadData'
              REMOTE_DOCUMENT: '#/components/schemas/RemoteDocumentData'
              WEBSITE: '#/components/schemas/WebsiteData'
      additionalProperties: false
      type: object
      required:
      - source_data
      title: SourceCreate
      examples:
      - name: Wikipedia Article
        source_data:
          source_type: WEBSITE
          url: https://en.wikipedia.org/wiki/Example
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  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