← KI / AI API
AICommands
Singular: AICommand — Base-URL: https://ai.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)
Jetzt ausprobieren
beta
Response (live)
Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.
Beispiel-Response (aufgezeichnet) Beispiel
Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.
{
"payload": {
"dataQuery": {
"pipeline": []
},
"runtime": {
"allowedTargets": []
},
"_id": "6a353bd55a44977e01d467d5",
"name": "Analyze Sales",
"slug": "analyze-sales",
"description": "Analyze sales pipeline and opportunities",
"status": "active",
"category": "analytics",
"commandType": "agent-invoke",
"agentInstructions": "Analyze the current sales pipeline. Summarize top opportunities, win rates, and bottlenecks.",
"requiredRights": [],
"_allowedRoles": [],
"icon": "trending_up",
"sortOrder": 0,
"global": false,
"isTemplate": false,
"isDraft": true,
"variables": [],
"createdAt": "2026-06-19T12:53:41.742Z",
"updatedAt": "2026-06-19T12:53:41.742Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://ai.ayoune.app/aicommands/6a353bd55a44977e01d467d5",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "AIWorkflows",
"title": "MODEL_AIWORKFLOW",
"href": "https://api.ayoune.app/ai/aiworkflows",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.aiworkflows"
},
{
"rel": "AIAgents",
"title": "MODEL_AIAGENT",
"href": "https://api.ayoune.app/ai/aiagents",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.aiagents"
},
{
"rel": "AICommands",
"title": "MODEL_AICOMMAND",
"href": "https://api.ayoune.app/ai/aicommands",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.aicommands"
}
],
"debugId": "6a8a6b19860e841d7c8af614",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_AICOMMAND",
"href": "https://api.ayoune.app/ai/aicommands/6a353bd55a44977e01d467d5/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_AICOMMAND",
"href": "https://api.ayoune.app/ai/aicommands/6a353bd55a44977e01d467d5/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.162.0",
"core": "2026.315.1"
},
"rateLimit": {
"limit": "10000",
"remaining": "9838",
"reset": "1787459872",
"resetDate": "Sun Aug 23 2026"
},
"responseTime": 174.846795,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /aicommands |
Liste mit Filtern/Paginierung | ai.aicommands.view |
| GET | /aicommands/:id |
Einzelner Datensatz | ai.aicommands.view |
| POST | /aicommands |
Neuen Datensatz erstellen | ai.aicommands.new |
| PUT | /aicommands |
Datensatz aktualisieren | ai.aicommands.edit |
| DELETE | /aicommands/:id |
Datensatz löschen | ai.aicommands.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.ai.aICommands.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.ai.aICommands.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.ai.aICommands.create({ name: 'Foo' });