TNO

TNO Proactive API

The proactive API from TNO — 2 operation(s) for proactive.

GitHub OpenAPI

Operations 2

POST /sc/ask Execute the given Ask Knowledge Interaction with the given binding set. #
POST /sc/post Execute the given Post Knowledge Interaction with the given binding set. #

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/tno:tno-proactive-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

tno-proactive-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tno Proactive API
  version: 1.5.1-SNAPSHOT
  description: 'Operations tagged proactive across 2 of this provider''s published API definitions: tno-knowledge-engine-openapi-sc.yaml, tno-knowledge-engine-smart-connector-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://{host}:{port}/rest
  description: Self-hosted Knowledge Engine runtime (TNO open-source software, github.com/TNO/knowledge-engine); no TNO-hosted instance
  variables:
    host:
      default: localhost
    port:
      default: '8280'
tags:
- name: proactive
paths:
  /sc/ask:
    post:
      summary: Execute the given Ask Knowledge Interaction with the given binding set.
      tags:
      - proactive
      parameters:
      - name: Knowledge-Base-Id
        in: header
        required: true
        description: The Knowledge Base Id for which to execute the ask.
        schema:
          type: string
      - name: Knowledge-Interaction-Id
        in: header
        required: true
        description: The Ask Knowledge Interaction Id to execute.
        schema:
          type: string
      requestBody:
        required: true
        description: Either a BindingSet only or a RecipientSelector and BindingSet. The recipient selector currently only supports a single Knowledge-Base-Id, but might be extended in the future. The keys (i.e. variables) in the BindingSet are allowed to be incomplete, but they must correspond to the keys that were defined in the graph pattern of the knowledge interaction.
        content:
          application/json; charset=UTF-8:
            schema:
              oneOf:
              - $ref: '#/components/schemas/RecipientAndBindingSet'
              - $ref: '#/components/schemas/BindingSet'
            examples:
              bindingset only:
                value:
                - p: <http://www.example.org/s1>
                  q: <http://www.example.org/p1>
                  r: <http://www.example.org/o1>
              recipient and bindingset:
                value:
                  recipientSelector:
                    knowledgeBases:
                    - http://www.example.org/kb2
                    - http://www.example.org/kb3
                  bindingSet:
                  - p: <http://www.example.org/s1>
                    q: <http://www.example.org/p1>
                    r: <http://www.example.org/o1>
      responses:
        '200':
          description: If the ask was successful it returns all found variable bindings together with additional exchange info. The returned bindings form a set and there is no quaranteed ordering. The exchange info shows the other Knowledge Bases that contributed to the answer with timing, initiator information. If KnowledgeGaps are enabled, a list of knowledge gaps that are found will be returned as well. See, the different examples below.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/AskResult'
              examples:
                knowledge gaps NOT enabled:
                  value:
                    bindingSet:
                    - a: <http://example.org/Barry>
                      b: <http://example.org/Jack>
                    exchangeInfo: []
                knowledge gaps enabled:
                  value:
                    bindingSet:
                    - a: <http://example.org/Barry>
                      b: <http://example.org/Jack>
                    exchangeInfo: []
                    knowledgeGaps:
                    - - ?a <http://example.org/isFatherOf> ?c
                      - ?a <http://example.org/liveInTheSameHouse> ?b
        '400':
          description: If the ask failed.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '404':
          description: If a Knowledge Interaction for the given Knowledge-Base-Id and Knowledge-Interaction-Id cannot be found.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '500':
          description: If an internal server error occurs.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
      operationId: postScAsk
      x-operation-id-source: derived
  /sc/post:
    post:
      summary: Execute the given Post Knowledge Interaction with the given binding set.
      tags:
      - proactive
      parameters:
      - name: Knowledge-Base-Id
        in: header
        required: true
        description: The Knowledge Base Id for which to execute the post.
        schema:
          type: string
      - name: Knowledge-Interaction-Id
        in: header
        required: true
        description: The Post Knowledge Interaction Id to execute.
        schema:
          type: string
      requestBody:
        required: true
        description: Either a BindingSet only or a RecipientSelector and BindingSet. The recipient selector currently only supports a single Knowledge-Base-Id, but might be extended in the future. The keys bindings must be complete, and they must correspond to the binding keys that were defined in the knowledge interaction.
        content:
          application/json; charset=UTF-8:
            schema:
              oneOf:
              - $ref: '#/components/schemas/RecipientAndBindingSet'
              - $ref: '#/components/schemas/BindingSet'
            examples:
              bindingset only:
                value:
                - p: <http://www.example.org/s1>
                  q: <http://www.example.org/p1>
                  r: <http://www.example.org/o1>
              recipient and bindingset:
                value:
                  recipientSelector:
                    knowledgeBases:
                    - http://www.example.org/kb2
                  bindingSet:
                  - p: <http://www.example.org/s1>
                    q: <http://www.example.org/p1>
                    r: <http://www.example.org/o1>
      responses:
        '200':
          description: If the post was successful it optionally returns all result variable bindings together with all exchange infos. The exchange info shows the other Knowledge Bases that contributed to the answer with timing, initiator information.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/PostResult'
        '404':
          description: If a Knowledge Interaction for the given Knowledge-Base-Id and Knowledge-Interaction-Id cannot be found.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '500':
          description: If an internal server error occurs.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
      operationId: postScPost
      x-operation-id-source: derived
components:
  schemas:
    RecipientSelector:
      type: object
      description: Include a RecipientSelector with your message to ensure it only arrives at the specified Knowledge Base(s).
      properties:
        knowledgeBases:
          type: array
          minItems: 1
          description: List of Knowledge Base IDs, specifying the Knowledge Bases that can receive the message. No other Knowledge Bases will receive t
          items:
            type: string
        singleKnowledgeBase:
          deprecated: true
          description: 'Knowledge Base ID of the recipient. Deprecated: Please use the `knowledgeBases` property with a list of length 1 instead.

            '
          type: string
    ResponseMessage:
      type: object
      properties:
        messageType:
          type: string
        message:
          type: string
    RecipientAndBindingSet:
      type: object
      required:
      - recipientSelector
      - bindingSet
      properties:
        recipientSelector:
          $ref: '#/components/schemas/RecipientSelector'
        bindingSet:
          $ref: '#/components/schemas/BindingSet'
    PostResult:
      type: object
      required:
      - resultBindingSet
      - exchangeInfo
      properties:
        resultBindingSet:
          $ref: '#/components/schemas/BindingSet'
        exchangeInfo:
          type: array
          items:
            $ref: '#/components/schemas/ExchangeInfo'
    BindingSet:
      type: array
      items:
        type:
        - object
        - 'null'
        additionalProperties:
          type: string
    ExchangeInfo:
      type: object
      discriminator:
        propertyName: knowledgeInteractionType
        mapping:
          ReactKnowledgeInteraction: '#/components/schemas/PostExchangeInfo'
          AnswerKnowledgeInteraction: '#/components/schemas/AskExchangeInfo'
      required:
      - knowledgeInteractionType
      - initiator
      - knowledgeBaseId
      - knowledgeInteractionId
      - exchangeStart
      - exchangeEnd
      - status
      properties:
        initiator:
          type: string
          enum:
          - knowledgeBase
          - reasoner
        knowledgeBaseId:
          type: string
        knowledgeInteractionId:
          type: string
        exchangeStart:
          type: string
          format: date-time
        exchangeEnd:
          type: string
          format: date-time
        status:
          type: string
        failedMessage:
          type: string
    KnowledgeGap:
      type: array
      items:
        type: string
    AskResult:
      type: object
      required:
      - bindingSet
      - exchangeInfo
      properties:
        bindingSet:
          $ref: '#/components/schemas/BindingSet'
        exchangeInfo:
          type: array
          items:
            $ref: '#/components/schemas/ExchangeInfo'
        knowledgeGaps:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/KnowledgeGap'
x-refined-from:
- tno-knowledge-engine-openapi-sc.yaml
- tno-knowledge-engine-smart-connector-openapi.yml