aYOUne
← KI / AI API

AICommands

Singular: AICommand — Base-URL: https://ai.ayoune.app — Zugriff: CRUD

play_circle Jetzt ausprobieren beta

Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.

Endpunkte

MethodePathBeschreibungRight
GET /aicommands Liste mit Filtern/Paginierung ai.aicommands.view
GET /aicommands/:id Einzelner Datensatz ai.aicommands.view
POST /aicommands Neuen Datensatz erstellen ai.aicommands.new
PUT /aicommands Datensatz aktualisieren ai.aicommands.edit
DELETE /aicommands/:id Datensatz löschen ai.aicommands.delete

SDK

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

// Alle abrufen
const list = await ay.ai.aICommands.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.ai.aICommands.findById('OBJECT_ID').exec();

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

Weiterführend