← AI API
AIEnterpriseControls
Singular: AIEnterpriseControl — Base URL: https://ai.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)
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.
{
"payload": {
"policy": {
"rules": [
{
"ruleId": "at-1",
"description": "All AI queries must be logged to AILogs",
"enforcement": "log",
"_id": "6a700afecccb66fc91bc61bf",
"isDraft": true,
"shares": []
},
{
"ruleId": "at-2",
"description": "Track cost per query",
"enforcement": "log",
"_id": "6a700afecccb66fc91bc61c0",
"isDraft": true,
"shares": []
}
]
},
"complianceEvidence": {
"evidenceLinks": [],
"certifications": []
},
"breakGlassConfig": {
"enabled": false,
"_approvers": [],
"expiryMinutes": 60,
"notifyOnActivation": true,
"requireReason": true,
"maxDuration": 240
},
"_id": "6a700afecccb66fc91bc61be",
"category": "audit",
"name": "Audit Trail",
"description": "Ensure all AI operations are logged",
"status": "active",
"reviewCycle": "monthly",
"global": false,
"isTemplate": false,
"_clonedFrom": "69d48fc5b0a12a944dbd99d6",
"isDraft": true,
"createdAt": "2026-08-03T03:29:02.049Z",
"updatedAt": "2026-08-03T03:29:02.049Z",
"shares": []
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://ai.ayoune.app/aienterprisecontrols/6a700afecccb66fc91bc61be",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "AIEnterpriseControls",
"title": "MODEL_AIENTERPRISECONTROL",
"href": "https://api.ayoune.app/ai/aienterprisecontrols/69d48fc5b0a12a944dbd99d6",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.aienterprisecontrols"
}
],
"relations": [
{
"rel": "AIEnterpriseControls",
"title": "MODEL_AIENTERPRISECONTROL",
"href": "https://api.ayoune.app/ai/aienterprisecontrols",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.aienterprisecontrols"
}
],
"debugId": "6aa0cf0a1d5f163b722c85f5",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_AIENTERPRISECONTROL",
"href": "https://api.ayoune.app/ai/aienterprisecontrols/6a700afecccb66fc91bc61be/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_AIENTERPRISECONTROL",
"href": "https://api.ayoune.app/ai/aienterprisecontrols/6a700afecccb66fc91bc61be",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.172.0",
"core": "2026.334.1"
},
"rateLimit": {
"limit": "10000",
"remaining": "9814",
"reset": "1788927245",
"resetDate": "Wed Sep 09 2026"
},
"responseTime": 18.647489,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /aienterprisecontrols |
List with filters/pagination | ai.aienterprisecontrols.view |
| GET | /aienterprisecontrols/:id |
Single record | ai.aienterprisecontrols.view |
| POST | /aienterprisecontrols |
Create new record | ai.aienterprisecontrols.new |
| PUT | /aienterprisecontrols |
Update record | ai.aienterprisecontrols.edit |
| DELETE | /aienterprisecontrols/:id |
Delete record | ai.aienterprisecontrols.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.ai.aIEnterpriseControls.find().limit(10).exec();
// Single record
const one = await ay.ai.aIEnterpriseControls.findById('OBJECT_ID').exec();
// Create
const created = await ay.ai.aIEnterpriseControls.create({ name: 'Foo' });