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

# Automatisch beim Anbieter registrieren (OIDC, RFC 7591)

> Automatisch beim Anbieter registrieren (OIDC, RFC 7591).

Im Chat mit «Mono Admin»: .



## OpenAPI

````yaml /api-reference/openapi.json post /identity/register
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:
  /identity/register:
    post:
      tags:
        - Zugriff
      summary: Automatisch beim Anbieter registrieren (OIDC, RFC 7591)
      description: |-
        Automatisch beim Anbieter registrieren (OIDC, RFC 7591).

        Im Chat mit «Mono Admin»: .
      operationId: postIdentityRegister
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IdentityRegisterBody'
      responses:
        '200':
          description: Erfolgreich.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdentityRegisterResponse'
        '400':
          $ref: '#/components/responses/Fehler400'
        '401':
          $ref: '#/components/responses/Fehler401'
        '403':
          $ref: '#/components/responses/Fehler403'
components:
  schemas:
    IdentityRegisterBody:
      type: object
      properties:
        issuer:
          type: string
          minLength: 8
          maxLength: 500
        preset:
          type: string
          enum:
            - adfs
            - keycloak
            - authentik
            - okta
        label:
          type: string
          maxLength: 60
        initialToken:
          type: string
          minLength: 8
          maxLength: 8192
      required:
        - issuer
    IdentityRegisterResponse:
      type: object
      properties:
        methodId:
          type:
            - string
            - 'null'
        needs:
          anyOf:
            - type: string
              enum:
                - initial-token
            - type: 'null'
        identity:
          type: object
          properties:
            version:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            methods:
              type: array
              items:
                type: object
                properties:
                  onlyGroups:
                    type: array
                    items:
                      type: string
                  id:
                    type: string
                    pattern: ^[a-z0-9][a-z0-9-]{0,39}$
                  kind:
                    type: string
                    enum:
                      - entra
                      - google
                      - microsoft
                      - apple
                      - github
                      - chatgpt
                      - oidc
                      - saml
                      - relay
                      - partner
                      - passkey
                      - email
                      - mono-cloud
                      - dev
                  label:
                    type:
                      - string
                      - 'null'
                  enabled:
                    type: boolean
                  status:
                    type: string
                    enum:
                      - active
                      - untested
                      - 'off'
                      - failed
                  statusText:
                    type: string
                  statusSaid:
                    type: object
                    properties:
                      code:
                        type: string
                        maxLength: 60
                      vars:
                        type: object
                        propertyNames:
                          type: string
                        additionalProperties:
                          type:
                            - string
                            - number
                    required:
                      - code
                    additionalProperties: false
                  source:
                    type: string
                    enum:
                      - settings
                      - console
                      - host
                  manageUrl:
                    type: string
                    format: uri
                  clientId:
                    type:
                      - string
                      - 'null'
                  secret:
                    type: object
                    properties:
                      ref:
                        type: string
                        enum:
                          - env
                          - store
                          - none
                      name:
                        type: string
                      set:
                        type: boolean
                    required:
                      - ref
                      - set
                    additionalProperties: false
                  tenant:
                    type:
                      - string
                      - 'null'
                  hd:
                    type:
                      - string
                      - 'null'
                  issuer:
                    type:
                      - string
                      - 'null'
                  org:
                    type:
                      - string
                      - 'null'
                  teamId:
                    type:
                      - string
                      - 'null'
                  keyId:
                    type:
                      - string
                      - 'null'
                  groupsFrom:
                    type: string
                    enum:
                      - token
                      - graph
                      - directory
                      - mono
                  domains:
                    type: array
                    items:
                      type: string
                  personal:
                    type: boolean
                  test:
                    anyOf:
                      - type: object
                        properties:
                          at:
                            type: string
                            minLength: 1
                          by:
                            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
                          ok:
                            type: boolean
                          current:
                            type: boolean
                          error:
                            type: string
                          groups:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                        required:
                          - at
                          - by
                          - ok
                          - current
                        additionalProperties: false
                      - type: 'null'
                  preset:
                    anyOf:
                      - type: string
                        enum:
                          - adfs
                          - keycloak
                          - authentik
                          - okta
                      - type: 'null'
                  saml:
                    anyOf:
                      - type: object
                        properties:
                          entityId:
                            type: string
                          ssoUrl:
                            type: string
                            format: uri
                          metadataUrl:
                            anyOf:
                              - type: string
                                format: uri
                              - type: 'null'
                          certs:
                            maxItems: 5
                            type: array
                            items:
                              type: object
                              properties:
                                fingerprint:
                                  type: string
                                notAfter:
                                  type: string
                                  minLength: 1
                                expiresSoon:
                                  type: boolean
                              required:
                                - fingerprint
                                - notAfter
                                - expiresSoon
                              additionalProperties: false
                          fetchedAt:
                            type: string
                            minLength: 1
                        required:
                          - entityId
                          - ssoUrl
                          - metadataUrl
                          - certs
                          - fetchedAt
                        additionalProperties: false
                      - type: 'null'
                  warning:
                    type:
                      - string
                      - 'null'
                  offRefusal:
                    anyOf:
                      - type: string
                        maxLength: 400
                      - type: 'null'
                  relay:
                    type: object
                    properties:
                      upstreams:
                        type: array
                        items:
                          type: string
                          enum:
                            - google
                            - entra
                            - microsoft
                            - apple
                            - github
                            - email
                      switchable:
                        type: boolean
                      offRefusal:
                        anyOf:
                          - type: string
                            maxLength: 400
                          - type: 'null'
                      measured:
                        type: boolean
                    required:
                      - upstreams
                      - switchable
                    additionalProperties: false
                  ask:
                    type: object
                    properties:
                      state:
                        type: string
                        enum:
                          - none
                          - 'off'
                          - untested
                          - failed
                          - live
                      error:
                        type: string
                        maxLength: 300
                      unreachableAt:
                        type: string
                        minLength: 1
                    required:
                      - state
                    additionalProperties: false
                required:
                  - id
                  - kind
                  - label
                  - enabled
                  - status
                  - statusText
                  - source
                  - clientId
                  - secret
                  - tenant
                  - hd
                  - issuer
                  - org
                  - teamId
                  - keyId
                  - groupsFrom
                  - domains
                  - personal
                  - test
                additionalProperties: false
            access:
              type: object
              properties:
                mode:
                  type: string
                  enum:
                    - invite
                    - domains
                domains:
                  maxItems: 50
                  type: array
                  items:
                    type: string
                    pattern: ^(?=.{3,253}$)[a-z0-9-]+(\.[a-z0-9-]+)+$
                invites:
                  maxItems: 2000
                  type: array
                  items:
                    type: object
                    properties:
                      email:
                        type: string
                        pattern: ^[^\s@<>"]{1,64}@[a-z0-9-]+(\.[a-z0-9-]+)+$
                      groups:
                        default: []
                        maxItems: 20
                        type: array
                        items:
                          type: string
                          minLength: 1
                          maxLength: 200
                      invitedBy:
                        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
                      invitedAt:
                        type: string
                        minLength: 1
                    required:
                      - email
                      - groups
                    additionalProperties: false
                admins:
                  maxItems: 50
                  type: array
                  items:
                    type: string
                    pattern: ^[^\s@<>"]{1,64}@[a-z0-9-]+(\.[a-z0-9-]+)+$
                groups:
                  maxItems: 50
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 200
              required:
                - mode
                - domains
                - invites
                - admins
                - groups
              additionalProperties: false
            customised:
              type: boolean
            redirectUri:
              type: string
              format: uri
            signInUrl:
              type: string
              format: uri
            passkeyHost:
              type: string
            adminGroup:
              type: string
            adminGroupName:
              anyOf:
                - type: string
                  maxLength: 200
                - type: 'null'
            secretStore:
              type: boolean
            pin:
              anyOf:
                - type: object
                  properties:
                    domain:
                      type: string
                      maxLength: 253
                    why:
                      type: string
                      enum:
                        - soon
                        - no-relay
                        - no-tenant
                        - pending
                  required:
                    - domain
                    - why
                  additionalProperties: false
                - type: 'null'
            run:
              anyOf:
                - type: object
                  properties:
                    runtime:
                      anyOf:
                        - type: string
                          enum:
                            - systemd
                            - docker
                            - kubernetes
                        - type: 'null'
                    settingsFile:
                      anyOf:
                        - type: string
                          maxLength: 300
                        - type: 'null'
                    restart:
                      anyOf:
                        - type: string
                          maxLength: 500
                        - type: 'null'
                    topology:
                      anyOf:
                        - type: string
                          maxLength: 300
                        - type: 'null'
                  required:
                    - runtime
                    - settingsFile
                    - restart
                    - topology
                  additionalProperties: false
                - type: 'null'
            saml:
              type: object
              properties:
                entityId:
                  type: string
                  format: uri
                acsUrl:
                  type: string
                  format: uri
                metadataUrl:
                  type: string
                  format: uri
              required:
                - entityId
                - acsUrl
                - metadataUrl
              additionalProperties: false
            updatedAt:
              anyOf:
                - type: string
                  minLength: 1
                - type: 'null'
            updatedBy:
              anyOf:
                - 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
                - type: 'null'
            lastAdmins:
              type: array
              items:
                type: string
                pattern: ^[^\s@<>"]{1,64}@[a-z0-9-]+(\.[a-z0-9-]+)+$
            handovers:
              type: array
              items:
                type: object
                properties:
                  from:
                    type: string
                    pattern: ^[^\s@<>"]{1,64}@[a-z0-9-]+(\.[a-z0-9-]+)+$
                  to:
                    type: string
                    pattern: ^[^\s@<>"]{1,64}@[a-z0-9-]+(\.[a-z0-9-]+)+$
                  at:
                    type: string
                    minLength: 1
                  by:
                    type: string
                    maxLength: 200
                required:
                  - from
                  - to
                  - at
                  - by
                additionalProperties: false
            setup:
              type: object
              properties:
                open:
                  type: boolean
                firstAdmin:
                  anyOf:
                    - type: object
                      properties:
                        email:
                          type: string
                          pattern: ^[^\s@<>"]{1,64}@[a-z0-9-]+(\.[a-z0-9-]+)+$
                        at:
                          type: string
                          minLength: 1
                        via:
                          type: string
                          enum:
                            - link
                            - claim
                            - test
                            - handover
                            - device
                        name:
                          type: string
                          maxLength: 80
                        selfDeclared:
                          type: boolean
                        recoveredAt:
                          type: string
                          minLength: 1
                      required:
                        - email
                        - at
                        - via
                      additionalProperties: false
                    - type: 'null'
                expiresAt:
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
                claim:
                  anyOf:
                    - type: object
                      properties:
                        email:
                          type: string
                          pattern: ^[^\s@<>"]{1,64}@[a-z0-9-]+(\.[a-z0-9-]+)+$
                        until:
                          type: string
                          minLength: 1
                      required:
                        - email
                        - until
                      additionalProperties: false
                    - type: 'null'
              required:
                - open
                - firstAdmin
                - expiresAt
                - claim
              additionalProperties: false
            recovery:
              type: boolean
            recoveryOff:
              type: string
              enum:
                - no-channel
            recoveryRefused:
              type: object
              properties:
                why:
                  type: string
                  maxLength: 40
                message:
                  type: string
                  maxLength: 500
                said:
                  type: object
                  properties:
                    code:
                      type: string
                      maxLength: 60
                    vars:
                      type: object
                      propertyNames:
                        type: string
                      additionalProperties:
                        type: string
                  required:
                    - code
                  additionalProperties: false
              required:
                - why
                - message
              additionalProperties: false
            recoveryTold:
              type: string
              enum:
                - mail
                - zugriff
            recoveryNoMail:
              type: string
              enum:
                - none
                - kind
            addressWay:
              type: boolean
            host:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 80
                manageUrl:
                  type: string
                  format: uri
                access:
                  type: string
                  minLength: 1
                  maxLength: 400
                accessSaid:
                  type: object
                  properties:
                    code:
                      type: string
                      maxLength: 60
                    vars:
                      type: object
                      propertyNames:
                        type: string
                      additionalProperties:
                        type:
                          - string
                          - number
                  required:
                    - code
                  additionalProperties: false
              required:
                - name
                - manageUrl
                - access
              additionalProperties: false
          required:
            - version
            - methods
            - access
            - customised
            - redirectUri
            - signInUrl
            - passkeyHost
            - adminGroup
            - secretStore
            - updatedAt
            - updatedBy
          additionalProperties: false
      required:
        - methodId
        - needs
        - identity
      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'
  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.