Zum Inhalt springen
aYOUne
← KI / AI API

AIKnowledgePacks

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

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": {
    "_id": "6ac9ad8f6009247dc68b32a9",
    "name": "COLD_YELLOW_WILHUFF TARKIN",
    "status": "active",
    "version": 1,
    "priority": 50,
    "scope": "customer",
    "departments": [],
    "_agents": [],
    "autoInject": false,
    "injectionPosition": "system-prompt-append",
    "isTemplate": false,
    "global": false,
    "createdBy": "6045f4d25704710012485569",
    "entries": [],
    "shares": [],
    "createdAt": "2026-10-10T03:14:23.891Z",
    "updatedAt": "2026-10-10T03:14:23.891Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ai.ayoune.app/aiknowledgepacks/6ac9ad8f6009247dc68b32a9",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Industries",
        "title": "MODEL_INDUSTRY",
        "href": "https://api.ayoune.app/config/industries",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.industries"
      },
      {
        "rel": "AIKnowledgePacks",
        "title": "MODEL_AIKNOWLEDGEPACK",
        "href": "https://api.ayoune.app/ai/aiknowledgepacks",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aiknowledgepacks"
      }
    ],
    "debugId": "6ac9ad906009247dc68b32e1",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AIKNOWLEDGEPACK",
        "href": "https://api.ayoune.app/ai/aiknowledgepacks/6ac9ad8f6009247dc68b32a9/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AIKNOWLEDGEPACK",
        "href": "https://api.ayoune.app/ai/aiknowledgepacks/6ac9ad8f6009247dc68b32a9",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.178.0",
      "core": "2026.368.2"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9799",
      "reset": "1791605633",
      "resetDate": "Sat Oct 10 2026"
    },
    "responseTime": 21.922379,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend