← KI / AI API
AIWorkflows
Singular: AIWorkflow — 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": {
"_id": "6a618a58276160baeebcc5f4",
"name": "Copilot Health Check",
"description": "Zero-cost two-step smoke workflow: proves the tenant's workflow runtime end-to-end (conditional steps, no LLM spend). Clone-Basis für eigene Workflows.",
"status": "active",
"steps": [
{
"notificationConfig": {
"recipients": []
},
"condition": {
"field": "status",
"operator": "exists"
},
"stepId": "check-runtime",
"name": "Runtime check",
"type": "conditional",
"parallelSteps": [],
"retryCount": 0,
"onFailure": "stop",
"nextStep": "confirm",
"sortOrder": 0,
"_id": "6a5cccd74e8ab60d02036025",
"isDraft": true,
"shares": []
},
{
"notificationConfig": {
"recipients": []
},
"condition": {
"field": "status",
"operator": "exists"
},
"stepId": "confirm",
"name": "Confirm completion",
"type": "conditional",
"parallelSteps": [],
"retryCount": 0,
"onFailure": "stop",
"sortOrder": 1,
"_id": "6a5cccd74e8ab60d02036026",
"isDraft": true,
"shares": []
}
],
"feedbackLoopEnabled": false,
"triggerType": "manual",
"global": false,
"isTemplate": false,
"isDraft": true,
"createdAt": "2026-07-23T03:28:24.573Z",
"updatedAt": "2026-07-23T03:28:24.573Z",
"shares": []
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://ai.ayoune.app/aiworkflows/6a618a58276160baeebcc5f4",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "AICronJobs",
"title": "MODEL_AICRONJOB",
"href": "https://api.ayoune.app/ai/aicronjobs",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.aicronjobs"
}
],
"debugId": "6aa0cf131d5f163b722c8b2f",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_AIWORKFLOW",
"href": "https://api.ayoune.app/ai/aiworkflows/6a618a58276160baeebcc5f4/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_AIWORKFLOW",
"href": "https://api.ayoune.app/ai/aiworkflows/6a618a58276160baeebcc5f4",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.172.0",
"core": "2026.334.1"
},
"rateLimit": {
"limit": "10000",
"remaining": "9689",
"reset": "1788927245",
"resetDate": "Wed Sep 09 2026"
},
"responseTime": 56.704316,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /aiworkflows |
Liste mit Filtern/Paginierung | ai.aiworkflows.view |
| GET | /aiworkflows/:id |
Einzelner Datensatz | ai.aiworkflows.view |
| POST | /aiworkflows |
Neuen Datensatz erstellen | ai.aiworkflows.new |
| PUT | /aiworkflows |
Datensatz aktualisieren | ai.aiworkflows.edit |
| DELETE | /aiworkflows/:id |
Datensatz löschen | ai.aiworkflows.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.ai.aIWorkflows.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.ai.aIWorkflows.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.ai.aIWorkflows.create({ name: 'Foo' });