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

# Volle Vorschau einer Freigabe (fremde: protokolliert)

> Volle Vorschau einer Freigabe (fremde: protokolliert).

Im Chat mit «Mono Admin»: `inbox_list`.



## OpenAPI

````yaml /api-reference/openapi.json get /approvals/{id}
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:
  /approvals/{id}:
    get:
      tags:
        - Inbox
      summary: 'Volle Vorschau einer Freigabe (fremde: protokolliert)'
      description: |-
        Volle Vorschau einer Freigabe (fremde: protokolliert).

        Im Chat mit «Mono Admin»: `inbox_list`.
      operationId: getApprovalsById
      parameters:
        - name: id
          in: path
          required: true
          description: Die Freigabe.
          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/ApprovalDetailResponse'
        '401':
          $ref: '#/components/responses/Fehler401'
        '403':
          $ref: '#/components/responses/Fehler403'
        '404':
          $ref: '#/components/responses/Fehler404'
components:
  schemas:
    ApprovalDetailResponse:
      type: object
      properties:
        approval:
          type: object
          properties:
            id:
              type: string
            mandantId:
              type: string
            serverId:
              type: string
            tool:
              type: string
            toolTitle:
              type: string
            app:
              type: string
            preview:
              type: string
            inputDigest:
              type: string
            facts:
              type: object
              properties:
                recipients:
                  type: array
                  items:
                    type: string
                held:
                  type: boolean
                classification:
                  type: string
                  enum:
                    - öffentlich
                    - intern
                    - vertraulich
                amountChf:
                  type: number
                deletes:
                  type: number
                oneByOne:
                  type: boolean
                creates:
                  type: boolean
                folder:
                  type: object
                  properties:
                    label:
                      type: string
                  required:
                    - label
                  additionalProperties: false
              additionalProperties: false
            secondPerson:
              type: string
            requestedBy:
              type: object
              properties:
                id:
                  type: string
                name:
                  type: string
                photo:
                  anyOf:
                    - type: object
                      properties:
                        url:
                          type: string
                          pattern: >-
                            ^\/api\/v1\/photos\/[A-Za-z0-9_-]{8,64}\?v=[A-Za-z0-9_-]{4,64}$
                        etag:
                          type: string
                          pattern: ^[A-Za-z0-9_-]{4,64}$
                      required:
                        - url
                        - etag
                      additionalProperties: false
                    - type: 'null'
              required:
                - id
                - name
              additionalProperties: false
            via:
              type: string
              enum:
                - console
            requestedAt:
              type: string
              minLength: 1
            status:
              type: string
              enum:
                - open
                - approved
                - rejected
                - executed
                - failed
            decidedBy:
              type: object
              properties:
                id:
                  type: string
                name:
                  type: string
                photo:
                  anyOf:
                    - type: object
                      properties:
                        url:
                          type: string
                          pattern: >-
                            ^\/api\/v1\/photos\/[A-Za-z0-9_-]{8,64}\?v=[A-Za-z0-9_-]{4,64}$
                        etag:
                          type: string
                          pattern: ^[A-Za-z0-9_-]{4,64}$
                      required:
                        - url
                        - etag
                      additionalProperties: false
                    - type: 'null'
              required:
                - id
                - name
              additionalProperties: false
            decidedAt:
              type: string
              minLength: 1
            decidedFor:
              type: string
              enum:
                - once
                - session
                - always
            reason:
              type: string
            result:
              type: string
            resultSaid:
              maxItems: 20
              type: array
              items:
                type: object
                properties:
                  code:
                    type: string
                    maxLength: 40
                  vars:
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties:
                      type: string
                required:
                  - code
                additionalProperties: false
            resultClass:
              type: string
              enum:
                - öffentlich
                - intern
                - vertraulich
            ended:
              type: string
              enum:
                - expired
                - run
                - person
            replaced:
              type: boolean
            expiresAt:
              type: string
              minLength: 1
            detailKind:
              type: string
              enum:
                - email
                - fields
            verb:
              type: string
              maxLength: 60
            sessionScope:
              type: boolean
            unattended:
              type: boolean
            sessionStandard:
              type: boolean
            everyTime:
              type: string
              enum:
                - outside
                - books
                - deletes
                - unknown
            standingTo:
              maxItems: 50
              type: array
              items:
                type: string
                maxLength: 320
            demoDecision:
              type: object
              properties:
                by:
                  type: string
                at:
                  type: string
                  minLength: 1
              required:
                - by
                - at
              additionalProperties: false
            approveRefused:
              type: string
              maxLength: 400
          required:
            - id
            - mandantId
            - serverId
            - tool
            - toolTitle
            - app
            - preview
            - inputDigest
            - facts
            - requestedBy
            - requestedAt
            - status
          additionalProperties: false
        detail:
          oneOf:
            - type: object
              properties:
                kind:
                  type: string
                  const: email
                from:
                  type: string
                to:
                  type: array
                  items:
                    type: string
                cc:
                  type: array
                  items:
                    type: string
                subject:
                  type: string
                body:
                  type: string
                attachments:
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                    required:
                      - name
                    additionalProperties: false
                classification:
                  type: string
                  enum:
                    - öffentlich
                    - intern
                    - vertraulich
              required:
                - kind
                - from
                - to
                - cc
                - subject
                - body
                - attachments
                - classification
              additionalProperties: false
            - type: object
              properties:
                kind:
                  type: string
                  const: fields
                fields:
                  type: array
                  items:
                    type: object
                    properties:
                      label:
                        type: string
                      value:
                        type: string
                      content:
                        type: boolean
                      change:
                        type: string
                        enum:
                          - loses
                          - gives
                      look:
                        type: object
                        properties:
                          font:
                            type: object
                            properties:
                              before:
                                type: string
                                maxLength: 80
                              after:
                                type: string
                                maxLength: 80
                            additionalProperties: false
                          logo:
                            type: object
                            properties:
                              before:
                                type: string
                                maxLength: 24000
                              after:
                                type: string
                                maxLength: 24000
                            additionalProperties: false
                        additionalProperties: false
                    required:
                      - label
                      - value
                    additionalProperties: false
                heading:
                  type: string
                  maxLength: 160
                weighty:
                  type: boolean
                image:
                  type: object
                  properties:
                    mime:
                      type: string
                      enum:
                        - image/jpeg
                        - image/png
                    data:
                      type: string
                      maxLength: 450000
                    alt:
                      type: string
                      maxLength: 300
                  required:
                    - mime
                    - data
                    - alt
                  additionalProperties: false
              required:
                - kind
                - fields
              additionalProperties: false
      required:
        - approval
        - detail
      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.