← AI API
AIKnowledgePacks
Singular: AIKnowledgePack — Base URL: https://ai.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)
Try it now
beta
Response (live)
Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.
Example response (recorded) sample
A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.
{
"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",
"isDraft": true,
"shares": []
},
{
"type": "brand_voice",
"title": "Brand Voice & Tone",
"content": "",
"sourcePriority": 9,
"tags": [
"brand"
],
"_id": "6a353bd55a44977e01d46707",
"isDraft": true,
"shares": []
},
{
"type": "faq_objections",
"title": "FAQ & Common Objections",
"content": "",
"sourcePriority": 8,
"tags": [
"sales",
"support"
],
"_id": "6a353bd55a44977e01d46708",
"isDraft": true,
"shares": []
},
{
"type": "processes_sops",
"title": "Standard Operating Procedures",
"content": "",
"sourcePriority": 7,
"tags": [
"operations"
],
"_id": "6a353bd55a44977e01d46709",
"isDraft": true,
"shares": []
},
{
"type": "pricing_rules",
"title": "Pricing & Discount Rules",
"content": "",
"sourcePriority": 6,
"tags": [
"sales",
"finance"
],
"_id": "6a353bd55a44977e01d4670a",
"isDraft": true,
"shares": []
},
{
"type": "claims_nogo",
"title": "Claims & No-Go Topics",
"content": "",
"sourcePriority": 10,
"tags": [
"compliance",
"legal"
],
"_id": "6a353bd55a44977e01d4670b",
"isDraft": true,
"shares": []
},
{
"type": "icp_personas",
"title": "Ideal Customer Profiles",
"content": "",
"sourcePriority": 5,
"tags": [
"marketing",
"sales"
],
"_id": "6a353bd55a44977e01d4670c",
"isDraft": true,
"shares": []
},
{
"type": "offer_catalog",
"title": "Product & Service Catalog",
"content": "",
"sourcePriority": 7,
"tags": [
"sales",
"ecommerce"
],
"_id": "6a353bd55a44977e01d4670d",
"isDraft": true,
"shares": []
}
],
"_agents": [],
"autoInject": false,
"injectionPosition": "system-prompt-append",
"isTemplate": false,
"global": false,
"isDraft": true,
"createdAt": "2026-06-19T12:53:41.479Z",
"updatedAt": "2026-06-19T12:53:41.479Z",
"shares": []
},
"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": "6a9e2cbb2b74005506a002c8",
"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",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.169.0",
"core": "2026.332.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "9729",
"reset": "1788754598",
"resetDate": "Mon Sep 07 2026"
},
"responseTime": 23.23543,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /aiknowledgepacks |
List with filters/pagination | ai.aiknowledgepacks.view |
| GET | /aiknowledgepacks/:id |
Single record | ai.aiknowledgepacks.view |
| POST | /aiknowledgepacks |
Create new record | ai.aiknowledgepacks.new |
| PUT | /aiknowledgepacks |
Update record | ai.aiknowledgepacks.edit |
| DELETE | /aiknowledgepacks/:id |
Delete record | ai.aiknowledgepacks.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.ai.aIKnowledgePacks.find().limit(10).exec();
// Single record
const one = await ay.ai.aIKnowledgePacks.findById('OBJECT_ID').exec();
// Create
const created = await ay.ai.aIKnowledgePacks.create({ name: 'Foo' });