aYOUne
← KI / AI API

AIWorkflows

Singular: AIWorkflow — Base-URL: https://ai.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

play_circle Jetzt ausprobieren beta

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": "6a8a6b25860e841d7c8afbf1",
    "name": "ABSENT_SILVER_RATTS TYEREL",
    "status": "draft",
    "feedbackLoopEnabled": false,
    "triggerType": "manual",
    "global": false,
    "isTemplate": false,
    "isDraft": true,
    "createdBy": "6045f4d25704710012485569",
    "steps": [],
    "createdAt": "2026-08-23T03:38:13.363Z",
    "updatedAt": "2026-08-23T03:38:13.363Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ai.ayoune.app/aiworkflows/6a8a6b25860e841d7c8afbf1",
        "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": "6a8a6b25216dcd463ba82779",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AIWORKFLOW",
        "href": "https://api.ayoune.app/ai/aiworkflows/6a8a6b25860e841d7c8afbf1/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AIWORKFLOW",
        "href": "https://api.ayoune.app/ai/aiworkflows/6a8a6b25860e841d7c8afbf1/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.162.0",
      "core": "2026.315.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9665",
      "reset": "1787459872",
      "resetDate": "Sun Aug 23 2026"
    },
    "responseTime": 20.112679,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
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' });

Weiterführend