aYOUne
← KI / AI API

AIConversations

Singular: AIConversation — 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": {
    "_id": "6a715dbae5d8ae01e795fbf6",
    "_user": "6045f4d25704710012485569",
    "subject": "Voice conversation",
    "initialized": false,
    "ragEnabled": false,
    "mode": "voice",
    "sessionState": "active",
    "planMode": false,
    "isDraft": true,
    "reviewGates": [],
    "createdAt": "2026-08-04T03:34:18.053Z",
    "updatedAt": "2026-08-04T03:34:18.053Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ai.ayoune.app/aiconversations/6a715dbae5d8ae01e795fbf6",
        "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": "AIAgents",
        "title": "MODEL_AIAGENT",
        "href": "https://api.ayoune.app/ai/aiagents",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aiagents"
      },
      {
        "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": "AIWorkflows",
        "title": "MODEL_AIWORKFLOW",
        "href": "https://api.ayoune.app/ai/aiworkflows",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aiworkflows"
      },
      {
        "rel": "AIWorkflowRuns",
        "title": "MODEL_AIWORKFLOWRUN",
        "href": "https://api.ayoune.app/ai/aiworkflowruns",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ai.aiworkflowruns"
      }
    ],
    "debugId": "6a8a6b1a860e841d7c8af665",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AICONVERSATION",
        "href": "https://api.ayoune.app/ai/aiconversations/6a715dbae5d8ae01e795fbf6/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AICONVERSATION",
        "href": "https://api.ayoune.app/ai/aiconversations/6a715dbae5d8ae01e795fbf6/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.162.0",
      "core": "2026.315.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9827",
      "reset": "1787459872",
      "resetDate": "Sun Aug 23 2026"
    },
    "responseTime": 25.908349,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend