Zum Inhalt springen
aYOUne
← coding API

CodeAgentSessions

Singular: CodeAgentSession — Base-URL: https://coding-api.ayoune.app — Zugriff: CRUD — 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": "6ac06ada691c65aecd503079",
    "_codeAgent": "6a030b77641d93836fd3e06d",
    "_user": "5a76d07e2d8b3270ff6df587",
    "status": "never-started",
    "prompt": "[abnahme] never-started cancel probe � darf geloescht werden",
    "createdBy": "5a76d07e2d8b3270ff6df587",
    "shares": [],
    "createdAt": "2026-10-03T02:39:22.464Z",
    "updatedAt": "2026-10-03T02:40:49.227Z",
    "endedAt": "2026-10-03T02:39:56.350Z",
    "metadata": {
      "cancelReason": "abnahme never-started",
      "cancelRequestedAt": "2026-10-03T02:39:56.350Z",
      "notificationDedupe": {
        "cancelled_fe83dbc14846aa10338355c3": {
          "state": "sent",
          "sentAt": "2026-10-03T02:40:49.227Z"
        }
      }
    },
    "terminationReason": "cancelled-before-start"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://coding-api.ayoune.app/codeagentsessions/6ac06ada691c65aecd503079",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "CodeAgents",
        "title": "MODEL_CODEAGENT",
        "href": "https://api.ayoune.app/coding/codeagents/6a030b77641d93836fd3e06d",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "coding.agents"
      }
    ],
    "relations": [
      {
        "rel": "CodeAgents",
        "title": "MODEL_CODEAGENT",
        "href": "https://api.ayoune.app/coding/codeagents",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "coding.agents"
      },
      {
        "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": "ComputingEntities",
        "title": "MODEL_COMPUTINGENTITY",
        "href": "https://api.ayoune.app/config/computingentities",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.computingentities"
      },
      {
        "rel": "CodingJobs",
        "title": "MODEL_CODINGJOB",
        "href": "https://api.ayoune.app/coding/codingjobs",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "coding.jobs"
      },
      {
        "rel": "CodeAccounts",
        "title": "MODEL_CODEACCOUNT",
        "href": "https://api.ayoune.app/coding/codeaccounts",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "coding.accounts"
      },
      {
        "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"
      },
      {
        "rel": "CodeAgentSessions",
        "title": "MODEL_CODEAGENTSESSION",
        "href": "https://api.ayoune.app/coding/codeagentsessions",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "coding.sessions"
      },
      {
        "rel": "CodeAgentSessions",
        "title": "MODEL_CODEAGENTSESSION",
        "href": "https://api.ayoune.app/coding/codeagentsessions",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "coding.sessions"
      },
      {
        "rel": "AIWorkflowRuns",
        "title": "MODEL_AIWORKFLOWRUN",
        "href": "https://api.ayoune.app/ai/aiworkflowruns",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aiworkflowruns"
      },
      {
        "rel": "Stories",
        "title": "MODEL_STORY",
        "href": "https://api.ayoune.app/pm/stories",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "pm.stories"
      }
    ],
    "debugId": "6ac9af4fa9ff8bfc78d61583",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_CODEAGENTSESSION",
        "href": "https://api.ayoune.app/coding/codeagentsessions/6ac06ada691c65aecd503079/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_CODEAGENTSESSION",
        "href": "https://api.ayoune.app/coding/codeagentsessions/6ac06ada691c65aecd503079",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.74.0",
      "core": "2026.368.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9974",
      "reset": "1791606110",
      "resetDate": "Sat Oct 10 2026"
    },
    "responseTime": 31.390558,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /codeagentsessions Liste mit Filtern/Paginierung coding.sessions.view
GET /codeagentsessions/:id Einzelner Datensatz coding.sessions.view
POST /codeagentsessions Neuen Datensatz erstellen coding.sessions.new
PUT /codeagentsessions Datensatz aktualisieren coding.sessions.edit
DELETE /codeagentsessions/:id Datensatz löschen coding.sessions.delete

SDK

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

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

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

// Erstellen
const created = await ay.coding.codeAgentSessions.create({ name: 'Foo' });

Weiterführend