aYOUne
← KI / AI API

Avatars

Singular: Avatar — Base-URL: https://ai.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": "6a618a6126743b2cbc7b7bb2",
    "name": "FRIENDLY_LAVENDER_RUGOR NASS",
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2026-07-23T03:28:33.152Z",
    "updatedAt": "2026-07-23T03:28:33.152Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ai.ayoune.app/avatars/6a618a6126743b2cbc7b7bb2",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Documents",
        "title": "MODEL_DOCUMENT",
        "href": "https://api.ayoune.app/crm/documents",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "crm.documents"
      },
      {
        "rel": "Documents",
        "title": "MODEL_DOCUMENT",
        "href": "https://api.ayoune.app/crm/documents",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "crm.documents"
      }
    ],
    "debugId": "6a62dc162c0a4c81417338fd",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AVATAR",
        "href": "https://api.ayoune.app/ai/avatars/6a618a6126743b2cbc7b7bb2/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AVATAR",
        "href": "https://api.ayoune.app/ai/avatars/6a618a6126743b2cbc7b7bb2/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.131.3",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9856",
      "reset": "1784867355",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 50.180438,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend