← KI / AI API
Avatars
Singular: Avatar — Base-URL: https://ai.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)
Jetzt ausprobieren
beta
Response (live)
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": "6b0650fb8bde05521909e7d2",
"name": "ALLIED_GOLD_R5-D4",
"createdBy": "6045f4d25704710012485569",
"shares": [],
"createdAt": "2026-11-25T03:07:39.565Z",
"updatedAt": "2026-11-25T03:07:39.565Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://ai.ayoune.app/avatars/6b0650fb8bde05521909e7d2",
"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"
},
{
"rel": "VoiceRecordingSessions",
"title": "MODEL_VOICERECORDINGSESSION",
"href": "https://api.ayoune.app/ai/voicerecordingsessions",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.voicerecordingsessions"
},
{
"rel": "VoiceConsents",
"title": "MODEL_VOICECONSENT",
"href": "https://api.ayoune.app/ai/voiceconsents",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.voiceconsents"
}
],
"debugId": "6b0650fb636e3caeb3f04639",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_AVATAR",
"href": "https://api.ayoune.app/ai/avatars/6b0650fb8bde05521909e7d2/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_AVATAR",
"href": "https://api.ayoune.app/ai/avatars/6b0650fb8bde05521909e7d2",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.178.0",
"core": "2026.398.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "9561",
"reset": "1795579601",
"resetDate": "Wed Nov 25 2026"
},
"responseTime": 71.995791,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| 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' });