← KI / AI API
AIPrompts
Singular: AIPrompt — 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": {
"maxOutputTokens": 1000,
"topP": 1,
"frequencyPenalty": 0,
"presencePenalty": 0,
"temperature": 0.6,
"_id": "65e0afd5121b7d48fe155a3e",
"type": "global",
"status": "active",
"category": "global",
"tags": [],
"editor": "6045f4d25704710012485569",
"lang": "de",
"state": "",
"customerFrom": "data._customerID",
"useContext": false,
"contextTemplate": "",
"maxTokens": 8192,
"modelName": "gpt-3.5-turbo-16k-0613",
"isDraft": true,
"createdBy": "6045f4d25704710012485569",
"dataSources": [],
"messages": [],
"createdAt": "2024-02-29T16:24:53.173Z",
"updatedAt": "2024-02-29T16:24:53.173Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://ai.ayoune.app/aiprompts/65e0afd5121b7d48fe155a3e",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [],
"debugId": "6a8a6b12216dcd463ba81a9c",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_AIPROMPT",
"href": "https://api.ayoune.app/ai/aiprompts/65e0afd5121b7d48fe155a3e/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_AIPROMPT",
"href": "https://api.ayoune.app/ai/aiprompts/65e0afd5121b7d48fe155a3e/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.162.0",
"core": "2026.315.1"
},
"rateLimit": {
"limit": "10000",
"remaining": "9968",
"reset": "1787459872",
"resetDate": "Sun Aug 23 2026"
},
"responseTime": 19.990989,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /aiprompts |
Liste mit Filtern/Paginierung | ai.aiprompts.view |
| GET | /aiprompts/:id |
Einzelner Datensatz | ai.aiprompts.view |
| POST | /aiprompts |
Neuen Datensatz erstellen | ai.aiprompts.new |
| PUT | /aiprompts |
Datensatz aktualisieren | ai.aiprompts.edit |
| DELETE | /aiprompts/:id |
Datensatz löschen | ai.aiprompts.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.ai.aIPrompts.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.ai.aIPrompts.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.ai.aIPrompts.create({ name: 'Foo' });