> ## 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.

# Vorlage aus einer live geschalteten eigenen App bauen (die Partner-Console)

> Vorlage aus einer live geschalteten eigenen App bauen (die Partner-Console).

Im Chat: nicht vorgesehen. Die Partner-Console trägt die Vorlage mit den Anmeldungen der Person bei beiden Nodes vom eigenen Mandanten zu den Kunden (ADR-0086 § 5). Ein Chat ist mit einem «Mono Admin» (einem Node) verbunden und erreicht die Kunden-Nodes nicht; jeder Kunde installiert danach in seinem eigenen «Mono Admin».



## OpenAPI

````yaml /api-reference/openapi.json get /mandanten/{id}/catalog/templates/{app}
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}/catalog/templates/{app}:
    get:
      tags:
        - Studio
      summary: >-
        Vorlage aus einer live geschalteten eigenen App bauen (die
        Partner-Console)
      description: >-
        Vorlage aus einer live geschalteten eigenen App bauen (die
        Partner-Console).


        Im Chat: nicht vorgesehen. Die Partner-Console trägt die Vorlage mit den
        Anmeldungen der Person bei beiden Nodes vom eigenen Mandanten zu den
        Kunden (ADR-0086 § 5). Ein Chat ist mit einem «Mono Admin» (einem Node)
        verbunden und erreicht die Kunden-Nodes nicht; jeder Kunde installiert
        danach in seinem eigenen «Mono Admin».
      operationId: getMandantenByIdCatalogTemplatesByApp
      parameters:
        - name: id
          in: path
          required: true
          description: Der Mandant (seine ID auf diesem Node).
          schema:
            type: string
          example: muster-ag
        - name: app
          in: path
          required: true
          description: Die ID.
          schema:
            type: string
        - name: lang
          in: query
          required: false
          description: >-
            Die Sprache, in der die Console die Sätze des Servers zeigt
            (Standard: die Sprache der Person, sonst «Accept-Language») – in der
            Kartenvorschau die Sprache, in der die Karte gezeichnet wird.
          schema:
            type: string
            enum:
              - de-CH
              - fr-CH
              - it-CH
              - rm-CH
              - en
          example: en
      responses:
        '200':
          description: Erfolgreich.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CatalogTemplateResponse'
        '401':
          $ref: '#/components/responses/Fehler401'
        '403':
          $ref: '#/components/responses/Fehler403'
        '404':
          $ref: '#/components/responses/Fehler404'
components:
  schemas:
    CatalogTemplateResponse:
      type: object
      properties:
        manifest:
          type: object
          properties:
            schema:
              type: number
              const: 1
            id:
              type: string
              pattern: ^[a-z][a-z0-9-]{2,39}$
            version:
              type: string
              pattern: ^\d{1,3}\.\d{1,3}\.\d{1,3}$
            publisher:
              type: object
              properties:
                kind:
                  type: string
                  enum:
                    - mono
                    - official-partner
                    - partner
                name:
                  type: string
                  minLength: 2
                  maxLength: 80
                website:
                  type: string
                  maxLength: 300
                  pattern: ^https:\/\/[^\s/@]+(\/[^\s@]*)?$
                help:
                  type: object
                  properties:
                    phone:
                      type: string
                      maxLength: 40
                    email:
                      type: string
                      maxLength: 120
                      format: email
                      pattern: >-
                        ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
                    url:
                      type: string
                      maxLength: 300
                      pattern: ^https:\/\/[^\s/@]+(\/[^\s@]*)?$
                    address:
                      type: string
                      maxLength: 200
                    portal:
                      type: string
                      maxLength: 300
                      pattern: ^https:\/\/[^\s/@]+(\/[^\s@]*)?$
                  additionalProperties: false
              required:
                - kind
                - name
                - help
              additionalProperties: false
            icon:
              anyOf:
                - type: object
                  properties:
                    src:
                      type: string
                      pattern: ^data:image\/(png|svg\+xml);base64,[A-Za-z0-9+/]+=*$
                    plate:
                      type: string
                      enum:
                        - light
                        - dark
                        - none
                  required:
                    - src
                    - plate
                  additionalProperties: false
                - type: 'null'
            dataClass:
              type: string
              enum:
                - öffentlich
                - intern
            services:
              maxItems: 12
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^[a-z][a-z0-9-]{1,30}$
                  way:
                    type: string
                    enum:
                      - system
                      - suite
                      - connector
                      - soon
                  system:
                    type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - mcp
                          - openapi
                          - rest
                          - graphql
                          - feed
                          - odata
                          - soap
                          - caldav
                          - webdav
                          - s3
                      address:
                        type: string
                        maxLength: 300
                        pattern: ^https:\/\/[^\s/@]+(\/[^\s@]*)?$
                      addressHint:
                        type: string
                        maxLength: 200
                      auth:
                        type: string
                        enum:
                          - none
                          - key
                          - bearer
                          - basic
                          - sigv4
                      header:
                        type: string
                        maxLength: 80
                      region:
                        type: string
                        maxLength: 40
                      operations:
                        maxItems: 40
                        type: array
                        items:
                          type: object
                          properties:
                            key:
                              type: string
                              pattern: ^[a-z][a-z0-9_]{1,40}$
                            title:
                              type: string
                              minLength: 2
                              maxLength: 80
                            description:
                              default: ''
                              type: string
                              maxLength: 500
                            method:
                              type: string
                              enum:
                                - GET
                                - POST
                                - PUT
                                - PATCH
                                - DELETE
                            path:
                              type: string
                              maxLength: 300
                            input:
                              type: object
                              propertyNames:
                                type: string
                              additionalProperties: {}
                          required:
                            - key
                            - title
                            - description
                            - method
                            - path
                          additionalProperties: false
                      chosen:
                        maxItems: 40
                        type: array
                        items:
                          type: string
                          maxLength: 60
                      dataClass:
                        type: string
                        enum:
                          - öffentlich
                          - intern
                    required:
                      - kind
                      - auth
                    additionalProperties: false
                  suite:
                    type: string
                    enum:
                      - microsoft
                      - google
                  standard:
                    type: boolean
                required:
                  - id
                  - way
                additionalProperties: false
            texts:
              type: object
              properties:
                de-CH:
                  type: object
                  properties:
                    name:
                      type: string
                      minLength: 2
                      maxLength: 40
                    purpose:
                      type: string
                      minLength: 10
                      maxLength: 600
                    setup:
                      type: string
                      minLength: 2
                      maxLength: 60
                    services:
                      type: object
                      propertyNames:
                        type: string
                      additionalProperties:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 2
                            maxLength: 80
                          text:
                            type: string
                            minLength: 5
                            maxLength: 400
                          soon:
                            type: string
                            maxLength: 300
                          today:
                            type: string
                            maxLength: 300
                        required:
                          - title
                          - text
                        additionalProperties: false
                    knowledge:
                      maxItems: 12
                      type: array
                      items:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 2
                            maxLength: 80
                          body:
                            type: string
                            minLength: 10
                            maxLength: 2000
                        required:
                          - title
                          - body
                        additionalProperties: false
                    prompts:
                      maxItems: 8
                      type: array
                      items:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 2
                            maxLength: 60
                          text:
                            type: string
                            minLength: 5
                            maxLength: 300
                        required:
                          - title
                          - text
                        additionalProperties: false
                  required:
                    - name
                    - purpose
                    - setup
                    - services
                    - knowledge
                    - prompts
                  additionalProperties: false
                fr-CH:
                  type: object
                  properties:
                    name:
                      type: string
                      minLength: 2
                      maxLength: 40
                    purpose:
                      type: string
                      minLength: 10
                      maxLength: 600
                    setup:
                      type: string
                      minLength: 2
                      maxLength: 60
                    services:
                      type: object
                      propertyNames:
                        type: string
                      additionalProperties:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 2
                            maxLength: 80
                          text:
                            type: string
                            minLength: 5
                            maxLength: 400
                          soon:
                            type: string
                            maxLength: 300
                          today:
                            type: string
                            maxLength: 300
                        required:
                          - title
                          - text
                        additionalProperties: false
                    knowledge:
                      maxItems: 12
                      type: array
                      items:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 2
                            maxLength: 80
                          body:
                            type: string
                            minLength: 10
                            maxLength: 2000
                        required:
                          - title
                          - body
                        additionalProperties: false
                    prompts:
                      maxItems: 8
                      type: array
                      items:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 2
                            maxLength: 60
                          text:
                            type: string
                            minLength: 5
                            maxLength: 300
                        required:
                          - title
                          - text
                        additionalProperties: false
                  required:
                    - name
                    - purpose
                    - setup
                    - services
                    - knowledge
                    - prompts
                  additionalProperties: false
                it-CH:
                  type: object
                  properties:
                    name:
                      type: string
                      minLength: 2
                      maxLength: 40
                    purpose:
                      type: string
                      minLength: 10
                      maxLength: 600
                    setup:
                      type: string
                      minLength: 2
                      maxLength: 60
                    services:
                      type: object
                      propertyNames:
                        type: string
                      additionalProperties:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 2
                            maxLength: 80
                          text:
                            type: string
                            minLength: 5
                            maxLength: 400
                          soon:
                            type: string
                            maxLength: 300
                          today:
                            type: string
                            maxLength: 300
                        required:
                          - title
                          - text
                        additionalProperties: false
                    knowledge:
                      maxItems: 12
                      type: array
                      items:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 2
                            maxLength: 80
                          body:
                            type: string
                            minLength: 10
                            maxLength: 2000
                        required:
                          - title
                          - body
                        additionalProperties: false
                    prompts:
                      maxItems: 8
                      type: array
                      items:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 2
                            maxLength: 60
                          text:
                            type: string
                            minLength: 5
                            maxLength: 300
                        required:
                          - title
                          - text
                        additionalProperties: false
                  required:
                    - name
                    - purpose
                    - setup
                    - services
                    - knowledge
                    - prompts
                  additionalProperties: false
                rm-CH:
                  type: object
                  properties:
                    name:
                      type: string
                      minLength: 2
                      maxLength: 40
                    purpose:
                      type: string
                      minLength: 10
                      maxLength: 600
                    setup:
                      type: string
                      minLength: 2
                      maxLength: 60
                    services:
                      type: object
                      propertyNames:
                        type: string
                      additionalProperties:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 2
                            maxLength: 80
                          text:
                            type: string
                            minLength: 5
                            maxLength: 400
                          soon:
                            type: string
                            maxLength: 300
                          today:
                            type: string
                            maxLength: 300
                        required:
                          - title
                          - text
                        additionalProperties: false
                    knowledge:
                      maxItems: 12
                      type: array
                      items:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 2
                            maxLength: 80
                          body:
                            type: string
                            minLength: 10
                            maxLength: 2000
                        required:
                          - title
                          - body
                        additionalProperties: false
                    prompts:
                      maxItems: 8
                      type: array
                      items:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 2
                            maxLength: 60
                          text:
                            type: string
                            minLength: 5
                            maxLength: 300
                        required:
                          - title
                          - text
                        additionalProperties: false
                  required:
                    - name
                    - purpose
                    - setup
                    - services
                    - knowledge
                    - prompts
                  additionalProperties: false
                en:
                  type: object
                  properties:
                    name:
                      type: string
                      minLength: 2
                      maxLength: 40
                    purpose:
                      type: string
                      minLength: 10
                      maxLength: 600
                    setup:
                      type: string
                      minLength: 2
                      maxLength: 60
                    services:
                      type: object
                      propertyNames:
                        type: string
                      additionalProperties:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 2
                            maxLength: 80
                          text:
                            type: string
                            minLength: 5
                            maxLength: 400
                          soon:
                            type: string
                            maxLength: 300
                          today:
                            type: string
                            maxLength: 300
                        required:
                          - title
                          - text
                        additionalProperties: false
                    knowledge:
                      maxItems: 12
                      type: array
                      items:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 2
                            maxLength: 80
                          body:
                            type: string
                            minLength: 10
                            maxLength: 2000
                        required:
                          - title
                          - body
                        additionalProperties: false
                    prompts:
                      maxItems: 8
                      type: array
                      items:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 2
                            maxLength: 60
                          text:
                            type: string
                            minLength: 5
                            maxLength: 300
                        required:
                          - title
                          - text
                        additionalProperties: false
                  required:
                    - name
                    - purpose
                    - setup
                    - services
                    - knowledge
                    - prompts
                  additionalProperties: false
              required:
                - de-CH
              additionalProperties: false
            prozess:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 200
                zweck:
                  default: ''
                  type: string
                  maxLength: 2000
                rollen:
                  default: []
                  maxItems: 50
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 120
                schritte:
                  minItems: 1
                  maxItems: 200
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        pattern: ^[\w.:-]{1,120}$
                      name:
                        type: string
                        minLength: 1
                        maxLength: 200
                      art:
                        type: string
                        enum:
                          - aufgabe
                          - entscheidung
                          - warten
                          - teilprozess
                          - start
                          - ende
                      rolle:
                        type: string
                        maxLength: 120
                      beschreibung:
                        type: string
                        maxLength: 2000
                      system:
                        type: string
                        maxLength: 200
                      abnahme:
                        type: string
                        maxLength: 2000
                      operationen:
                        default: []
                        maxItems: 20
                        type: array
                        items:
                          type: object
                          properties:
                            art:
                              type: string
                              enum:
                                - mono
                                - suite
                                - system
                            operation:
                              type: string
                              minLength: 1
                              maxLength: 200
                            wirkung:
                              type: string
                              enum:
                                - liest
                                - schreibt
                                - loescht
                                - sendet
                                - bucht
                            fakten:
                              default: []
                              maxItems: 3
                              type: array
                              items:
                                type: string
                                enum:
                                  - amountChf
                                  - recipients
                                  - deletes
                          required:
                            - art
                            - wirkung
                            - fakten
                          additionalProperties: false
                      eingaben:
                        default: []
                        maxItems: 50
                        type: array
                        items:
                          type: string
                          minLength: 1
                          maxLength: 200
                      ausgaben:
                        default: []
                        maxItems: 50
                        type: array
                        items:
                          type: string
                          minLength: 1
                          maxLength: 200
                      regeln:
                        default: []
                        maxItems: 20
                        type: array
                        items:
                          oneOf:
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: text
                                text:
                                  type: string
                                  minLength: 1
                                  maxLength: 2000
                              required:
                                - kind
                                - text
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: skill
                                skill:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                              required:
                                - kind
                                - skill
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: frist
                                regel:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                              required:
                                - kind
                                - regel
                              additionalProperties: false
                      next:
                        default: []
                        maxItems: 50
                        type: array
                        items:
                          type: object
                          properties:
                            nach:
                              type: string
                              pattern: ^[\w.:-]{1,120}$
                            bedingung:
                              type: string
                              maxLength: 200
                          required:
                            - nach
                          additionalProperties: false
                      zielGrund:
                        type: string
                        maxLength: 300
                      vorbehalt:
                        default: null
                        anyOf:
                          - type: string
                            enum:
                              - person
                              - unterschrift
                          - type: 'null'
                      leitplanken:
                        default: []
                        maxItems: 20
                        type: array
                        items:
                          type: string
                          minLength: 1
                          maxLength: 300
                    required:
                      - id
                      - name
                      - art
                      - operationen
                      - eingaben
                      - ausgaben
                      - regeln
                      - next
                      - vorbehalt
                      - leitplanken
                    additionalProperties: false
                fragen:
                  default: []
                  maxItems: 200
                  type: array
                  items:
                    type: object
                    properties:
                      was:
                        type: string
                        minLength: 1
                        maxLength: 300
                      warum:
                        default: ''
                        type: string
                        maxLength: 300
                      schritt:
                        default: null
                        anyOf:
                          - type: string
                            pattern: ^[\w.:-]{1,120}$
                          - type: 'null'
                      rolle:
                        type: string
                        maxLength: 120
                    required:
                      - was
                      - warum
                      - schritt
                    additionalProperties: false
              required:
                - name
                - zweck
                - rollen
                - schritte
                - fragen
              additionalProperties: false
          required:
            - schema
            - id
            - version
            - publisher
            - icon
            - dataClass
            - services
            - texts
          additionalProperties: false
      required:
        - manifest
      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:
    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.