← AI API
AIWorkflows
Singular: AIWorkflow — 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.
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /aiworkflows |
List with filters/pagination | ai.aiworkflows.view |
| GET | /aiworkflows/:id |
Single record | ai.aiworkflows.view |
| POST | /aiworkflows |
Create new record | ai.aiworkflows.new |
| PUT | /aiworkflows |
Update record | ai.aiworkflows.edit |
| DELETE | /aiworkflows/:id |
Delete record | ai.aiworkflows.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.ai.aIWorkflows.find().limit(10).exec();
// Single record
const one = await ay.ai.aIWorkflows.findById('OBJECT_ID').exec();
// Create
const created = await ay.ai.aIWorkflows.create({ name: 'Foo' });