Skip to content
aYOUne
← AI API

AIKnowledgePacks

Singular: AIKnowledgePack — Base URL: https://ai.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)

Try it now beta

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": "6adc22bc5d8abb0fad3e23ad",
    "name": "BIZARRE_AZURE_RUGOR NASS",
    "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-24T03:15:08.161Z",
    "updatedAt": "2026-10-24T03:15:08.161Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ai.ayoune.app/aiknowledgepacks/6adc22bc5d8abb0fad3e23ad",
        "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": "6adc22bc4e25bdc20966255a",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AIKNOWLEDGEPACK",
        "href": "https://api.ayoune.app/ai/aiknowledgepacks/6adc22bc5d8abb0fad3e23ad/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AIKNOWLEDGEPACK",
        "href": "https://api.ayoune.app/ai/aiknowledgepacks/6adc22bc5d8abb0fad3e23ad",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.178.0",
      "core": "2026.388.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9803",
      "reset": "1792815292",
      "resetDate": "Sat Oct 24 2026"
    },
    "responseTime": 20.64176,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

MethodPathDescriptionRight
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' });

See also