{
    "openapi": "3.1.2",
    "info": {
        "title": "Brandhub REST-API",
        "version": "1.0.0",
        "description": "Die REST-API liest die freigegebenen Inhalte einer Marke als JSON. Brandhub bestimmt die Marke aus dem API-Key, einen Marken-Parameter gibt es nicht. Lesende Endpunkte brauchen das Recht `read`, die Layout-Endpunkte `layouts`; Bildauftr\u00e4ge laufen mit `images` \u00fcber den MCP-Server. Listen kommen als JSON-Array auf oberster Ebene, ohne `data`-H\u00fclle."
    },
    "servers": [
        {
            "url": "https://{marke}.brandhub.de/api/v1",
            "description": "Brandhub",
            "variables": {
                "marke": {
                    "default": "beispielmarke",
                    "description": "Subdomain der Marke"
                }
            }
        }
    ],
    "tags": [
        {
            "name": "Marke"
        },
        {
            "name": "Corporate Language"
        },
        {
            "name": "Markenkontext"
        },
        {
            "name": "Seiten"
        },
        {
            "name": "Icons"
        },
        {
            "name": "Medien"
        },
        {
            "name": "Downloads"
        },
        {
            "name": "Layouts"
        },
        {
            "name": "Folien"
        },
        {
            "name": "Anmeldung"
        }
    ],
    "security": [
        {
            "bearerAuth": []
        }
    ],
    "paths": {
        "/brand": {
            "get": {
                "operationId": "get-brand",
                "description": "Liefert Name, Slug und Theme der Marke mit Farben je Rolle, Palette und Schriften je Rolle. Farben und Schriften pflegt die Marke im Backend, \u00fcber die API sind sie nur lesbar. `addin` nennt, welche Bibliotheken das PowerPoint-Add-in zeigt.",
                "summary": "Marke abrufen",
                "tags": [
                    "Marke"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "slug": {
                                            "type": "string"
                                        },
                                        "name": {
                                            "type": "string"
                                        },
                                        "theme": {
                                            "type": "object",
                                            "properties": {
                                                "colors": {
                                                    "type": "object",
                                                    "properties": {
                                                        "primary": {
                                                            "type": "string"
                                                        },
                                                        "accent": {
                                                            "type": "string"
                                                        },
                                                        "background": {
                                                            "type": "string"
                                                        },
                                                        "text": {
                                                            "type": "string"
                                                        },
                                                        "link": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "primary",
                                                        "accent",
                                                        "background",
                                                        "text",
                                                        "link"
                                                    ]
                                                },
                                                "palette": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/BrandColor"
                                                    }
                                                },
                                                "font": {
                                                    "type": "string"
                                                },
                                                "fonts": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "role": {
                                                                "type": "string"
                                                            },
                                                            "family": {
                                                                "type": "string"
                                                            },
                                                            "base_weight": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ]
                                                            },
                                                            "faces": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "weight": {
                                                                            "type": "integer"
                                                                        },
                                                                        "style": {
                                                                            "type": "string"
                                                                        }
                                                                    },
                                                                    "required": [
                                                                        "weight",
                                                                        "style"
                                                                    ]
                                                                }
                                                            }
                                                        },
                                                        "required": [
                                                            "role",
                                                            "family",
                                                            "base_weight",
                                                            "faces"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "colors",
                                                "palette",
                                                "font",
                                                "fonts"
                                            ]
                                        },
                                        "addin": {
                                            "type": "object",
                                            "properties": {
                                                "logos": {
                                                    "type": "boolean"
                                                },
                                                "icons": {
                                                    "type": "boolean"
                                                },
                                                "media": {
                                                    "type": "boolean"
                                                },
                                                "slides": {
                                                    "type": "boolean"
                                                }
                                            },
                                            "required": [
                                                "logos",
                                                "icons",
                                                "media",
                                                "slides"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "slug",
                                        "name",
                                        "theme",
                                        "addin"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brand/colors": {
            "get": {
                "operationId": "list-brand-colors",
                "description": "Liefert je Farbe ID, Name, Rolle und Beschreibung. Mit `?expand=full` kommen alle Werte wie bei der Einzelabfrage.",
                "summary": "Markenfarben auflisten",
                "tags": [
                    "Marke"
                ],
                "parameters": [
                    {
                        "name": "expand",
                        "in": "query",
                        "description": "Mit `full` liefert die Liste alle Farbwerte samt Abstufungen.",
                        "schema": {
                            "type": "string",
                            "const": "full"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `BrandColor`\n\nArray of `BrandColorSummary`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "anyOf": [
                                        {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/BrandColor"
                                            }
                                        },
                                        {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/BrandColorSummary"
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brand/colors/{id}": {
            "get": {
                "operationId": "get-brand-color",
                "description": "Liefert eine Farbe mit HEX, RGB, CMYK, Pantone, RAL und Abstufungen.",
                "summary": "Markenfarbe abrufen",
                "tags": [
                    "Marke"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "ID der Farbe.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`BrandColor`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/BrandColor"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/brand/logos": {
            "get": {
                "operationId": "list-brand-logos",
                "description": "Liefert je Logo ID, Name, Typ und die Fassungen (Farbvariante, Hintergrund, Einsatzhinweis, vorhandene Formate). Dateien mit Download-Links liefert die Einzelabfrage.",
                "summary": "Logos auflisten",
                "tags": [
                    "Marke"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `BrandLogoSummary`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/BrandLogoSummary"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brand/logos/{id}": {
            "get": {
                "operationId": "get-brand-logo",
                "description": "Liefert ein Logo mit allen Fassungen und Dateien. Jede Datei nennt Format, Farbraum, Breite, Verwendung (digital, print, source) und einen signierten Download-Link, der 24 Stunden g\u00fcltig ist und ohne Anmeldung funktioniert.",
                "summary": "Logo abrufen",
                "tags": [
                    "Marke"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "ID des Logos.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`BrandLogo`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/BrandLogo"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/brand/cl": {
            "get": {
                "operationId": "get-corporate-language",
                "description": "Liefert die gesamte Corporate Language als strukturiertes Dokument. Hat die Marke noch keinen Stand, sind die Sektionen leer. `notation` enth\u00e4lt neben Prosa-Regeln (`rules`), Abk\u00fcrzungen und Telefonregel (`phone`) typisierte Schreibregeln: `time`, `date`, `currency`, `numbers`, `units`, `domain`, `email`, `address`, `typography` und `gender`. Jedes Objekt tr\u00e4gt Auswahlwerte und die berechneten Felder `example` (richtige Schreibweise) und `avoid` (falsche Schreibweisen), daraus lassen sich deterministische Pr\u00fcfregeln bauen. Fehlt ein Objekt, gibt die Marke dazu nichts vor. `schema_version` nennt den Vertrag des gespeicherten Dokuments. Setzt das Modul \u201eCorporate Language\u201c voraus, sonst `404`.",
                "summary": "Corporate Language abrufen",
                "tags": [
                    "Corporate Language"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "brand": {
                                            "anyOf": [
                                                {
                                                    "type": "string"
                                                },
                                                {}
                                            ]
                                        },
                                        "schema_version": {
                                            "anyOf": [
                                                {
                                                    "type": "string"
                                                },
                                                {}
                                            ]
                                        },
                                        "version": {
                                            "anyOf": [
                                                {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ]
                                                },
                                                {}
                                            ]
                                        },
                                        "status": {
                                            "anyOf": [
                                                {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                {}
                                            ]
                                        }
                                    },
                                    "required": [
                                        "brand",
                                        "schema_version",
                                        "version",
                                        "status"
                                    ],
                                    "additionalProperties": {}
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brand/cl/{section}": {
            "get": {
                "operationId": "get-corporate-language-section",
                "description": "Liefert eine Sektion unter ihrem Namen als Schl\u00fcssel, zum Beispiel `{ \"voice\": { \u2026 } }`. `notation` liefert die Schreibregeln samt typisierter Objekte mit `example` und `avoid`. Eine unbekannte Sektion endet mit `404`.",
                "summary": "Sektion abrufen",
                "tags": [
                    "Corporate Language"
                ],
                "parameters": [
                    {
                        "name": "section",
                        "in": "path",
                        "required": true,
                        "description": "Name der Sektion.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "meta",
                                "voice",
                                "terminology",
                                "company_name",
                                "notation"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Die Sektion unter ihrem Namen als Schl\u00fcssel.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "additionalProperties": {
                                        "type": "object",
                                        "additionalProperties": {}
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/brand/cl/check": {
            "post": {
                "operationId": "check-text",
                "description": "Pr\u00fcft einen Text mit dem Text-Schild der Marke: Wortliste plus KI-Pr\u00fcfung gegen die Corporate Language (Ton, Anrede, Stilregeln, Schreibweisen, Rechtschreibung). Schreibt nichts. Antwortet mit `approved` und `findings` (Absatz, Position, Art, Fundstelle, Vorschlag, Begr\u00fcndung; `applicable: false` hei\u00dft, der Vorschlag ist eine Anweisung und kein Ersatztext). Hat die Marke keine Corporate Language, ist `approved` `false` und `note` sagt es. Setzt das Modul \u201eCorporate Language\u201c voraus (`404`) und die eingeschaltete KI-Pr\u00fcfung der Marke (`403`). Jede Pr\u00fcfung z\u00e4hlt gegen ein Tageslimit der Marke und auf ihr monatliches Nutzungskontingent; ist eines davon erreicht, antwortet die API mit `429` und nennt es in `message`; ist das Modell nicht erreichbar, antwortet die API mit `503` und gibt nichts frei.",
                "summary": "Text pr\u00fcfen",
                "tags": [
                    "Corporate Language"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "text": {
                                        "type": "string",
                                        "description": "Der zu pr\u00fcfende Text, h\u00f6chstens 20.000 Zeichen."
                                    },
                                    "format": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Textart f\u00fcr Zeichenlimit und zus\u00e4tzliche Pr\u00fcfpunkte: `document` (Standard), `linkedin_post`, `job_posting`, `press_release` oder `campaign_concept`."
                                    }
                                },
                                "required": [
                                    "text"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Ergebnis der Pr\u00fcfung.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "approved": {
                                            "type": "boolean"
                                        },
                                        "findings": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "paragraph": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ]
                                                    },
                                                    "offset": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ]
                                                    },
                                                    "type": {
                                                        "type": "string"
                                                    },
                                                    "found": {
                                                        "type": "string"
                                                    },
                                                    "suggestion": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "note": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "applicable": {
                                                        "type": "boolean"
                                                    }
                                                },
                                                "required": [
                                                    "paragraph",
                                                    "offset",
                                                    "type",
                                                    "found",
                                                    "suggestion",
                                                    "reason",
                                                    "note",
                                                    "applicable"
                                                ]
                                            }
                                        },
                                        "note": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "approved",
                                        "findings",
                                        "note"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/brand/context": {
            "get": {
                "operationId": "list-brand-context",
                "description": "Liefert den gepr\u00fcften Markenkontext, je Eintrag mit Kategorie, Titel, Text und Belegen. Ohne gepflegten Markenkontext ist die Liste leer. Auf eine unbekannte Kategorie antwortet die API mit `422` und listet die g\u00fcltigen. Externe brauchen bei Anmeldung per Konto den Bereich Markenagent oder Studio, sonst `403`. Mitarbeitende ohne diesen Bereich erhalten keine Belege (`sources`).",
                "summary": "Markenkontext abrufen",
                "tags": [
                    "Markenkontext"
                ],
                "parameters": [
                    {
                        "name": "category",
                        "in": "query",
                        "description": "Filtert auf eine Kategorie.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "positioning",
                                "audiences",
                                "offering",
                                "competition",
                                "messages",
                                "history",
                                "faq",
                                "press",
                                "other"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "anyOf": [
                                        {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "category": {
                                                        "type": "string"
                                                    },
                                                    "category_label": {
                                                        "type": "string"
                                                    },
                                                    "type": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Fester Platz in der Kategorie press",
                                                        "enum": [
                                                            "boilerplate",
                                                            "contact",
                                                            null
                                                        ]
                                                    },
                                                    "title": {
                                                        "type": "string"
                                                    },
                                                    "body": {
                                                        "type": "string"
                                                    },
                                                    "sources": {
                                                        "type": "array",
                                                        "items": {}
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "category",
                                                    "category_label",
                                                    "type",
                                                    "title",
                                                    "body",
                                                    "sources"
                                                ]
                                            }
                                        },
                                        {
                                            "type": "array"
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Unbekannte Kategorie."
                                        },
                                        "categories": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "message",
                                        "categories"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Dieser Bereich ist f\u00fcr dein Konto in dieser Marke nicht freigeschaltet."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/pages": {
            "get": {
                "operationId": "list-pages",
                "description": "Liefert alle im Portal sichtbaren Seiten in Navigations-Reihenfolge, ohne Inhalt. Versteckte Seiten fehlen.",
                "summary": "Seiten auflisten",
                "tags": [
                    "Seiten"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PageSummary`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/PageSummary"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/pages/{page}": {
            "get": {
                "operationId": "get-page",
                "description": "Liefert eine im Portal sichtbare Seite mit allen Bl\u00f6cken und deren stabilen IDs. Versteckte Seiten antworten mit 404, ausgeblendete Bl\u00f6cke fehlen.",
                "summary": "Seite abrufen",
                "tags": [
                    "Seiten"
                ],
                "parameters": [
                    {
                        "name": "page",
                        "in": "path",
                        "required": true,
                        "description": "ID der Seite.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`Page`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Page"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/icons": {
            "get": {
                "operationId": "list-icons",
                "description": "Liefert die freigegebenen Icons der Marke mit ID, Name, Kategorie, Tags und ob das Icon umf\u00e4rbbar ist, neueste zuerst. `query` sucht in Name, Dateiname, Tags und Kategorie, `category` und `tag` grenzen exakt ein (Name oder Slug). Die Antwort ist seitenweise: Standard 50 Eintr\u00e4ge, mit `limit` bis 200. Der Header `X-Next-Cursor` nennt den `cursor` der n\u00e4chsten Seite und fehlt auf der letzten. `X-Total-Count` nennt die Gesamtzahl. Ohne das Modul Icons antwortet die API mit `404`.",
                "summary": "Icons auflisten",
                "tags": [
                    "Icons"
                ],
                "parameters": [
                    {
                        "name": "query",
                        "in": "query",
                        "description": "Suchbegriffe, z. B. `pfeil`.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "category",
                        "in": "query",
                        "description": "Kategorie, Name oder Slug.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "tag",
                        "in": "query",
                        "description": "Tag, Name oder Slug.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "Eintr\u00e4ge je Seite, 1 bis 200, Standard 50.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "cursor",
                        "in": "query",
                        "description": "Wert aus dem Header `X-Next-Cursor` der vorigen Seite.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `Icon`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Icon"
                                    }
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/icons/colors": {
            "get": {
                "operationId": "list-icon-colors",
                "description": "Liefert die Farben, in denen Icons der Marke abgerufen werden d\u00fcrfen: die freigegebenen Markenfarben (die erste ist der Standard), \u201eNegativ\u201c (Wei\u00df auf dem dunklen Markengrund) und ob eine freie Farbe erlaubt ist. Eine andere Farbe f\u00e4llt beim Abruf auf die erste Markenfarbe zur\u00fcck.",
                "summary": "Icon-Farben abrufen",
                "tags": [
                    "Icons"
                ],
                "responses": {
                    "200": {
                        "description": "`IconColors`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/IconColors"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/icons/{id}": {
            "get": {
                "operationId": "get-icon",
                "description": "Liefert ein Icon als SVG (`image/svg+xml`) oder PNG (`image/png`, transparent, quadratisch). Umf\u00e4rbbare Icons nehmen die Farbe aus `color` an, solange die Marke sie freigibt (`GET /icons/colors`); eine nicht freigegebene Farbe f\u00e4llt auf die erste Markenfarbe zur\u00fcck. Icons mit `recolorable: false` kommen immer im Original. Ohne `color` tragen umf\u00e4rbbare SVGs `currentColor` und \u00fcbernehmen die Textfarbe der Umgebung, PNGs kommen in der ersten Markenfarbe. Der Header `X-Icon-Color` nennt die angewandte Farbe. `size` setzt beim SVG Breite und H\u00f6he, beim PNG die Kantenl\u00e4nge (Standard 256). Mit `download=1` kommt die Datei als Anhang (`Content-Disposition: attachment`) und z\u00e4hlt als Download in der Statistik der Marke; ohne `download` ist der Abruf eine Vorschau (`inline`) und z\u00e4hlt nicht.",
                "summary": "Icon abrufen",
                "tags": [
                    "Icons"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "ID des Icons aus `GET /icons`.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "description": "`svg` (Standard) oder `png`.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "svg",
                                "png"
                            ]
                        }
                    },
                    {
                        "name": "color",
                        "in": "query",
                        "description": "Zielfarbe als Hex, mit oder ohne `#`, z. B. `003366`.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "size",
                        "in": "query",
                        "description": "Gr\u00f6\u00dfe in Pixeln, 1 bis 4096.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "download",
                        "in": "query",
                        "description": "`1` liefert die Datei als Anhang und z\u00e4hlt sie als Download; ohne Angabe Vorschau (`inline`), z\u00e4hlt nicht.",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Das Icon als SVG oder PNG.",
                        "content": {
                            "image/svg+xml": {
                                "schema": {
                                    "type": "string"
                                }
                            },
                            "image/png": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/media": {
            "get": {
                "operationId": "list-media",
                "description": "Liefert freigegebene, fertig verarbeitete Medien, neueste zuerst. Bild- und Asset-Bl\u00f6cke in Seiten verweisen auf IDs aus dieser Liste. Mit `q` und `category` l\u00e4sst sich die Liste eingrenzen. Die Antwort ist seitenweise: Standard 50 Eintr\u00e4ge, mit `limit` bis 200. Der Header `X-Next-Cursor` nennt den `cursor` der n\u00e4chsten Seite und fehlt auf der letzten. `X-Total-Count` nennt die Gesamtzahl. `thumbnail_url` ist ein signierter Link auf die Vorschau (`thumb`), 60 Minuten g\u00fcltig und f\u00fcr Vorschauen gedacht; Web-Gr\u00f6\u00dfe, Original und Rechte-Angaben liefert die Einzelabfrage. Die Liste gilt auch ohne Modul Media, weil Bild- und Asset-Bl\u00f6cke auf diese IDs verweisen, dann ohne Links.",
                "summary": "Medien auflisten",
                "tags": [
                    "Medien"
                ],
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "description": "Suchbegriffe in Titel, Beschreibung, Dateiname, Ort, Abteilung, Tags, Kategorie, Personen und Verwendungszwecken. Mehrere Begriffe m\u00fcssen alle zutreffen.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "category",
                        "in": "query",
                        "description": "Kategorie per ID oder Slug, z. B. `3` oder `menschen`.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "Eintr\u00e4ge je Seite, 1 bis 200, Standard 50.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "cursor",
                        "in": "query",
                        "description": "Wert aus dem Header `X-Next-Cursor` der vorigen Seite. ",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `MediaItem`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/MediaItem"
                                    }
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/media/{id}": {
            "get": {
                "operationId": "get-media",
                "description": "Liefert ein freigegebenes Medium mit Rechten (Urheber, Copyright, Lizenz, Ablauf, Stock-Quelle, Verwendungszwecke), KI-Kennzeichnung und den Dateien je Gr\u00f6\u00dfe (`original`, `web` bis 2200 px Kante, `thumb`). Jede Datei nennt Ma\u00dfe, Format und einen signierten Download-Link, der 60 Minuten g\u00fcltig ist und ohne Anmeldung funktioniert. Die Datei laden und selbst ablegen, nicht verlinken (kein Hotlinking). Bei KI-Bildern ist das KI-Label in die Datei eingebrannt. Gesperrte Bilder (`locked: true`), Bilder mit abgelaufener Lizenz, Videos und Icons kommen ohne Dateien, ebenso alle Bilder, wenn das Modul Media der Marke aus ist. Unbekannte oder fremde IDs antworten mit `404`.",
                "summary": "Medium abrufen",
                "tags": [
                    "Medien"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "ID oder `public_id` des Mediums aus der Liste.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`MediaItemDetail`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/MediaItemDetail"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/downloads": {
            "get": {
                "operationId": "list-downloads",
                "description": "Liefert die Download-Dateien der Marke nach Titel sortiert, h\u00f6chstens 100. `q` sucht in Titel und Dateiname, `format` grenzt auf eine Dateiendung ein, z. B. `pptx`. Jede Datei nennt Titel, Dateiname, Format, Sichtbarkeit in der Plattform und einen signierten Download-Link, der 60 Minuten g\u00fcltig ist (`download_valid_minutes`) und ohne Anmeldung funktioniert. Die Datei laden und selbst ablegen, nicht verlinken. Abrufe des Links z\u00e4hlen als Download in der Statistik der Marke.",
                "summary": "Downloads auflisten",
                "tags": [
                    "Downloads"
                ],
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "description": "Suchbegriffe in Titel und Dateiname. Mehrere Begriffe m\u00fcssen alle zutreffen.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "description": "Dateiendung ohne Punkt, z. B. `pptx` oder `pdf`.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `Download`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Download"
                                    }
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/layout/templates": {
            "get": {
                "operationId": "list-layout-templates",
                "description": "Liefert die aktuellen Layout-Vorlagen der Marke: Produkte, Varianten mit Pflichtrollen, Textrollen mit `max_chars` und Kurzfassung, Bildrollen und Parameter mit erlaubten Werten. `how_to` beschreibt den Aufbau von `roles`.",
                "summary": "Layout-Vorlagen auflisten",
                "tags": [
                    "Layouts"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "templates": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "template": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "products": {
                                                        "type": "array",
                                                        "items": {}
                                                    },
                                                    "variants": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "array",
                                                            "items": {}
                                                        }
                                                    },
                                                    "texts": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "array",
                                                            "items": {}
                                                        }
                                                    },
                                                    "images": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "array",
                                                            "items": {}
                                                        }
                                                    },
                                                    "params": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "array",
                                                            "items": {}
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "template",
                                                    "name",
                                                    "products",
                                                    "variants",
                                                    "texts",
                                                    "images",
                                                    "params"
                                                ]
                                            }
                                        },
                                        "how_to": {
                                            "type": "string",
                                            "const": "roles ist ein Objekt Rolle \u2192 Wert. Texte als String, h\u00f6chstens max_chars Zeichen; kennt eine Textrolle eine Kurzfassung (short), liefere sie mit, dann setzt die Vorlage sie ein, wenn der lange Text nicht passt. Bildrollen (images) bekommen {\"media\": \"<id>\"} mit der id eines freigegebenen Fotos aus der Media-Suche (MCP: search_media, Feld id; REST: GET /media, Feld public_id). Pflichtrollen h\u00e4ngen an der Variante (variants[].required); Varianten mit editor_only brauchen ein eigenes Foto, das nur eine Person im Layout-Editor setzt, die nimmst du nicht. Hat eine Textrolle markdown, nimmt sie genau dieses Markdown an (sonst Klartext, ein ** bleibt sichtbar); max_chars z\u00e4hlt dort ohne Markup. params nur mit Werten aus allowed, ohne Angabe gilt der Standard. product aus products der Vorlage."
                                        }
                                    },
                                    "required": [
                                        "templates",
                                        "how_to"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/layout/validate": {
            "post": {
                "operationId": "validate-layout",
                "description": "Pr\u00fcft einen Inhalt gegen eine Vorlage, ohne etwas anzulegen: Pflichtrollen, Zeichenlimits, Bilder, Parameter und, wenn verf\u00fcgbar, ob die Texte im Layout Platz haben. Antwortet mit `ok` und `issues` (Code, Rolle, Meldung, `fix`), dieselben Codes wie der Layout-Editor. Fehlerhafte Eingaben (falsche Typen) beantwortet die API mit `422`.",
                "summary": "Layout-Inhalt pr\u00fcfen",
                "tags": [
                    "Layouts"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "template": {
                                        "type": "string",
                                        "description": "Schl\u00fcssel der Vorlage aus `GET /layout/templates`."
                                    },
                                    "product": {
                                        "type": "string",
                                        "description": "Produkt (Format) aus `products` der Vorlage, z. B. `linkedin-post`."
                                    },
                                    "variant": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Variante der Vorlage; ohne Angabe die Standard-Variante."
                                    },
                                    "roles": {
                                        "type": "object",
                                        "description": "Rolle \u2192 Wert. Texte als String, Bildrollen als `{\"media\": \"<public_id>\"}` mit der `public_id` eines Fotos aus `GET /media`.",
                                        "additionalProperties": {
                                            "anyOf": [
                                                {
                                                    "type": "string"
                                                },
                                                {
                                                    "type": "object",
                                                    "properties": {
                                                        "media": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "media"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "params": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "description": "Farb- oder Auswahl-Parameter, nur Werte aus `allowed` der Vorlage.",
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    }
                                },
                                "required": [
                                    "template",
                                    "product",
                                    "roles"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "422": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {}
                                }
                            }
                        }
                    },
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "checked": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "issues": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "additionalProperties": {}
                                            }
                                        },
                                        "note": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "ok",
                                        "checked",
                                        "issues"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/layout/documents": {
            "post": {
                "operationId": "create-layout-document",
                "description": "Legt einen Layout-Entwurf an, rendert ihn und antwortet mit `201`, dem Befund des Renderers und `preview_url`, einem PNG-Link, der h\u00f6chstens 24 Stunden gilt. Ung\u00fcltige Angaben (Pflichtrolle fehlt, Text zu lang, fremdes Bild) lehnt die API mit `422` und `issues` ab, es entsteht dann nichts.",
                "summary": "Layout-Entwurf anlegen",
                "tags": [
                    "Layouts"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "Kurzer Name des Layouts, h\u00f6chstens 120 Zeichen."
                                    },
                                    "template": {
                                        "type": "string",
                                        "description": "Schl\u00fcssel der Vorlage aus `GET /layout/templates`."
                                    },
                                    "product": {
                                        "type": "string",
                                        "description": "Produkt (Format) aus `products` der Vorlage, z. B. `linkedin-post`."
                                    },
                                    "variant": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Variante der Vorlage; ohne Angabe die Standard-Variante."
                                    },
                                    "roles": {
                                        "type": "object",
                                        "description": "Rolle \u2192 Wert. Texte als String, Bildrollen als `{\"media\": \"<public_id>\"}` mit der `public_id` eines Fotos aus `GET /media`.",
                                        "additionalProperties": {
                                            "anyOf": [
                                                {
                                                    "type": "string"
                                                },
                                                {
                                                    "type": "object",
                                                    "properties": {
                                                        "media": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "media"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "params": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "description": "Farb- oder Auswahl-Parameter, nur Werte aus `allowed` der Vorlage.",
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    }
                                },
                                "required": [
                                    "name",
                                    "template",
                                    "product",
                                    "roles"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "422": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {}
                                }
                            }
                        }
                    },
                    "201": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {}
                                }
                            }
                        }
                    }
                }
            }
        },
        "/layout/documents/{id}": {
            "get": {
                "operationId": "get-layout-document",
                "description": "Liefert einen \u00fcber diesen Zugang angelegten Entwurf mit frischem `preview_url`. Entw\u00fcrfe anderer Zug\u00e4nge oder Personen gibt es hier nicht (`404`).",
                "summary": "Layout-Entwurf abrufen",
                "tags": [
                    "Layouts"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "ID aus der Antwort von `POST /layout/documents`.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {}
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/slides": {
            "get": {
                "operationId": "list-slides",
                "description": "Liefert die Folien der Marke in der Reihenfolge der Bibliothek (position, dann id), h\u00f6chstens 100. `q` sucht im Titel, mehrere Begriffe m\u00fcssen alle zutreffen. Vorlagen (`kind` = `template`) kommen vor fertigen Folien (`finished`). Jede Folie nennt `id`, `title`, `kind`, einen signierten Vorschau-Link (`preview_url`, `null` ohne Vorschaubild) und einen signierten Link auf die Ein-Folien-PPTX (`download_url`). Beide Links sind `download_valid_minutes` Minuten g\u00fcltig und funktionieren ohne Anmeldung. Ohne das Modul PowerPoint-Add-in der Marke antwortet die Route mit 404.",
                "summary": "Folien auflisten",
                "tags": [
                    "Folien"
                ],
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "description": "Suchbegriffe im Titel.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `Slide`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Slide"
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/token": {
            "delete": {
                "operationId": "delete-token",
                "description": "Meldet eine App ab, die mit einem Personen-Token (OAuth) verbunden ist: Das Token, sein Refresh-Token und alle Tokens derselben App f\u00fcr diese Person und Marke werden ung\u00fcltig. Mit einem API-Key antwortet der Endpunkt mit `404`; Keys widerruft die Ansprechperson der Marke.",
                "summary": "Personen-Token widerrufen",
                "tags": [
                    "Anmeldung"
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "description": "API-Key der Marke als Bearer-Token.",
                "scheme": "bearer"
            }
        },
        "schemas": {
            "BrandColor": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "role": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "hex": {
                        "type": "string"
                    },
                    "rgb": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "cmyk": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "pantone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "ral": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "ncs": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "share": {
                        "type": "integer"
                    },
                    "text_colors": {
                        "type": "array",
                        "description": "Erlaubte Textfarben auf dieser Farbe (#1649): `white`, `black` oder die id einer Markenfarbe.",
                        "items": {}
                    },
                    "text_colors_denied": {
                        "type": "array",
                        "description": "Unzul\u00e4ssige Textfarben auf dieser Farbe, gleiches Format wie text_colors.",
                        "items": {}
                    },
                    "text_contrast": {
                        "type": "array",
                        "description": "Kontrastverh\u00e4ltnis und WCAG-Stufe je erlaubter Textfarbe: all (ab 4,5), large (ab 3, nur gro\u00dfe Schrift), none.",
                        "items": {}
                    },
                    "shades": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "opacity": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "hex": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "opacity",
                                "hex"
                            ]
                        }
                    }
                },
                "required": [
                    "id",
                    "name",
                    "description",
                    "role",
                    "hex",
                    "rgb",
                    "cmyk",
                    "pantone",
                    "ral",
                    "ncs",
                    "shades"
                ],
                "title": "BrandColor"
            },
            "BrandColorSummary": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string"
                    },
                    "role": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "share": {
                        "type": "integer"
                    }
                },
                "required": [
                    "id",
                    "name",
                    "role",
                    "description"
                ],
                "title": "BrandColorSummary"
            },
            "BrandLogo": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "variants": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                },
                "required": [
                    "id",
                    "name",
                    "type",
                    "variants"
                ],
                "title": "BrandLogo"
            },
            "BrandLogoSummary": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "variants": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                },
                "required": [
                    "id",
                    "name",
                    "type",
                    "variants"
                ],
                "title": "BrandLogoSummary"
            },
            "Download": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "filename": {
                        "type": "string"
                    },
                    "format": {
                        "type": "string",
                        "description": "Dateiendung in Kleinbuchstaben, z. B. `pptx`."
                    },
                    "visibility": {
                        "type": "string",
                        "description": "`public`: in der Plattform ohne Anmeldung abrufbar. `login`: dort nur f\u00fcr angemeldete Mitglieder.",
                        "enum": [
                            "login",
                            "public"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Zeitpunkt, zu dem die Datei zuletzt ersetzt wurde."
                    },
                    "download_url": {
                        "type": "string",
                        "description": "Signierter Link, 60 Minuten g\u00fcltig, ohne Anmeldung. Abrufe z\u00e4hlen als Download."
                    },
                    "download_valid_minutes": {
                        "type": "integer",
                        "const": 60
                    }
                },
                "required": [
                    "id",
                    "title",
                    "filename",
                    "format",
                    "visibility",
                    "updated_at",
                    "download_url",
                    "download_valid_minutes"
                ],
                "title": "Download"
            },
            "Icon": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "description": "Kennung f\u00fcr `GET /icons/{id}`."
                    },
                    "name": {
                        "type": "string"
                    },
                    "category": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "recolorable": {
                        "type": "boolean",
                        "description": "Einfarbig und umf\u00e4rbbar. `false`: das Icon bleibt bei jeder Farbe im Original."
                    }
                },
                "required": [
                    "id",
                    "name",
                    "category",
                    "tags",
                    "recolorable"
                ],
                "title": "Icon"
            },
            "IconColors": {
                "type": "object",
                "properties": {
                    "colors": {
                        "type": "array",
                        "description": "Freigegebene Markenfarben, die erste ist der Standard und der R\u00fcckfall f\u00fcr nicht freigegebene Farben.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "value": {
                                    "type": "string"
                                },
                                "label": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "value",
                                "label"
                            ]
                        }
                    },
                    "default": {
                        "type": "string",
                        "description": "Hex der ersten Markenfarbe."
                    },
                    "negative": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "\u201eNegativ\u201c: das Icon in Wei\u00df (`value`) auf dem dunklen Markengrund (`background`); `null`, wenn die Marke es nicht freigibt.",
                        "properties": {
                            "value": {
                                "type": "string"
                            },
                            "background": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "value",
                            "background"
                        ]
                    },
                    "custom_color_allowed": {
                        "type": "boolean",
                        "description": "Jede Hex-Farbe erlaubt. Bei `false` fallen andere als die genannten Farben auf `default` zur\u00fcck."
                    }
                },
                "required": [
                    "colors",
                    "default",
                    "negative",
                    "custom_color_allowed"
                ],
                "title": "IconColors"
            },
            "MediaItem": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "public_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Kennung f\u00fcr Bildrollen in Layouts (`{\"media\": \"<public_id>\"}`) und die Treffer des MCP."
                    },
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "type": {
                        "type": "string"
                    },
                    "caption": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "width": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "height": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "media_category_id": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "thumbnail_url": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Signierter Link auf die Vorschau (`thumb`), 60 Minuten g\u00fcltig, f\u00fcr Vorschauen gedacht: Datei laden und selbst ablegen, kein Hotlinking. `null` ohne Thumb, bei gesperrten Bildern, abgelaufener Lizenz, Videos, Icons und ohne Modul Media. Die Web-Gr\u00f6\u00dfe und das Original liefert `GET /media/{id}`."
                    }
                },
                "required": [
                    "id",
                    "public_id",
                    "title",
                    "type",
                    "caption",
                    "width",
                    "height",
                    "media_category_id",
                    "thumbnail_url"
                ],
                "title": "MediaItem"
            },
            "MediaItemDetail": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "public_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "type": {
                        "type": "string"
                    },
                    "caption": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "width": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "height": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "media_category_id": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "category": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "tags": {
                        "type": "array",
                        "items": {}
                    },
                    "usages": {
                        "type": "array",
                        "items": {}
                    },
                    "people": {
                        "type": "array",
                        "items": {}
                    },
                    "orientation": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "source": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "photographer": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "copyright": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "license": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "license_expires_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "license_expired": {
                        "type": "boolean"
                    },
                    "stock_platform": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "stock_license_holder": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "rights_unclear": {
                        "type": "boolean"
                    },
                    "ai_generated": {
                        "type": "boolean"
                    },
                    "ai_variant": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "KI-Stufe nach EU AI Act, `null` ohne KI. Bei KI-Bildern ist das Label in die ausgelieferte Datei eingebrannt."
                    },
                    "locked": {
                        "type": "boolean",
                        "description": "`true`: Download nur f\u00fcr das Marken-Team, `files` ist leer. Freigabe beim Marketing anfragen."
                    },
                    "files": {
                        "type": "array",
                        "description": "Dateien je Gr\u00f6\u00dfe (`original`, `web`, `thumb`), soweit vorhanden. `download_url` ist signiert, 60 Minuten g\u00fcltig und funktioniert ohne Anmeldung: Datei laden und selbst ablegen, kein Hotlinking. Leer bei gesperrten Bildern, abgelaufener Lizenz, Videos, Icons und ohne Modul Media.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "size": {
                                    "type": "string"
                                },
                                "width": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ]
                                },
                                "height": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ]
                                },
                                "format": {
                                    "type": "string"
                                },
                                "download_url": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "size",
                                "width",
                                "height",
                                "format",
                                "download_url"
                            ]
                        }
                    },
                    "download_valid_minutes": {
                        "type": "integer",
                        "const": 60
                    }
                },
                "required": [
                    "id",
                    "public_id",
                    "title",
                    "type",
                    "caption",
                    "width",
                    "height",
                    "media_category_id",
                    "category",
                    "tags",
                    "usages",
                    "people",
                    "orientation",
                    "source",
                    "photographer",
                    "copyright",
                    "license",
                    "license_expires_at",
                    "license_expired",
                    "stock_platform",
                    "stock_license_holder",
                    "rights_unclear",
                    "ai_generated",
                    "ai_variant",
                    "locked",
                    "files",
                    "download_valid_minutes"
                ],
                "title": "MediaItemDetail"
            },
            "Page": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "slug": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "parent_id": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "nav_expansion": {
                        "type": "string"
                    },
                    "visibility": {
                        "type": "string"
                    },
                    "visible_for_groups": {
                        "type": "array",
                        "description": "Slugs der Nutzergruppen, f\u00fcr die die Seite sichtbar ist; leer = alle Angemeldeten. Unterseiten erben die Gruppen ihres Kapitels. Nur f\u00fcr Zug\u00e4nge, die alle Seiten der Marke sehen (Admin, Redaktion, Agentur), sonst fehlt das Feld.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "blocks": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "type": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "data": {
                                    "type": "object",
                                    "additionalProperties": {}
                                }
                            },
                            "required": [
                                "id",
                                "type",
                                "data"
                            ]
                        }
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "title",
                    "slug",
                    "type",
                    "parent_id",
                    "nav_expansion",
                    "visibility",
                    "blocks",
                    "updated_at"
                ],
                "title": "Page"
            },
            "PageSummary": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "slug": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "parent_id": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "nav_expansion": {
                        "type": "string"
                    },
                    "visibility": {
                        "type": "string"
                    },
                    "published_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Nur bei News (#712): Ver\u00f6ffentlichung; Entw\u00fcrfe sehen nur Agentur-Zug\u00e4nge."
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "title",
                    "slug",
                    "type",
                    "parent_id",
                    "nav_expansion",
                    "visibility",
                    "published_at",
                    "updated_at"
                ],
                "title": "PageSummary"
            },
            "Slide": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "kind": {
                        "type": "string",
                        "description": "`template` (Vorlage zum Bef\u00fcllen) oder `finished` (fertig gestaltete Folie, z. B. mit Kennzahlen)."
                    },
                    "preview_url": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Signierter Link auf das Vorschaubild (PNG oder JPG), 60 Minuten g\u00fcltig, ohne Anmeldung. `null`, wenn die Folie keine Vorschau hat."
                    },
                    "download_url": {
                        "type": "string",
                        "description": "Signierter Link auf die Ein-Folien-PPTX, 60 Minuten g\u00fcltig, ohne Anmeldung."
                    },
                    "download_valid_minutes": {
                        "type": "integer",
                        "const": 60
                    }
                },
                "required": [
                    "id",
                    "title",
                    "kind",
                    "preview_url",
                    "download_url",
                    "download_valid_minutes"
                ],
                "title": "Slide"
            }
        },
        "responses": {
            "ModelNotFoundException": {
                "description": "Not found",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Error overview."
                                }
                            },
                            "required": [
                                "message"
                            ]
                        }
                    }
                }
            },
            "ValidationException": {
                "description": "Validation error",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Errors overview."
                                },
                                "errors": {
                                    "type": "object",
                                    "description": "A detailed description of each field that failed validation.",
                                    "additionalProperties": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "required": [
                                "message",
                                "errors"
                            ]
                        }
                    }
                }
            }
        }
    }
}