← KI / AI API
AIKnowledgePacks
Singular: AIKnowledgePack — Base-URL: https://ai.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)
Jetzt ausprobieren
beta
Response (live)
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": "6b0650cf8bde05521909ddab",
"name": "CONVENIENT_INDIGO_BOBA FETT",
"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-11-25T03:06:55.802Z",
"updatedAt": "2026-11-25T03:06:55.802Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://ai.ayoune.app/aiknowledgepacks/6b0650cf8bde05521909ddab",
"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": "6b0650cf8bde05521909dddd",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_AIKNOWLEDGEPACK",
"href": "https://api.ayoune.app/ai/aiknowledgepacks/6b0650cf8bde05521909ddab/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_AIKNOWLEDGEPACK",
"href": "https://api.ayoune.app/ai/aiknowledgepacks/6b0650cf8bde05521909ddab",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.178.0",
"core": "2026.398.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "9817",
"reset": "1795579601",
"resetDate": "Wed Nov 25 2026"
},
"responseTime": 92.09915,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| 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' });