← AI API
AICommands
Singular: AICommand — 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 | /aicommands |
List with filters/pagination | ai.aicommands.view |
| GET | /aicommands/:id |
Single record | ai.aicommands.view |
| POST | /aicommands |
Create new record | ai.aicommands.new |
| PUT | /aicommands |
Update record | ai.aicommands.edit |
| DELETE | /aicommands/:id |
Delete record | ai.aicommands.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.ai.aICommands.find().limit(10).exec();
// Single record
const one = await ay.ai.aICommands.findById('OBJECT_ID').exec();
// Create
const created = await ay.ai.aICommands.create({ name: 'Foo' });