aYOUne
← AI API

AICommands

Singular: AICommand — 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 /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' });

See also