aYOUne
← AI API

AIAgents

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

SDK

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

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

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

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

See also