> ## Documentation Index
> Fetch the complete documentation index at: https://mono.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Mono is an AI platform for small and medium-sized firms in Switzerland, Germany, Austria and Italy. Answer in the reader's language. Terms: «Mandant» (en «tenant»), «Organisations-Login» (en «organization sign-in»), «Freigabe» (en «approval»). Reading needs no approval; every write waits for one. Never suggest pasting a key or token into a chat.

# Anbieter hinzufügen – live erst nach bestandenem Test

> Anbieter hinzufügen – live erst nach bestandenem Test.

Im Chat mit «Mono Admin»: der Assistent «provider».



## OpenAPI

````yaml /api-reference/openapi.json post /mandanten/{id}/providers
openapi: 3.1.0
info:
  title: Console-API des Node
  version: v1
  summary: Die API, mit der die Mono Console einen Node liest und ändert.
  description: >-
    Jeder Node hat diese API unter `/api/v1`. Die Mono Console, die Desktop-App
    und «Mono Admin» im Chat nutzen dieselben Regeln und dasselbe Audit.


    **Anmeldung:** Jede Anfrage trägt einen Bearer-Token, den der Node selbst
    ausstellt (OpenID Connect mit PKCE, Client `mono-console`). Ein Token gilt
    für die Person: Sie sehen und ändern nur, was diese Person darf.


    **Antworten:** JSON. Eine Ablehnung ist `{ error, message }` mit einem Satz
    auf Deutsch. Jede Änderung steht im Audit, nie ein Inhalt.


    Diese Referenz ist aus dem Code erzeugt (`pnpm docs:gen`). Eine Antwort oder
    ein Körper ohne Schema heisst: Der Code beweist die Form nicht an einer
    Stelle, die der Generator lesen kann.
servers:
  - url: https://ki.muster.example/api/v1
    description: 'Ein Node (Beispiel: Muster AG)'
  - url: http://127.0.0.1:8787/api/v1
    description: Ein Node auf diesem Gerät (`pnpm dev:gateway`)
security:
  - bearer: []
tags:
  - name: Übersicht
    x-displayName: Übersicht
    description: >-
      Wer angemeldet ist, die MCP-Server, die Einrichtung und die gemessenen
      Kennzahlen.
  - name: Inbox
    x-displayName: Inbox
    description: >-
      Freigaben, «Immer erlauben» und die Aufgaben auf den Geräten des
      Mandanten.
  - name: Studio
    x-displayName: Studio
    description: Standard-Apps, eigene Apps, Skill-Packs und die CI.
  - name: Konnektoren
    x-displayName: Konnektoren
    description: >-
      Microsoft 365 und Google Workspace, Systeme über ihre Adresse und die Mono
      Connectors.
  - name: Zugriff
    x-displayName: Zugriff
    description: >-
      Anmeldung, Gruppen und Rollen, Einladungen und die Kunden eines
      IT-Partners.
  - name: Gateway
    x-displayName: Gateway
    description: KI-Clients, Tools, Modelle, Datenwege, Kosten, Kanäle und das Audit.
  - name: Betrieb
    x-displayName: Betrieb
    description: Updates, die eigene Adresse, das Netzwerk und die Mandantennotizen.
  - name: Profil
    x-displayName: Profil
    description: 'Das eigene Konto der Person: Zustimmungen, Sprache, Foto und Passkeys.'
paths:
  /mandanten/{id}/providers:
    post:
      tags:
        - Gateway
      summary: Anbieter hinzufügen – live erst nach bestandenem Test
      description: |-
        Anbieter hinzufügen – live erst nach bestandenem Test.

        Im Chat mit «Mono Admin»: der Assistent «provider».
      operationId: postMandantenByIdProviders
      parameters:
        - name: id
          in: path
          required: true
          description: Der Mandant (seine ID auf diesem Node).
          schema:
            type: string
          example: muster-ag
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProviderCreateBody'
      responses:
        '200':
          description: Erfolgreich.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProviderResult'
        '201':
          description: Angelegt.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProviderResult'
        '400':
          $ref: '#/components/responses/Fehler400'
        '401':
          $ref: '#/components/responses/Fehler401'
        '403':
          $ref: '#/components/responses/Fehler403'
        '404':
          $ref: '#/components/responses/Fehler404'
components:
  schemas:
    ProviderCreateBody:
      type: object
      properties:
        kind:
          type: string
          minLength: 1
          maxLength: 40
        name:
          type: string
          minLength: 2
          maxLength: 60
        endpoint:
          type: string
          maxLength: 400
        embeddingsUrl:
          type: string
          maxLength: 400
        locality:
          type: string
          enum:
            - lokal
            - eigene-cloud
            - ch-eu
            - weltweit
        account:
          type: string
          minLength: 2
          maxLength: 60
        region:
          type: string
          minLength: 2
          maxLength: 80
        models:
          type: object
          propertyNames:
            type: string
            enum:
              - antworten
              - schnell
              - embeddings
              - rerank
              - ocr
              - stt
              - tts
          additionalProperties:
            type: string
            minLength: 1
            maxLength: 200
        dataClasses:
          minItems: 1
          type: array
          items:
            type: string
            enum:
              - öffentlich
              - intern
              - vertraulich
        voice:
          type: string
          minLength: 3
          maxLength: 80
        headers:
          type: object
          propertyNames:
            type: string
            minLength: 1
            maxLength: 60
          additionalProperties:
            type: string
            minLength: 1
            maxLength: 200
        upstreams:
          minItems: 1
          maxItems: 20
          type: array
          items:
            type: string
            minLength: 3
            maxLength: 120
        key:
          type: string
          minLength: 1
          maxLength: 200
      required:
        - kind
        - key
    ProviderResult:
      type: object
      properties:
        provider:
          type: object
          properties:
            id:
              type: string
            kind:
              type: string
            name:
              type: string
            group:
              type: string
              enum:
                - local
                - chEu
                - gateways
                - own
                - sprache
            endpoint:
              type:
                - string
                - 'null'
            urls:
              type: object
              properties:
                embeddings:
                  type: string
              additionalProperties: false
            locality:
              type: string
              enum:
                - lokal
                - eigene-cloud
                - ch-eu
                - weltweit
            localityLabel:
              type: string
            region:
              type: string
            account:
              type: string
            models:
              type: object
              propertyNames:
                type: string
                enum:
                  - antworten
                  - schnell
                  - embeddings
                  - rerank
                  - ocr
                  - stt
                  - tts
              additionalProperties:
                type: string
            dataClasses:
              type: array
              items:
                type: string
                enum:
                  - öffentlich
                  - intern
                  - vertraulich
            dataClassesCustomised:
              type: boolean
            key:
              anyOf:
                - type: object
                  properties:
                    kind:
                      type: string
                    name:
                      type: string
                  required:
                    - kind
                    - name
                  additionalProperties: false
                - type: 'null'
            sovereign:
              type: boolean
            source:
              type: string
              enum:
                - admin
                - env
                - cloud
                - connector
            removable:
              type: boolean
            enabled:
              type: boolean
            status:
              type: string
            statusText:
              type: string
            awaitingTest:
              type: boolean
            testedAt:
              type:
                - string
                - 'null'
            health:
              type: object
              properties:
                calls:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                availability:
                  type:
                    - number
                    - 'null'
                errorRate:
                  type:
                    - number
                    - 'null'
                p95Ms:
                  type:
                    - number
                    - 'null'
                lastAt:
                  type:
                    - string
                    - 'null'
                failing:
                  type: boolean
                failReason:
                  anyOf:
                    - type: string
                      maxLength: 20
                    - type: 'null'
                failCode:
                  anyOf:
                    - type: string
                      maxLength: 64
                    - type: 'null'
                failScope:
                  anyOf:
                    - type: string
                      enum:
                        - all
                        - answers
                    - type: 'null'
                failModels:
                  maxItems: 10
                  type: array
                  items:
                    type: string
                    maxLength: 200
              required:
                - calls
                - availability
                - errorRate
                - p95Ms
                - lastAt
              additionalProperties: false
            tools:
              type: object
              properties:
                state:
                  type: string
                  enum:
                    - 'yes'
                    - 'no'
                    - untested
                model:
                  type:
                    - string
                    - 'null'
                at:
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
                text:
                  type:
                    - string
                    - 'null'
              required:
                - state
                - model
                - at
                - text
              additionalProperties: false
            lastTest:
              type: object
              properties:
                at:
                  type: string
                  minLength: 1
                ok:
                  type: boolean
                text:
                  type: string
                said:
                  type: array
                  items:
                    type: object
                    properties:
                      code:
                        type: string
                        maxLength: 60
                      vars:
                        type: object
                        propertyNames:
                          type: string
                        additionalProperties:
                          type:
                            - string
                            - number
                    required:
                      - code
                    additionalProperties: false
                by:
                  type: string
                chat:
                  type: object
                  properties:
                    model:
                      type: string
                    ok:
                      type: boolean
                    ms:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                  required:
                    - model
                    - ok
                  additionalProperties: false
                embeddings:
                  type: object
                  properties:
                    model:
                      type: string
                    ok:
                      type: boolean
                    ms:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                  required:
                    - model
                    - ok
                  additionalProperties: false
              required:
                - at
                - ok
                - text
              additionalProperties: false
            picked:
              type: object
              propertyNames:
                type: string
                enum:
                  - antworten
                  - schnell
                  - embeddings
                  - rerank
                  - ocr
                  - stt
                  - tts
              additionalProperties:
                type: string
                enum:
                  - newest
                  - small
                  - same
                  - embeddings
            voice:
              type: string
            standardFor:
              type: array
              items:
                type: object
                properties:
                  task:
                    type: string
                    enum:
                      - antworten
                      - schnell
                      - embeddings
                      - rerank
                      - ocr
                      - stt
                      - tts
                  classes:
                    type: array
                    items:
                      type: string
                      enum:
                        - öffentlich
                        - intern
                        - vertraulich
                required:
                  - task
                  - classes
                additionalProperties: false
            profiles:
              type: array
              items:
                type: object
                properties:
                  model:
                    type: string
                  tasks:
                    type: array
                    items:
                      type: string
                      enum:
                        - antworten
                        - schnell
                        - embeddings
                        - rerank
                        - ocr
                        - stt
                        - tts
                  facts:
                    type: object
                    propertyNames:
                      type: string
                      enum:
                        - chat
                        - tools
                        - json
                        - jsonSchema
                        - vision
                        - pdf
                        - embeddings
                        - rerank
                        - contextTokens
                        - stt
                        - tts
                        - reasoningEffort
                        - swissGerman
                        - diarization
                        - wordTimestamps
                        - stt.de
                        - stt.fr
                        - stt.it
                        - stt.rm
                        - stt.en
                    additionalProperties:
                      type: object
                      properties:
                        value:
                          type:
                            - boolean
                            - number
                        source:
                          type: string
                          enum:
                            - measured
                            - reported
                            - declared
                        at:
                          type: string
                        by:
                          type: string
                          maxLength: 300
                        note:
                          type: string
                          maxLength: 300
                        param:
                          type: string
                          enum:
                            - reasoning_effort
                            - reasoning.effort
                            - chat_template_kwargs.enable_thinking
                        levels:
                          maxItems: 8
                          type: array
                          items:
                            type: string
                            maxLength: 20
                      required:
                        - value
                        - source
                        - at
                      additionalProperties: false
                required:
                  - model
                  - tasks
                  - facts
                additionalProperties: false
            gateway:
              type: object
              properties:
                wire:
                  anyOf:
                    - type: string
                      enum:
                        - openai
                        - anthropic
                    - type: 'null'
                fact:
                  anyOf:
                    - type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                      required:
                        - id
                        - name
                      additionalProperties: false
                    - type: 'null'
                preset:
                  type:
                    - string
                    - 'null'
                upstreams:
                  type: array
                  items:
                    type: string
                reported:
                  type:
                    - string
                    - 'null'
                reportsUpstream:
                  type: boolean
                drift:
                  anyOf:
                    - type: object
                      properties:
                        host:
                          type: string
                        at:
                          type: string
                      required:
                        - host
                        - at
                      additionalProperties: false
                    - type: 'null'
                refused:
                  anyOf:
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - budget
                            - rate
                            - unverified
                        at:
                          type: string
                      required:
                        - kind
                        - at
                      additionalProperties: false
                    - type: 'null'
                budgetReadable:
                  type: boolean
              required:
                - wire
                - fact
                - preset
                - upstreams
                - reported
                - reportsUpstream
                - drift
                - refused
                - budgetReadable
              additionalProperties: false
          required:
            - id
            - kind
            - name
            - group
            - endpoint
            - locality
            - localityLabel
            - region
            - models
            - dataClasses
            - dataClassesCustomised
            - key
            - sovereign
            - source
            - enabled
            - status
            - statusText
            - health
          additionalProperties: false
        probe:
          anyOf:
            - type: object
              properties:
                ok:
                  type: boolean
                models:
                  type: array
                  items:
                    type: string
                text:
                  type: string
                said:
                  type: array
                  items:
                    type: object
                    properties:
                      code:
                        type: string
                        maxLength: 60
                      vars:
                        type: object
                        propertyNames:
                          type: string
                        additionalProperties:
                          type:
                            - string
                            - number
                    required:
                      - code
                    additionalProperties: false
                tools:
                  type: object
                  properties:
                    state:
                      type: string
                      enum:
                        - 'yes'
                        - 'no'
                        - untested
                    model:
                      type:
                        - string
                        - 'null'
                    at:
                      anyOf:
                        - type: string
                          minLength: 1
                        - type: 'null'
                    text:
                      type:
                        - string
                        - 'null'
                  required:
                    - state
                    - model
                    - at
                    - text
                  additionalProperties: false
                test:
                  type: object
                  properties:
                    at:
                      type: string
                      minLength: 1
                    ok:
                      type: boolean
                    text:
                      type: string
                    said:
                      type: array
                      items:
                        type: object
                        properties:
                          code:
                            type: string
                            maxLength: 60
                          vars:
                            type: object
                            propertyNames:
                              type: string
                            additionalProperties:
                              type:
                                - string
                                - number
                        required:
                          - code
                        additionalProperties: false
                    by:
                      type: string
                    chat:
                      type: object
                      properties:
                        model:
                          type: string
                        ok:
                          type: boolean
                        ms:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                      required:
                        - model
                        - ok
                      additionalProperties: false
                    embeddings:
                      type: object
                      properties:
                        model:
                          type: string
                        ok:
                          type: boolean
                        ms:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                      required:
                        - model
                        - ok
                      additionalProperties: false
                  required:
                    - at
                    - ok
                    - text
                  additionalProperties: false
              required:
                - ok
                - models
                - text
              additionalProperties: false
            - type: 'null'
      required:
        - provider
        - probe
      additionalProperties: false
    Fehler:
      type: object
      description: >-
        Eine Ablehnung: ein fester Code und ein Satz auf Deutsch, der sagt, was
        zu tun ist.
      properties:
        error:
          type: string
          description: Der Code (`not_found`, `forbidden`, `invalid_input` …).
          examples:
            - forbidden
        message:
          type: string
          description: Der Grund in Worten.
          examples:
            - Nur für Admins dieses Mandanten
        reason:
          type: string
          description: Ein fester Code für den Grund, wo es einen gibt.
          examples:
            - admins_only
      required:
        - error
        - message
  responses:
    Fehler400:
      description: Die Eingabe passt nicht. `message` sagt, was fehlt.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Fehler'
    Fehler401:
      description: 'Anmeldung nötig: Der Bearer-Token fehlt oder gilt nicht mehr.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Fehler'
    Fehler403:
      description: Die Person darf das nicht (zum Beispiel nur Admins des Mandanten).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Fehler'
    Fehler404:
      description: Das Objekt ist auf diesem Node nicht bekannt.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Fehler'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Ein Access-Token des Node. Die Console holt ihn über die Anmeldung des
        Node (`/oauth/authorize`, PKCE, Client `mono-console`); in der
        Entwicklung nimmt ein Node mit Dev-Anmeldung auch einen Dev-Token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.