aYOUne
← KI / AI API

AIMessages

Singular: AIMessage — Base-URL: https://ai.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

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": {
    "meta": {
      "usage": {
        "completion_tokens": 0,
        "prompt_tokens": 0,
        "total_tokens": 0
      }
    },
    "_id": "6a7d355869732a27510098c6",
    "_conversation": null,
    "_user": "6045f4d25704710012485569",
    "role": "user",
    "tags": [],
    "attachments": [],
    "contentType": "text",
    "isDraft": true,
    "createdAt": "2026-08-13T03:09:12.082Z",
    "updatedAt": "2026-08-13T03:09:12.082Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ai.ayoune.app/aimessages/6a7d355869732a27510098c6",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Consumers",
        "title": "MODEL_CONSUMER",
        "href": "https://api.ayoune.app/crm/consumers",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "crm.consumers"
      },
      {
        "rel": "AIConversations",
        "title": "MODEL_AICONVERSATION",
        "href": "https://api.ayoune.app/ai/aiconversations",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aiconversations"
      },
      {
        "rel": "Views",
        "title": "MODEL_VIEW",
        "href": "https://api.ayoune.app/monitoring/views",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "monitoring.views"
      }
    ],
    "debugId": "6a8a6b1f216dcd463ba8228e",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AIMESSAGE",
        "href": "https://api.ayoune.app/ai/aimessages/6a7d355869732a27510098c6/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AIMESSAGE",
        "href": "https://api.ayoune.app/ai/aimessages/6a7d355869732a27510098c6/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.162.0",
      "core": "2026.315.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9753",
      "reset": "1787459872",
      "resetDate": "Sun Aug 23 2026"
    },
    "responseTime": 15.949519,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend