← 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": "6a353bd55a44977e01d46705",
"name": "Company Knowledge Pack",
"description": "Template for core company knowledge — fill in your company details to improve AI responses",
"status": "draft",
"version": 1,
"priority": 50,
"scope": "customer",
"departments": [],
"entries": [
{
"type": "company_profile",
"title": "Company Profile",
"content": "",
"sourcePriority": 10,
"tags": [
"core"
],
"_id": "6a353bd55a44977e01d46706"
},
{
"type": "brand_voice",
"title": "Brand Voice & Tone",
"content": "",
"sourcePriority": 9,
"tags": [
"brand"
],
"_id": "6a353bd55a44977e01d46707"
},
{
"type": "faq_objections",
"title": "FAQ & Common Objections",
"content": "",
"sourcePriority": 8,
"tags": [
"sales",
"support"
],
"_id": "6a353bd55a44977e01d46708"
},
{
"type": "processes_sops",
"title": "Standard Operating Procedures",
"content": "",
"sourcePriority": 7,
"tags": [
"operations"
],
"_id": "6a353bd55a44977e01d46709"
},
{
"type": "pricing_rules",
"title": "Pricing & Discount Rules",
"content": "",
"sourcePriority": 6,
"tags": [
"sales",
"finance"
],
"_id": "6a353bd55a44977e01d4670a"
},
{
"type": "claims_nogo",
"title": "Claims & No-Go Topics",
"content": "",
"sourcePriority": 10,
"tags": [
"compliance",
"legal"
],
"_id": "6a353bd55a44977e01d4670b"
},
{
"type": "icp_personas",
"title": "Ideal Customer Profiles",
"content": "",
"sourcePriority": 5,
"tags": [
"marketing",
"sales"
],
"_id": "6a353bd55a44977e01d4670c"
},
{
"type": "offer_catalog",
"title": "Product & Service Catalog",
"content": "",
"sourcePriority": 7,
"tags": [
"sales",
"ecommerce"
],
"_id": "6a353bd55a44977e01d4670d"
}
],
"_agents": [],
"autoInject": false,
"injectionPosition": "system-prompt-append",
"isTemplate": false,
"global": false,
"createdAt": "2026-06-19T12:53:41.479Z",
"updatedAt": "2026-06-19T12:53:41.479Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://ai.ayoune.app/aiknowledgepacks/6a353bd55a44977e01d46705",
"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": "6a87c166be1831c6873fb93e",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_AIKNOWLEDGEPACK",
"href": "https://api.ayoune.app/ai/aiknowledgepacks/6a353bd55a44977e01d46705/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_AIKNOWLEDGEPACK",
"href": "https://api.ayoune.app/ai/aiknowledgepacks/6a353bd55a44977e01d46705/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.161.1",
"core": "2026.290.1"
},
"rateLimit": {
"limit": "10000",
"remaining": "9731",
"reset": "1787285328",
"resetDate": "Fri Aug 21 2026"
},
"responseTime": 14.694139,
"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' });