aYOUne
← CMS API

ImageGenerators

Singular: ImageGenerator — Base-URL: https://cms-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": "65e0afc9121b7d48fe15568f",
    "createdBy": "6045f4d25704710012485569",
    "width": 1080,
    "height": 1920,
    "progress": 0,
    "useQuery": false,
    "fileFromData": false,
    "lastExecutionTime": 0,
    "totalExecutionTime": 0,
    "numExecutions": 0,
    "overlays": [],
    "createdAt": "2024-02-29T16:24:41.805Z",
    "updatedAt": "2024-02-29T16:24:41.805Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://cms-api.ayoune.app/imagegenerators/65e0afc9121b7d48fe15568f",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Queries",
        "title": "MODEL_QUERY",
        "href": "https://api.ayoune.app/config/queries",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.queries"
      },
      {
        "rel": "Images",
        "title": "MODEL_IMAGE",
        "href": "https://api.ayoune.app/cms/images",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "cms.images"
      }
    ],
    "debugId": "6a62dc7601c81db07e1db14d",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_IMAGEGENERATOR",
        "href": "https://api.ayoune.app/cms/imagegenerators/65e0afc9121b7d48fe15568f/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_IMAGEGENERATOR",
        "href": "https://api.ayoune.app/cms/imagegenerators/65e0afc9121b7d48fe15568f/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.25.5",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2411",
      "reset": "1784867449",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 24.003569,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend