aYOUne
← coding API

CodeAccounts

Singular: CodeAccount — Base-URL: https://coding-api.ayoune.app — Zugriff: CRUD

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": "6a618bb74b2a1b7d2c54ab61",
    "_hookUser": "6045f4d25704710012485569",
    "accountType": "individual",
    "active": true,
    "createdAt": "2026-07-23T03:34:15.164Z",
    "label": "test@tolinax.com — code-hook",
    "provider": "anthropic",
    "updatedAt": "2026-07-23T03:34:15.164Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://coding-api.ayoune.app/codeaccounts/6a618bb74b2a1b7d2c54ab61",
        "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"
      }
    ],
    "debugId": "6a62dc95fb4fbe14b6b26c4b",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_CODEACCOUNT",
        "href": "https://api.ayoune.app/coding/codeaccounts/6a618bb74b2a1b7d2c54ab61/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_CODEACCOUNT",
        "href": "https://api.ayoune.app/coding/codeaccounts/6a618bb74b2a1b7d2c54ab61/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.37.0",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2457",
      "reset": "1784867488",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 38.32998,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend