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

# Wer bin ich, Rolle je Mandant

> Wer bin ich, Rolle je Mandant.

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



## OpenAPI

````yaml /api-reference/openapi.json get /me
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:
  /me:
    get:
      tags:
        - Übersicht
      summary: Wer bin ich, Rolle je Mandant
      description: |-
        Wer bin ich, Rolle je Mandant.

        Im Chat mit «Mono Admin»: `mono_status`.
      operationId: getMe
      parameters:
        - name: mandant
          in: query
          required: false
          description: >-
            Der Mandant, in dessen Audit die Änderung steht (Standard: der erste
            des 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
      responses:
        '200':
          description: Erfolgreich.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeResponse'
        '401':
          $ref: '#/components/responses/Fehler401'
        '403':
          $ref: '#/components/responses/Fehler403'
components:
  schemas:
    MeResponse:
      type: object
      properties:
        user:
          type: object
          properties:
            id:
              type: string
            name:
              type: string
            email:
              type:
                - string
                - 'null'
            groups:
              type: array
              items:
                type: string
            profile:
              type: object
              properties:
                id:
                  type: string
                name:
                  type: string
                givenName:
                  anyOf:
                    - type: string
                      maxLength: 256
                    - type: 'null'
                email:
                  type:
                    - string
                    - 'null'
                initials:
                  type: string
                  maxLength: 3
                jobTitle:
                  anyOf:
                    - type: string
                      maxLength: 256
                    - type: 'null'
                department:
                  anyOf:
                    - type: string
                      maxLength: 256
                    - type: 'null'
                manager:
                  anyOf:
                    - type: object
                      properties:
                        id:
                          type:
                            - string
                            - 'null'
                        name:
                          type: string
                        email:
                          type:
                            - string
                            - 'null'
                        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
                        - email
                      additionalProperties: false
                    - type: 'null'
                office:
                  anyOf:
                    - type: string
                      maxLength: 256
                    - type: 'null'
                phone:
                  anyOf:
                    - type: string
                      maxLength: 256
                    - type: 'null'
                mobile:
                  anyOf:
                    - type: string
                      maxLength: 256
                    - type: 'null'
                language:
                  anyOf:
                    - type: string
                      maxLength: 256
                    - type: 'null'
                timeZone:
                  anyOf:
                    - type: string
                      maxLength: 256
                    - type: 'null'
                employeeType:
                  anyOf:
                    - type: string
                      maxLength: 256
                    - type: 'null'
                company:
                  anyOf:
                    - type: string
                      maxLength: 256
                    - type: 'null'
                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'
                photoFrom:
                  anyOf:
                    - type: string
                      enum:
                        - source
                        - own
                    - type: 'null'
                ownPhoto:
                  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'
                source:
                  type: string
                  enum:
                    - entra
                    - google
                    - ad
                    - demo
                    - scim
                    - oidc
                    - saml
                    - microsoft
                    - apple
                    - github
                    - passkey
                    - dev
                syncedAt:
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
              required:
                - id
                - name
                - email
                - initials
                - jobTitle
                - department
                - manager
                - office
                - phone
                - mobile
                - language
                - timeZone
                - employeeType
                - company
                - photo
                - source
                - syncedAt
              additionalProperties: false
            settings:
              type: object
              properties:
                language:
                  anyOf:
                    - type: string
                      enum:
                        - de-CH
                        - fr-CH
                        - it-CH
                        - rm-CH
                        - en
                    - type: 'null'
                languageFrom:
                  anyOf:
                    - type: string
                      enum:
                        - browser
                    - type: 'null'
                timeZone:
                  anyOf:
                    - type: string
                      maxLength: 64
                      pattern: ^[A-Za-z][A-Za-z0-9_+-]*(\/[A-Za-z0-9_+-]+){0,2}$
                    - type: 'null'
                notify:
                  anyOf:
                    - type: object
                      properties:
                        kinds:
                          type: object
                          propertyNames:
                            type: string
                            enum:
                              - approvals
                              - requests
                              - reminders
                              - aufgaben
                              - automations
                              - clients
                              - updates
                              - operations
                          additionalProperties:
                            type: object
                            properties:
                              desktop:
                                type: boolean
                              email:
                                type: boolean
                            additionalProperties: false
                        quiet:
                          type: object
                          properties:
                            'on':
                              type: boolean
                            from:
                              type: string
                              pattern: ^([01]\d|2[0-3]):[0-5]\d$
                            to:
                              type: string
                              pattern: ^([01]\d|2[0-3]):[0-5]\d$
                            days:
                              maxItems: 7
                              type: array
                              items:
                                type: integer
                                minimum: 0
                                maximum: 6
                            allDay:
                              maxItems: 7
                              type: array
                              items:
                                type: integer
                                minimum: 0
                                maximum: 6
                          required:
                            - 'on'
                            - from
                            - to
                            - days
                            - allDay
                          additionalProperties: false
                        sound:
                          type: boolean
                        group:
                          type: boolean
                        mandantenOff:
                          maxItems: 200
                          type: array
                          items:
                            type: string
                            minLength: 1
                            maxLength: 80
                      additionalProperties: false
                    - type: 'null'
              required:
                - language
              additionalProperties: false
            locale:
              type: string
              enum:
                - de-CH
                - fr-CH
                - it-CH
                - rm-CH
                - en
          required:
            - id
            - name
            - email
            - groups
          additionalProperties: false
        mandanten:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              name:
                type: string
              role:
                type: string
                enum:
                  - admin
                  - partner
                  - member
              roles:
                type: array
                items:
                  type: string
                  enum:
                    - admin
                    - approver
                    - ci-approver
                    - app-owner
                    - member
              viaPartner:
                type: boolean
                const: true
              readOnly:
                type: boolean
              readOnlyReason:
                type:
                  - string
                  - 'null'
              market:
                type: string
                enum:
                  - CH
                  - DE
                  - AT
                  - IT
            required:
              - id
              - name
              - role
              - readOnly
              - readOnlyReason
            additionalProperties: false
      required:
        - user
        - mandanten
      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'
  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.