Zum Inhalt springen
aYOUne
← KI / AI API

AIWorkflowRuns

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

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": "6ad28c2972153bc6fe319a61",
    "_workflow": "6ad28be05a816000f313579e",
    "triggeredBy": "manual",
    "status": "cancelled",
    "currentStep": "g1",
    "stepResults": [
      {
        "stepId": "g1",
        "status": "running",
        "_id": "6ad28c2972153bc6fe319a62",
        "shares": [],
        "startedAt": "2026-10-16T20:42:18.052Z"
      }
    ],
    "activityLog": [
      {
        "timestamp": "2026-10-16T20:42:17.919Z",
        "action": "workflow-started",
        "_user": "5a76d07e2d8b3270ff6df587",
        "details": "Started workflow: [abnahme] Workflow-Aktionen Review-Gate",
        "_id": "6ad28c2972153bc6fe319a63",
        "shares": []
      },
      {
        "timestamp": "2026-10-16T20:42:18.059Z",
        "action": "waiting-for-review: qa",
        "details": "Step [abnahme] Freigabe requires qa review",
        "_id": "6ad28c2ab8a8c8ebe67e60de",
        "shares": []
      },
      {
        "timestamp": "2026-10-16T20:43:17.037Z",
        "action": "workflow-cancelled",
        "_user": "5a76d07e2d8b3270ff6df587",
        "_id": "6ad28c6572153bc6fe319b20",
        "shares": []
      }
    ],
    "totalCostUSD": 0,
    "startedAt": "2026-10-16T20:42:17.919Z",
    "_startedBy": "5a76d07e2d8b3270ff6df587",
    "createdBy": "5a76d07e2d8b3270ff6df587",
    "shares": [],
    "createdAt": "2026-10-16T20:42:17.958Z",
    "updatedAt": "2026-10-16T20:43:17.138Z",
    "completedAt": "2026-10-16T20:43:17.037Z",
    "modifiedBy": "5a76d07e2d8b3270ff6df587"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ai.ayoune.app/aiworkflowruns/6ad28c2972153bc6fe319a61",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "AIWorkflows",
        "title": "MODEL_AIWORKFLOW",
        "href": "https://api.ayoune.app/ai/aiworkflows/6ad28be05a816000f313579e",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aiworkflows"
      }
    ],
    "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": "AIConversations",
        "title": "MODEL_AICONVERSATION",
        "href": "https://api.ayoune.app/ai/aiconversations",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aiconversations"
      },
      {
        "rel": "Tasks",
        "title": "MODEL_TASK",
        "href": "https://api.ayoune.app/pm/tasks",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "pm.tasks"
      },
      {
        "rel": "Repositories",
        "title": "MODEL_REPOSITORY",
        "href": "https://api.ayoune.app/coding/repositories",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "coding.repositories"
      },
      {
        "rel": "CodeAgentSessions",
        "title": "MODEL_CODEAGENTSESSION",
        "href": "https://api.ayoune.app/coding/codeagentsessions",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "coding.sessions"
      }
    ],
    "debugId": "6ad82e4e47835e73f30a9d09",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AIWORKFLOWRUN",
        "href": "https://api.ayoune.app/ai/aiworkflowruns/6ad28c2972153bc6fe319a61/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AIWORKFLOWRUN",
        "href": "https://api.ayoune.app/ai/aiworkflowruns/6ad28c2972153bc6fe319a61",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.178.0",
      "core": "2026.387.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9685",
      "reset": "1792556098",
      "resetDate": "Wed Oct 21 2026"
    },
    "responseTime": 62.058819,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /aiworkflowruns Liste mit Filtern/Paginierung ai.aiworkflowruns.view
GET /aiworkflowruns/:id Einzelner Datensatz via ID ai.aiworkflowruns.view

SDK

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

// Alle abrufen
const list = await ay.ai.aIWorkflowRuns.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.ai.aIWorkflowRuns.findById('OBJECT_ID').exec();

Weiterführend