aYOUne
← AI API

KnowledgeSources

Singular: KnowledgeSource — 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 /knowledgesources List with filters/pagination ai.knowledgesources.view
GET /knowledgesources/:id Single record ai.knowledgesources.view
POST /knowledgesources Create new record ai.knowledgesources.new
PUT /knowledgesources Update record ai.knowledgesources.edit
DELETE /knowledgesources/:id Delete record ai.knowledgesources.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// List all
const list = await ay.ai.knowledgeSources.find().limit(10).exec();

// Single record
const one = await ay.ai.knowledgeSources.findById('OBJECT_ID').exec();

// Create
const created = await ay.ai.knowledgeSources.create({ name: 'Foo' });

See also