Zum Inhalt springen
aYOUne
← coding API

CodeAgents

Singular: CodeAgent — 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": "6ac368c22f2ea81fb010b535",
    "name": "[abnahme] Fehler-Kommentar-Agent",
    "provider": "claude-code",
    "command": "claude",
    "isTemplate": false,
    "active": true,
    "createdBy": "5a76d07e2d8b3270ff6df587",
    "shares": [],
    "createdAt": "2026-10-05T09:07:14.723Z",
    "updatedAt": "2026-10-05T09:07:14.723Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://coding-api.ayoune.app/codeagents/6ac368c22f2ea81fb010b535",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Credentials",
        "title": "MODEL_CREDENTIAL",
        "href": "https://api.ayoune.app/config/credentials",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.credentials"
      },
      {
        "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": "ComputingEntities",
        "title": "MODEL_COMPUTINGENTITY",
        "href": "https://api.ayoune.app/config/computingentities",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.computingentities"
      }
    ],
    "debugId": "6ac9af4ea9ff8bfc78d61522",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_CODEAGENT",
        "href": "https://api.ayoune.app/coding/codeagents/6ac368c22f2ea81fb010b535/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_CODEAGENT",
        "href": "https://api.ayoune.app/coding/codeagents/6ac368c22f2ea81fb010b535",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.74.0",
      "core": "2026.368.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9985",
      "reset": "1791606110",
      "resetDate": "Sat Oct 10 2026"
    },
    "responseTime": 17.142188,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend