aYOUne
← KI / AI API

AIEnterpriseControls

Singular: AIEnterpriseControl — Base-URL: https://ai.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

play_circle Jetzt ausprobieren beta

Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.

Beispiel-Response (aufgezeichnet) Beispiel

Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.

{
  "payload": {
    "policy": {
      "rules": [
        {
          "ruleId": "at-1",
          "description": "All AI queries must be logged to AILogs",
          "enforcement": "log",
          "_id": "6a700afecccb66fc91bc61bf",
          "isDraft": true
        },
        {
          "ruleId": "at-2",
          "description": "Track cost per query",
          "enforcement": "log",
          "_id": "6a700afecccb66fc91bc61c0",
          "isDraft": true
        }
      ]
    },
    "complianceEvidence": {
      "evidenceLinks": [],
      "certifications": []
    },
    "breakGlassConfig": {
      "enabled": false,
      "_approvers": [],
      "expiryMinutes": 60,
      "notifyOnActivation": true,
      "requireReason": true,
      "maxDuration": 240
    },
    "_id": "6a700afecccb66fc91bc61be",
    "category": "audit",
    "name": "Audit Trail",
    "description": "Ensure all AI operations are logged",
    "status": "active",
    "reviewCycle": "monthly",
    "global": false,
    "isTemplate": false,
    "_clonedFrom": "69d48fc5b0a12a944dbd99d6",
    "isDraft": true,
    "createdAt": "2026-08-03T03:29:02.049Z",
    "updatedAt": "2026-08-03T03:29:02.049Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ai.ayoune.app/aienterprisecontrols/6a700afecccb66fc91bc61be",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "AIEnterpriseControls",
        "title": "MODEL_AIENTERPRISECONTROL",
        "href": "https://api.ayoune.app/ai/aienterprisecontrols/69d48fc5b0a12a944dbd99d6",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aienterprisecontrols"
      }
    ],
    "relations": [
      {
        "rel": "AIEnterpriseControls",
        "title": "MODEL_AIENTERPRISECONTROL",
        "href": "https://api.ayoune.app/ai/aienterprisecontrols",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aienterprisecontrols"
      }
    ],
    "debugId": "6a8a6b1c216dcd463ba82096",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AIENTERPRISECONTROL",
        "href": "https://api.ayoune.app/ai/aienterprisecontrols/6a700afecccb66fc91bc61be/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AIENTERPRISECONTROL",
        "href": "https://api.ayoune.app/ai/aienterprisecontrols/6a700afecccb66fc91bc61be/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.162.0",
      "core": "2026.315.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9801",
      "reset": "1787459872",
      "resetDate": "Sun Aug 23 2026"
    },
    "responseTime": 18.28087,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /aienterprisecontrols Liste mit Filtern/Paginierung ai.aienterprisecontrols.view
GET /aienterprisecontrols/:id Einzelner Datensatz ai.aienterprisecontrols.view
POST /aienterprisecontrols Neuen Datensatz erstellen ai.aienterprisecontrols.new
PUT /aienterprisecontrols Datensatz aktualisieren ai.aienterprisecontrols.edit
DELETE /aienterprisecontrols/:id Datensatz löschen ai.aienterprisecontrols.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// Alle abrufen
const list = await ay.ai.aIEnterpriseControls.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.ai.aIEnterpriseControls.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.ai.aIEnterpriseControls.create({ name: 'Foo' });

Weiterführend