aYOUne
← AI API

AIKnowledgePacks

Singular: AIKnowledgePack — Base URL: https://ai.ayoune.app — Access: CRUD

play_circle Try it now beta

Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.

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