← AI API
Libraries
Singular: Library — Base URL: https://ai.ayoune.app — Access: CRUD
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.
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /libraries |
List with filters/pagination | ai.libraries.view |
| GET | /libraries/:id |
Single record | ai.libraries.view |
| POST | /libraries |
Create new record | ai.libraries.new |
| PUT | /libraries |
Update record | ai.libraries.edit |
| DELETE | /libraries/:id |
Delete record | ai.libraries.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.ai.libraries.find().limit(10).exec();
// Single record
const one = await ay.ai.libraries.findById('OBJECT_ID').exec();
// Create
const created = await ay.ai.libraries.create({ name: 'Foo' });