> ## Documentation Index
> Fetch the complete documentation index at: https://docs.truthlocks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Modell bestätigen

> Erstellen Sie eine Herkunftsbescheinigung für ein KI-Modell, verknüpfen Sie es mit Trainingsdatensätzen und zeichnen Sie Framework-Metadaten auf.

Erstellt eine kryptografisch verankerte Bestätigung für ein KI-Modell. Die Bestätigung erfasst das Framework, die Trainingsherkunft, die Hyperparameter und die Bewertungsmetriken des Modells. Sie ist mit dem ursprünglichen Agenten verknüpft und im Transparenzprotokoll verankert.

Modellattestierungen bieten einen überprüfbaren Nachweis darüber, was trainiert wurde, wie es trainiert wurde und welche Daten verwendet wurden – dies ermöglicht Compliance-Teams und nachgelagerten Verbrauchern, die Modellherkunft vor der Bereitstellung zu überprüfen.

### Antwort

**id** `string`

Eindeutiger Modell-Bestätigungs-Identifikator im MAIP-Format (`maip-model:ULID`).

**agent\_id** `string`

Der Agent, der dieses Modell attestiert hat.

**name** `string`

Modellname, wie in der Anfrage angegeben.

**version** `string`

Aufgelöste Version des Modells.

**framework** `string`

ML-Framework-Bezeichner.

**hash** `string`

SHA-256-Hex-Digest zur Integritätsprüfung gespeichert.

**training\_dataset\_ids** `string[]`

Verknüpfte Bezeichner des Trainingsdatensatzes.

**status** `string`

Bestätigungsstatus. Bei der Erstellung immer `attested`.

**receipt\_id** `string`

Transparenzprotokoll-Beleg, der diese Bestätigung verankert.

**created\_at** `string`

ISO 8601 Zeitstempel der Erstellung.


## OpenAPI

````yaml de/mint-openapi.yaml POST /v1/models/attest
openapi: 3.0.3
info:
  title: Truthlocks API
  description: >
    Truthlocks ist eine universelle Verifizierungsinfrastruktur für Dokumente,
    Anmeldeinformationen und digitale Assets.

    Diese Spezifikation definiert die kanonische API für die Interaktion mit
    Truthlocks-Diensten.


    ## Basis-URLs

    - **Produktion**: `https://api.truthlocks.com`

    - **Sandbox**: `https://sandbox-api.truthlocks.com`


    ## Authentifizierung

    - **API-Schlüssel**: Verwenden Sie den Header `X-API-Key` für
    Machine-to-Machine-Operationen

    - **Bearer Tokens**: Verwenden Sie `Authorization: Bearer <jwt>` für
    benutzerinitiierte Operationen


    ## Mandantenidentität

    In der Produktion wird die Mandantenidentität aus dem authentifizierten
    Kontext (API-Schlüssel oder JWT) abgeleitet.

    Der Header `X-Tenant-ID` wird in der Produktion ignoriert, um Spoofing zu
    verhindern.
  version: 1.0.0
  contact:
    name: Truthlocks Support
    url: https://truthlocks.com/support
    email: support@truthlocks.com
servers:
  - url: https://api.truthlocks.com
    description: Produktions-API
  - url: https://sandbox-api.truthlocks.com
    description: Sandbox-Umgebung
security:
  - APIKey: []
  - BearerAuth: []
tags:
  - name: Authentication
    description: API-Schlüssel- und Token-Verwaltung
  - name: Issuers
    description: Ausstellerregistrierung und Vertrauensmanagement
  - name: Keys
    description: Kryptographische Schlüsselverwaltung für Aussteller
  - name: Attestations
    description: Bestätigungslebenszyklus (prägen, widerrufen, ersetzen)
  - name: Verification
    description: Bestätigungsverifizierung und Proof-Bundles
  - name: Governance
    description: Aussteller-Governance-Workflows (nur Admin)
  - name: Identity
    description: Organisations-, Benutzer- und Rollenverwaltung
  - name: Audit
    description: Audit-Ereignisabfragen
  - name: Tenant Console
    description: Mandantenprofil- und Lebenszyklus-Endpunkte
  - name: Health
    description: Endpunkte für Dienststatus und Bereitschaft
  - name: Risk
    description: Erfassung von Risikosignalen und Betrugserkennung
  - name: Risk Enforcement
    description: >-
      Risikodurchsetzungsmaßnahmen – Blockieren, Herausfordern, Quarantäne und
      Konfiguration
  - name: Billing
    description: Verwaltung von Abrechnung, Abonnements und Add-ons
  - name: Machine Identity
    description: >-
      Machine Agent Identity Protocol (MAIP) – Agentenregistrierung, Sitzungen,
      Vertrauen, Zeugen, Compliance, Orchestrierung und Beobachtbarkeit
externalDocs:
  description: Transparenz-API nur lesend (separate Dienstspezifikation)
  url: >-
    https://github.com/truthlocks/truthlock/blob/main/docs/transparency/openapi.yaml
paths:
  /v1/models/attest:
    post:
      tags:
        - Machine Identity
      summary: Modell bestätigen
      description: >-
        Erstellt eine kryptografische Bestätigung für ein
        Machine-Learning-Modell, die dessen Hash, Framework, Version und die
        Herkunft des Trainingsdatensatzes aufzeichnet.
      operationId: maip.models.attest
      requestBody:
        required: true
        content:
          application/json:
            schema:
              properties:
                agent_id:
                  type: string
                  description: Bestätigender Agent
                  format: uuid
                architecture:
                  nullable: true
                  type: string
                framework:
                  type: string
                  description: ML-Framework (z.B. pytorch, tensorflow, onnx)
                hash_algorithm:
                  type: string
                hyperparameters: {}
                input_schema: {}
                metadata: {}
                metrics: {}
                model_hash:
                  type: string
                model_name:
                  type: string
                model_version:
                  type: string
                output_schema: {}
                previous_version_id:
                  nullable: true
                  type: string
                tags:
                  type: array
                  items:
                    type: string
                training_dataset_ids:
                  items:
                    type: string
                    format: uuid
                  type: array
                  description: IDs der bestätigten Trainingsdatensätze
              type: object
              required:
                - model_name
                - model_hash
                - agent_id
      responses:
        '201':
          description: Modell attestiert
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MaipModel'
        '400':
          description: Validierungsfehler
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: Authentifizierung erforderlich
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Ratenlimit überschritten
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
        - APIKey: []
components:
  schemas:
    MaipModel:
      type: object
      properties:
        model_id:
          type: string
          format: uuid
        receipt_id:
          type: string
          format: uuid
        name:
          type: string
        hash:
          type: string
        framework:
          type: string
        version:
          type: string
        agent_id:
          type: string
          format: uuid
        training_dataset_ids:
          type: array
          items:
            type: string
            format: uuid
        created_at:
          type: string
          format: date-time
    ErrorEnvelope:
      type: object
      required:
        - code
        - message
        - http_status
      properties:
        code:
          type: string
          description: Maschinenlesbarer Fehlercode
          enum:
            - AUTH_REQUIRED
            - AUTH_INVALID
            - PERMISSION_DENIED
            - TENANT_IDENTITY_UNVERIFIED
            - NOT_FOUND
            - VALIDATION_ERROR
            - CONFLICT
            - PAYLOAD_TOO_LARGE
            - RATE_LIMIT_EXCEEDED
            - QUOTA_EXCEEDED
            - SERVICE_UNAVAILABLE
            - INTERNAL_ERROR
        message:
          type: string
          description: Menschenlesbare Fehlermeldung
        http_status:
          type: integer
          description: HTTP-Statuscode
        retry_after_ms:
          type: integer
          description: >-
            Millisekunden, die vor einem erneuten Versuch gewartet werden sollen
            (für Ratenbegrenzungen)
        details:
          type: object
          description: Zusätzlicher Fehlerkontext
      example:
        code: AUTH_REQUIRED
        message: Authentication required
        http_status: 401
  securitySchemes:
    APIKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: API-Schlüssel für die Maschine-zu-Maschine-Authentifizierung
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT für benutzerinitiierte Operationen

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.