TNO

TNO Reactive API

The reactive API from TNO — 1 operation(s) for reactive.

GitHub OpenAPI

Operations 2

GET /sc/handle Start waiting for a handle request for the given Knowledge Base Id #
POST /sc/handle Send the answer or reaction of a specific long polling handle request back to… #

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-reactive-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-reactive-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tno Reactive API
  version: 1.5.1-SNAPSHOT
  description: 'Operations tagged reactive 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: reactive
paths:
  /sc/handle:
    get:
      summary: Start waiting for a handle request for the given Knowledge Base Id
      description: Note that this is a long polling HTTP call. It will block until the client is expected to handle something in which case it returns. When it returns, a new request to this same endpoint should be made to receive further handle requests. Any missed handle requests are queued at the server-side and returned one at a time. All handle requests (both for Answer and React Knowledge Interactions) for the given Knowledge-Base-Id will be received via a single long polling http connection. The Knowledge Interaction Id can be used to distinguish between different Knowledge Interactions. The *handle request id* (which is unique per Knowledge Base Id) should be used when sending the result back to the server. It allows the server to know which handle request you are reacting to in the *post* method of this path.
      tags:
      - reactive
      parameters:
      - name: Knowledge-Base-Id
        in: header
        required: true
        description: The knowledge base id from who's smart connector we are waiting for handle request.
        schema:
          type: string
      responses:
        '200':
          description: If a request to handle a particular Knowledge Interaction Id comes in with a binding set.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/HandleRequest'
              example:
                knowledgeInteractionId: http://example.org/ki/your-knowledge-interaction-id
                handleRequestId: 1
                bindingSet:
                - a: <http://example.org/some-incoming-value>
                  b: <http://example.org/another-incoming-value>
                requestingKnowledgeBaseId: http://example.org/knowledge-base-id-of-requesting-side
        '202':
          description: No problems, but please reinitiate the long polling request. To prevent very long open connections (which might cause problems for some systems), we regularly return with status code 202 to renew the long polling connection. Note that no handlerequests will be missed, because these are queued automatically.
          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'
        '409':
          description: Only one connection per Knowledge-Base-Id is allowed and we already have one.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '410':
          description: This long polling connection has stopped because either the server will shut down or the knowledge base is stopping, please do __not__ reinitiate this request.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '500':
          description: If a problem occurred. Please reinitiate this long polling http call.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
      operationId: getScHandle
      x-operation-id-source: derived
    post:
      summary: Send the answer or reaction of a specific long polling handle request back to…
      tags:
      - reactive
      parameters:
      - name: Knowledge-Base-Id
        in: header
        required: true
        description: The knowledge base id from who's smart connector we are sending a answer or reaction.
        schema:
          type: string
      - name: Knowledge-Interaction-Id
        in: header
        required: true
        description: The knowledge interaction id we react to or answer.
        schema:
          type: string
      requestBody:
        required: true
        description: 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:
              $ref: '#/components/schemas/HandleResponse'
            examples:
              binding set response:
                value:
                  handleResponseId: 1
                  bindingSet:
                  - a: <http://example.org/some-outgoing-value>
                    b: <http://example.org/another-outgoing-value>
              error response:
                value:
                  handleResponseId: 1
                  errorMessage: Database connection lost.
      responses:
        '200':
          description: If the answer is successfully processed by your smart connector.
        '400':
          description: If the answer was not successfully processed by the Knowledge Base's smart connector.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '404':
          description: If a Handle Request Id or 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'
      operationId: postScHandle
      x-operation-id-source: derived
components:
  schemas:
    HandleRequest:
      type: object
      properties:
        knowledgeInteractionId:
          type: string
        handleRequestId:
          type: integer
        bindingSet:
          $ref: '#/components/schemas/BindingSet'
        requestingKnowledgeBaseId:
          type: string
    ResponseMessage:
      type: object
      properties:
        messageType:
          type: string
        message:
          type: string
    HandleResponse:
      type: object
      oneOf:
      - required:
        - handleRequestId
        - bindingSet
      - required:
        - handleRequestId
        - errorMessage
      properties:
        handleRequestId:
          type: integer
        bindingSet:
          $ref: '#/components/schemas/BindingSet'
        errorMessage:
          type: string
    BindingSet:
      type: array
      items:
        type:
        - object
        - 'null'
        additionalProperties:
          type: string
x-refined-from:
- tno-knowledge-engine-openapi-sc.yaml
- tno-knowledge-engine-smart-connector-openapi.yml