aYOUne
← AI API

AIProviders

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

SDK

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

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

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

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

See also