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

# Das Private Gateway für Claude: Gerät, Adresse, Profile, gemessener Zustand; die Geräte, die es betreiben können

> Das Private Gateway für Claude: Gerät, Adresse, Profile, gemessener Zustand; die Geräte, die es betreiben können.

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



## OpenAPI

````yaml /api-reference/openapi.json get /mandanten/{id}/claude-gateway
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}/claude-gateway:
    get:
      tags:
        - Betrieb
      summary: >-
        Das Private Gateway für Claude: Gerät, Adresse, Profile, gemessener
        Zustand; die Geräte, die es betreiben können
      description: >-
        Das Private Gateway für Claude: Gerät, Adresse, Profile, gemessener
        Zustand; die Geräte, die es betreiben können.


        Im Chat mit «Mono Admin»: `betrieb_status`.
      operationId: getMandantenByIdClaudeGateway
      parameters:
        - name: id
          in: path
          required: true
          description: Der Mandant (seine ID auf diesem Node).
          schema:
            type: string
          example: muster-ag
      responses:
        '200':
          description: Erfolgreich.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClaudeGatewayResponse'
        '401':
          $ref: '#/components/responses/Fehler401'
        '403':
          $ref: '#/components/responses/Fehler403'
        '404':
          $ref: '#/components/responses/Fehler404'
components:
  schemas:
    ClaudeGatewayResponse:
      type: object
      properties:
        gateway:
          anyOf:
            - type: object
              properties:
                id:
                  type: string
                clientId:
                  type: string
                device:
                  type: object
                  properties:
                    id:
                      type: string
                    name:
                      type: string
                    online:
                      type: boolean
                  required:
                    - id
                    - name
                    - online
                  additionalProperties: false
                url:
                  type: string
                bind:
                  type: string
                tls:
                  type: string
                  enum:
                    - firm
                    - tailnet
                postgresUrl:
                  type:
                    - string
                    - 'null'
                profiles:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        pattern: ^mono-[a-z0-9](?:[a-z0-9-]{0,38}[a-z0-9])?$
                      name:
                        type: string
                        minLength: 1
                        maxLength: 60
                      groups:
                        minItems: 1
                        maxItems: 50
                        type: array
                        items:
                          type: string
                          minLength: 1
                          maxLength: 200
                      models:
                        maxItems: 30
                        type: array
                        items:
                          type: string
                          minLength: 1
                          maxLength: 120
                      webFetch:
                        type: object
                        properties:
                          'on':
                            type: boolean
                          domains:
                            maxItems: 50
                            type: array
                            items:
                              type: string
                              minLength: 1
                              maxLength: 253
                        required:
                          - 'on'
                          - domains
                        additionalProperties: false
                      confidential:
                        type: boolean
                      desktop:
                        type: boolean
                      groupNames:
                        type: array
                        items:
                          type: string
                    required:
                      - id
                      - name
                      - groups
                      - models
                      - webFetch
                      - confidential
                      - desktop
                      - groupNames
                    additionalProperties: false
                upstreams:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      provider:
                        type: string
                        enum:
                          - bedrock
                          - anthropic
                      region:
                        type: string
                    required:
                      - id
                      - name
                      - provider
                      - region
                    additionalProperties: false
                renderedSha:
                  type: string
                health:
                  anyOf:
                    - type: object
                      properties:
                        state:
                          type: string
                          enum:
                            - starting
                            - running
                            - failed
                            - stopped
                        version:
                          anyOf:
                            - type: string
                              maxLength: 40
                            - type: 'null'
                        ready:
                          type:
                            - boolean
                            - 'null'
                        alive:
                          type:
                            - boolean
                            - 'null'
                        sha:
                          anyOf:
                            - type: string
                              pattern: ^[0-9a-f]{64}$
                            - type: 'null'
                        restarts:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        since:
                          type:
                            - string
                            - 'null'
                        error:
                          anyOf:
                            - type: string
                              enum:
                                - no-binary
                                - old-binary
                                - not-linux
                                - no-config
                                - exited
                                - not-ready
                                - config-differs
                                - issuer
                            - type: 'null'
                        issuer:
                          type:
                            - boolean
                            - 'null'
                        hooks:
                          type: object
                          properties:
                            listening:
                              type: boolean
                            rulesSha:
                              type:
                                - string
                                - 'null'
                            counts:
                              maxItems: 2000
                              type: array
                              items:
                                type: object
                                properties:
                                  day:
                                    type: string
                                    pattern: ^\d{4}-\d{2}-\d{2}$
                                  profile:
                                    type: string
                                    maxLength: 60
                                  checked:
                                    type: integer
                                    minimum: 0
                                    maximum: 9007199254740991
                                  blocked:
                                    type: integer
                                    minimum: 0
                                    maximum: 9007199254740991
                                  rules:
                                    type: object
                                    propertyNames:
                                      type: string
                                      maxLength: 40
                                    additionalProperties:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                required:
                                  - day
                                  - profile
                                  - checked
                                  - blocked
                                  - rules
                                additionalProperties: false
                            usage:
                              maxItems: 2000
                              type: array
                              items:
                                type: object
                                properties:
                                  day:
                                    type: string
                                    pattern: ^\d{4}-\d{2}-\d{2}$
                                  profile:
                                    type: string
                                    maxLength: 60
                                  tokensIn:
                                    type: integer
                                    minimum: 0
                                    maximum: 9007199254740991
                                  tokensOut:
                                    type: integer
                                    minimum: 0
                                    maximum: 9007199254740991
                                  tokensCache:
                                    type: integer
                                    minimum: 0
                                    maximum: 9007199254740991
                                  sessions:
                                    type: integer
                                    minimum: 0
                                    maximum: 9007199254740991
                                required:
                                  - day
                                  - profile
                                  - tokensIn
                                  - tokensOut
                                  - tokensCache
                                  - sessions
                                additionalProperties: false
                          required:
                            - listening
                            - rulesSha
                            - counts
                            - usage
                          additionalProperties: false
                        steps:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                enum:
                                  - config
                                  - ready
                                  - issuer
                                  - admin
                                  - hooks
                                  - signin
                              state:
                                type: string
                                enum:
                                  - ok
                                  - failed
                                  - waiting
                              why:
                                anyOf:
                                  - type: string
                                    maxLength: 40
                                  - type: 'null'
                              profiles:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                    blocked:
                                      type: boolean
                                    passed:
                                      type: boolean
                                  required:
                                    - id
                                    - blocked
                                    - passed
                                  additionalProperties: false
                            required:
                              - id
                              - state
                              - why
                            additionalProperties: false
                        signinUrl:
                          anyOf:
                            - type: string
                              maxLength: 500
                            - type: 'null'
                        spend:
                          type: object
                          properties:
                            ok:
                              type: boolean
                            applied:
                              type: integer
                              minimum: 0
                              maximum: 9007199254740991
                            removed:
                              type: integer
                              minimum: 0
                              maximum: 9007199254740991
                            rows:
                              maxItems: 5000
                              type: array
                              items:
                                type: object
                                properties:
                                  user:
                                    type: string
                                    maxLength: 200
                                  period:
                                    type: string
                                    enum:
                                      - daily
                                      - weekly
                                      - monthly
                                  spend:
                                    type: number
                                    minimum: 0
                                  limit:
                                    anyOf:
                                      - type: number
                                        minimum: 0
                                      - type: 'null'
                                  source:
                                    anyOf:
                                      - type: string
                                        maxLength: 80
                                      - type: 'null'
                                required:
                                  - user
                                  - period
                                  - spend
                                  - limit
                                  - source
                                additionalProperties: false
                            error:
                              anyOf:
                                - type: string
                                  maxLength: 40
                                - type: 'null'
                          required:
                            - ok
                            - applied
                            - removed
                            - rows
                            - error
                          additionalProperties: false
                      required:
                        - state
                        - version
                        - ready
                        - alive
                        - sha
                        - restarts
                        - since
                        - error
                      additionalProperties: false
                    - type: 'null'
                checkedAt:
                  type:
                    - string
                    - 'null'
                signedIn:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                createdAt:
                  type: string
                by:
                  type: string
                live:
                  type: boolean
                liveSha:
                  type:
                    - string
                    - 'null'
                draft:
                  type: boolean
                test:
                  anyOf:
                    - type: object
                      properties:
                        sha:
                          type: string
                        at:
                          type: string
                        by:
                          type: string
                        steps:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                enum:
                                  - config
                                  - ready
                                  - issuer
                                  - admin
                                  - hooks
                                  - signin
                              state:
                                type: string
                                enum:
                                  - ok
                                  - failed
                                  - waiting
                              why:
                                anyOf:
                                  - type: string
                                    maxLength: 40
                                  - type: 'null'
                              profiles:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                    blocked:
                                      type: boolean
                                    passed:
                                      type: boolean
                                  required:
                                    - id
                                    - blocked
                                    - passed
                                  additionalProperties: false
                            required:
                              - id
                              - state
                              - why
                            additionalProperties: false
                        passed:
                          type: boolean
                        signinUrl:
                          type:
                            - string
                            - 'null'
                      required:
                        - sha
                        - at
                        - by
                        - steps
                        - passed
                        - signinUrl
                      additionalProperties: false
                    - type: 'null'
                hooks:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      checked:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      blocked:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                    required:
                      - id
                      - name
                      - checked
                      - blocked
                    additionalProperties: false
                limits:
                  anyOf:
                    - type: object
                      properties:
                        at:
                          type: string
                        applied:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        removed:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        skipped:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        error:
                          type:
                            - string
                            - 'null'
                      required:
                        - at
                        - applied
                        - removed
                        - skipped
                        - error
                      additionalProperties: false
                    - type: 'null'
              required:
                - id
                - clientId
                - device
                - url
                - bind
                - tls
                - postgresUrl
                - profiles
                - upstreams
                - renderedSha
                - health
                - checkedAt
                - signedIn
                - createdAt
                - by
                - live
              additionalProperties: false
            - type: 'null'
        devices:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              name:
                type: string
              online:
                type: boolean
              refusal:
                anyOf:
                  - type: string
                    enum:
                      - url-not-https
                      - url-public
                      - url-path
                      - bind-public
                      - no-device
                      - device-offline
                      - device-not-linux
                      - no-binary
                      - old-binary
                      - no-upstream
                      - exists
                      - none
                      - unknown-group
                      - not-tested
                      - not-live
                      - draft
                      - unknown-profile
                      - unknown-os
                  - type: 'null'
              version:
                type:
                  - string
                  - 'null'
              addresses:
                type: array
                items:
                  type: string
            required:
              - id
              - name
              - online
              - refusal
              - version
              - addresses
            additionalProperties: false
        upstreams:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              name:
                type: string
              provider:
                type: string
                enum:
                  - bedrock
                  - anthropic
              region:
                type: string
            required:
              - id
              - name
              - provider
              - region
            additionalProperties: false
        canEdit:
          type: boolean
        lock:
          type:
            - string
            - 'null'
      required:
        - gateway
        - devices
        - upstreams
        - canEdit
        - lock
      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.