aYOUne
← AI API

AIApprovalRequests

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

SDK

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

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

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

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

See also