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

# «Neue App» als Formular: dieselben Schritte und Prüfungen wie der Assistent, angelegt in der Sandbox (SY-12)

> «Neue App» als Formular: dieselben Schritte und Prüfungen wie der Assistent, angelegt in der Sandbox (SY-12).

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



## OpenAPI

````yaml /api-reference/openapi.json post /mandanten/{id}/apps
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}/apps:
    post:
      tags:
        - Studio
      summary: >-
        «Neue App» als Formular: dieselben Schritte und Prüfungen wie der
        Assistent, angelegt in der Sandbox (SY-12)
      description: >-
        «Neue App» als Formular: dieselben Schritte und Prüfungen wie der
        Assistent, angelegt in der Sandbox (SY-12).


        Im Chat mit «Mono Admin»: der Assistent «app».
      operationId: postMandantenByIdApps
      parameters:
        - name: id
          in: path
          required: true
          description: Der Mandant (seine ID auf diesem Node).
          schema:
            type: string
          example: muster-ag
        - name: Accept-Language
          in: header
          required: false
          description: >-
            Die Sprache des Browsers; der Node nimmt sie, solange die Person
            keine eigene gewählt hat.
          schema:
            type: string
          example: de-CH
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OwnAppNewBody'
      responses:
        '200':
          description: Erfolgreich.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OwnAppNewResponse'
        '400':
          $ref: '#/components/responses/Fehler400'
        '401':
          $ref: '#/components/responses/Fehler401'
        '403':
          $ref: '#/components/responses/Fehler403'
        '404':
          $ref: '#/components/responses/Fehler404'
components:
  schemas:
    OwnAppNewBody:
      type: object
      properties:
        answers:
          type: object
          propertyNames:
            type: string
          additionalProperties: {}
        create:
          type: boolean
        lang:
          type: string
          maxLength: 10
      required:
        - answers
        - create
    OwnAppNewResponse:
      type: object
      properties:
        form:
          type: object
          properties:
            title:
              type: string
            steps:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                  label:
                    type: string
                  question:
                    type: string
                  required:
                    type: boolean
                  done:
                    type: boolean
                  value:
                    type:
                      - string
                      - 'null'
                  standard:
                    type:
                      - string
                      - 'null'
                  options:
                    anyOf:
                      - type: array
                        items:
                          type: string
                      - type: 'null'
                  values:
                    anyOf:
                      - type: array
                        items:
                          type: string
                      - type: 'null'
                  groups:
                    type: array
                    items:
                      type:
                        - string
                        - 'null'
                required:
                  - key
                  - label
                  - question
                  - required
                  - done
                  - value
                  - standard
                  - options
                  - values
                additionalProperties: false
            problems:
              type: array
              items:
                type: string
            notes:
              type: array
              items:
                type: object
                properties:
                  label:
                    type: string
                  value:
                    type: string
                required:
                  - label
                  - value
                additionalProperties: false
            ready:
              type: boolean
            proposes:
              type: boolean
          required:
            - title
            - steps
            - problems
            - notes
            - ready
          additionalProperties: false
        created:
          anyOf:
            - type: object
              properties:
                app:
                  type: object
                  properties:
                    id:
                      type: string
                    name:
                      type: string
                    serverId:
                      type: string
                    purpose:
                      type: string
                    audience:
                      anyOf:
                        - type: string
                          const: all
                        - type: array
                          items:
                            type: string
                    audienceNames:
                      type: array
                      items:
                        type: string
                    systems:
                      type: array
                      items:
                        type: string
                    writes:
                      type: array
                      items:
                        type: string
                    model:
                      type: string
                    schedule:
                      type:
                        - string
                        - 'null'
                    automation:
                      anyOf:
                        - type: object
                          properties:
                            aufgabe:
                              type:
                                - string
                                - 'null'
                            state:
                              type:
                                - string
                                - 'null'
                            nextAt:
                              anyOf:
                                - type: string
                                  minLength: 1
                                - type: 'null'
                            schedule:
                              type:
                                - string
                                - 'null'
                            lastRuns:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                  state:
                                    type: string
                                  dueAt:
                                    type: string
                                    minLength: 1
                                  endedAt:
                                    type: string
                                    minLength: 1
                                required:
                                  - id
                                  - state
                                  - dueAt
                                additionalProperties: false
                            counts:
                              type: object
                              properties:
                                runs:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                                failed:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                                tokens:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - runs
                                - failed
                                - tokens
                              additionalProperties: false
                            problem:
                              type:
                                - string
                                - 'null'
                            runs:
                              type: boolean
                          required:
                            - aufgabe
                            - state
                            - nextAt
                            - schedule
                            - lastRuns
                            - counts
                            - problem
                          additionalProperties: false
                        - type: 'null'
                    status:
                      type: string
                      enum:
                        - sandbox
                        - live
                    paused:
                      anyOf:
                        - type: object
                          properties:
                            at:
                              type: string
                              minLength: 1
                            reason:
                              type: string
                            system:
                              type: boolean
                          required:
                            - at
                            - reason
                          additionalProperties: false
                        - type: 'null'
                    createdBy:
                      type: string
                    createdAt:
                      type: string
                      minLength: 1
                    tools:
                      type: array
                      items:
                        type: object
                        properties:
                          name:
                            type: string
                          title:
                            type: string
                          kind:
                            type: string
                            enum:
                              - read
                              - write
                          level:
                            type: string
                            enum:
                              - 'off'
                              - 'on'
                              - approval
                          delivered:
                            type: boolean
                          system:
                            type: string
                        required:
                          - name
                          - title
                          - kind
                          - level
                          - delivered
                          - system
                        additionalProperties: false
                    toolsCustomised:
                      type: boolean
                    missing:
                      type: array
                      items:
                        type: object
                        properties:
                          what:
                            type: string
                          text:
                            type: string
                        required:
                          - what
                          - text
                        additionalProperties: false
                    waitsFor:
                      type: array
                      items:
                        type: string
                    grown:
                      type: object
                      properties:
                        reads:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                              title:
                                type: string
                              kind:
                                type: string
                                enum:
                                  - read
                                  - write
                              level:
                                type: string
                                enum:
                                  - 'off'
                                  - 'on'
                                  - approval
                              delivered:
                                type: boolean
                              system:
                                type: string
                            required:
                              - name
                              - title
                              - kind
                              - level
                              - delivered
                              - system
                            additionalProperties: false
                        writes:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                              title:
                                type: string
                              kind:
                                type: string
                                enum:
                                  - read
                                  - write
                              level:
                                type: string
                                enum:
                                  - 'off'
                                  - 'on'
                                  - approval
                              delivered:
                                type: boolean
                              system:
                                type: string
                            required:
                              - name
                              - title
                              - kind
                              - level
                              - delivered
                              - system
                            additionalProperties: false
                        'off':
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                              title:
                                type: string
                              kind:
                                type: string
                                enum:
                                  - read
                                  - write
                              level:
                                type: string
                                enum:
                                  - 'off'
                                  - 'on'
                                  - approval
                              delivered:
                                type: boolean
                              system:
                                type: string
                            required:
                              - name
                              - title
                              - kind
                              - level
                              - delivered
                              - system
                            additionalProperties: false
                      required:
                        - reads
                        - writes
                      additionalProperties: false
                    test:
                      anyOf:
                        - type: object
                          properties:
                            at:
                              type: string
                              minLength: 1
                            by:
                              type: string
                            durationMs:
                              type: integer
                              minimum: 0
                              maximum: 9007199254740991
                            passed:
                              type: boolean
                            current:
                              type: boolean
                            ofLive:
                              type: boolean
                            standing:
                              type: object
                              properties:
                                code:
                                  type: string
                                  enum:
                                    - not_run
                                    - model_down
                                    - model_changed
                                tested:
                                  type:
                                    - string
                                    - 'null'
                                now:
                                  type:
                                    - string
                                    - 'null'
                              required:
                                - code
                                - tested
                                - now
                              additionalProperties: false
                            checks:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                  label:
                                    type: string
                                  state:
                                    type: string
                                    enum:
                                      - ok
                                      - warn
                                      - fail
                                  text:
                                    type: string
                                  said:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        code:
                                          type: string
                                        vars:
                                          type: object
                                          propertyNames:
                                            type: string
                                          additionalProperties:
                                            type:
                                              - string
                                              - number
                                      required:
                                        - code
                                      additionalProperties: false
                                required:
                                  - id
                                  - label
                                  - state
                                  - text
                                additionalProperties: false
                            agent:
                              anyOf:
                                - type: object
                                  properties:
                                    state:
                                      type: string
                                      enum:
                                        - done
                                        - failed
                                        - skipped
                                    steps:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                    tokens:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                    durationMs:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                    calls:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                    refusedWrites:
                                      type: array
                                      items:
                                        type: string
                                    report:
                                      type:
                                        - string
                                        - 'null'
                                    dataClass:
                                      type: string
                                      enum:
                                        - öffentlich
                                        - intern
                                        - vertraulich
                                    text:
                                      type: string
                                    request:
                                      type:
                                        - string
                                        - 'null'
                                    requestBy:
                                      type: string
                                      enum:
                                        - admin
                                        - model
                                    trail:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          tool:
                                            type: string
                                          title:
                                            type: string
                                          kind:
                                            type: string
                                            enum:
                                              - read
                                              - write
                                          outcome:
                                            type: string
                                            enum:
                                              - ok
                                              - input
                                              - error
                                              - preview
                                              - refused
                                          ms:
                                            type: integer
                                            minimum: 0
                                            maximum: 9007199254740991
                                          note:
                                            type:
                                              - string
                                              - 'null'
                                          chars:
                                            anyOf:
                                              - type: integer
                                                minimum: 0
                                                maximum: 9007199254740991
                                              - type: 'null'
                                          mark:
                                            type: string
                                            enum:
                                              - gemessen
                                              - simuliert
                                              - verweigert
                                              - fehler
                                        required:
                                          - tool
                                          - title
                                          - kind
                                          - outcome
                                          - ms
                                          - note
                                          - chars
                                        additionalProperties: false
                                    probe:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                        verdict:
                                          default: nicht_gestartet
                                          type: string
                                          enum:
                                            - bestanden
                                            - hinweis
                                            - nicht_bestanden
                                            - nicht_gestartet
                                            - laeuft
                                            - abgeschnitten
                                        as:
                                          type: object
                                          properties:
                                            kind:
                                              type: string
                                              enum:
                                                - self
                                                - person
                                                - group
                                            id:
                                              type:
                                                - string
                                                - 'null'
                                            name:
                                              type: string
                                            standard:
                                              type: boolean
                                          required:
                                            - kind
                                            - id
                                            - name
                                            - standard
                                          additionalProperties: false
                                        usage:
                                          type: object
                                          properties:
                                            steps:
                                              type: integer
                                              minimum: 0
                                              maximum: 9007199254740991
                                            calls:
                                              type: integer
                                              minimum: 0
                                              maximum: 9007199254740991
                                            tokens:
                                              type: integer
                                              minimum: 0
                                              maximum: 9007199254740991
                                            ms:
                                              type: integer
                                              minimum: 0
                                              maximum: 9007199254740991
                                            chf:
                                              anyOf:
                                                - type: number
                                                  minimum: 0
                                                - type: 'null'
                                            model:
                                              type:
                                                - string
                                                - 'null'
                                            provider:
                                              type:
                                                - string
                                                - 'null'
                                          required:
                                            - steps
                                            - calls
                                            - tokens
                                            - ms
                                            - chf
                                            - model
                                            - provider
                                          additionalProperties: false
                                        expiresAt:
                                          type: string
                                          minLength: 1
                                      required:
                                        - id
                                        - verdict
                                        - as
                                        - usage
                                        - expiresAt
                                      additionalProperties: false
                                  required:
                                    - state
                                    - steps
                                    - tokens
                                    - durationMs
                                    - calls
                                    - refusedWrites
                                    - report
                                    - text
                                  additionalProperties: false
                                - type: 'null'
                          required:
                            - at
                            - by
                            - durationMs
                            - passed
                            - current
                            - checks
                          additionalProperties: false
                        - type: 'null'
                    live:
                      anyOf:
                        - type: object
                          properties:
                            version:
                              type: integer
                              minimum: 0
                              maximum: 9007199254740991
                            at:
                              type: string
                              minLength: 1
                            by:
                              type: string
                            entry:
                              type: string
                            prompt:
                              type: string
                          required:
                            - version
                            - at
                            - by
                            - entry
                            - prompt
                          additionalProperties: false
                        - type: 'null'
                    draft:
                      type: boolean
                    versions:
                      maxItems: 10
                      type: array
                      items:
                        type: object
                        properties:
                          version:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          at:
                            type: string
                            minLength: 1
                          by:
                            type: string
                          name:
                            type: string
                          tools:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          live:
                            type: boolean
                          tested:
                            type: boolean
                        required:
                          - version
                          - at
                          - by
                          - name
                          - tools
                          - live
                          - tested
                        additionalProperties: false
                    goLive:
                      type: object
                      properties:
                        ok:
                          type: boolean
                        reason:
                          type:
                            - string
                            - 'null'
                      required:
                        - ok
                        - reason
                      additionalProperties: false
                    entry:
                      type: string
                    pinned:
                      anyOf:
                        - type: object
                          properties:
                            at:
                              type: string
                            by:
                              type: string
                          required:
                            - at
                            - by
                          additionalProperties: false
                        - type: 'null'
                    members:
                      maxItems: 5
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                          kind:
                            type: string
                            enum:
                              - own
                              - standard
                          live:
                            type: boolean
                        required:
                          - id
                          - name
                          - kind
                          - live
                        additionalProperties: false
                    sample:
                      type:
                        - string
                        - 'null'
                    suggestion:
                      type:
                        - string
                        - 'null'
                    suggestionPending:
                      type: boolean
                    area:
                      anyOf:
                        - type: string
                          maxLength: 40
                        - type: 'null'
                    claudeCode:
                      anyOf:
                        - type: object
                          properties:
                            at:
                              type: string
                            by:
                              type: string
                          required:
                            - at
                            - by
                          additionalProperties: false
                        - type: 'null'
                    origin:
                      anyOf:
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - mono
                                - partner
                            publisher:
                              type: string
                            version:
                              type: string
                          required:
                            - kind
                            - publisher
                            - version
                          additionalProperties: false
                        - type: 'null'
                    usage:
                      type: object
                      properties:
                        calls7:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        calls30:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        last:
                          anyOf:
                            - type: string
                              minLength: 1
                            - type: 'null'
                        days:
                          minItems: 30
                          maxItems: 30
                          type: array
                          items:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                        complete:
                          type: boolean
                      required:
                        - calls7
                        - calls30
                        - last
                        - days
                        - complete
                      additionalProperties: false
                  required:
                    - id
                    - name
                    - serverId
                    - purpose
                    - audience
                    - audienceNames
                    - systems
                    - writes
                    - model
                    - schedule
                    - status
                    - paused
                    - createdBy
                    - createdAt
                    - tools
                    - toolsCustomised
                    - missing
                    - test
                    - live
                    - draft
                    - goLive
                    - entry
                  additionalProperties: false
                candidates:
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                      title:
                        type: string
                      kind:
                        type: string
                        enum:
                          - read
                          - write
                      level:
                        type: string
                        enum:
                          - 'off'
                          - 'on'
                          - approval
                      delivered:
                        type: boolean
                      system:
                        type: string
                    required:
                      - name
                      - title
                      - kind
                      - level
                      - delivered
                      - system
                    additionalProperties: false
                groups:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                    required:
                      - id
                      - name
                    additionalProperties: false
                canEdit:
                  type: boolean
                running:
                  anyOf:
                    - type: object
                      properties:
                        probe:
                          type: string
                      required:
                        - probe
                      additionalProperties: false
                    - type: 'null'
                rolledBack:
                  type: object
                  properties:
                    live:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    atOnce:
                      type: boolean
                    refused:
                      type:
                        - string
                        - 'null'
                  required:
                    - live
                    - atOnce
                    - refused
                  additionalProperties: false
              required:
                - app
                - candidates
                - groups
                - canEdit
              additionalProperties: false
            - type: 'null'
      required:
        - form
        - created
      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.