aYOUne
← AI API

AIPrompts

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

SDK

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

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

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

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

See also