← AI API
Bots
Singular: Bot — Base URL: https://ai.ayoune.app — Access: CRUD
Try it now
beta
Response (live)
Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.
Example response (recorded) sample
A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.
"Just be your awesome self!"
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /bots |
List with filters/pagination | ai.bots.view |
| GET | /bots/:id |
Single record | ai.bots.view |
| POST | /bots |
Create new record | ai.bots.new |
| PUT | /bots |
Update record | ai.bots.edit |
| DELETE | /bots/:id |
Delete record | ai.bots.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.ai.bots.find().limit(10).exec();
// Single record
const one = await ay.ai.bots.findById('OBJECT_ID').exec();
// Create
const created = await ay.ai.bots.create({ name: 'Foo' });