← Hub API
Quotes
Singular: Quote — Base-URL: https://hub-api.ayoune.app — Zugriff: CRUD
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": "65e0729d04cae14f9ada1ee3",
"popularity": 0,
"tags": [],
"lang": "en",
"category": "-",
"createdBy": "6045f4d25704710012485569",
"createdAt": "2024-02-29T12:03:41.779Z",
"updatedAt": "2024-02-29T12:03:41.779Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://hub-api.ayoune.app/quotes/65e0729d04cae14f9ada1ee3",
"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": "Images",
"title": "MODEL_IMAGE",
"href": "https://api.ayoune.app/cms/images",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.images"
}
],
"debugId": "6a62e05b2b20d6ae273bf736",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_QUOTE",
"href": "https://api.ayoune.app/hub/quotes/65e0729d04cae14f9ada1ee3/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_QUOTE",
"href": "https://api.ayoune.app/hub/quotes/65e0729d04cae14f9ada1ee3/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.11.3",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2376",
"reset": "1784868426",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 86.031336,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /quotes |
Liste mit Filtern/Paginierung | hub.quotes.view |
| GET | /quotes/:id |
Einzelner Datensatz | hub.quotes.view |
| POST | /quotes |
Neuen Datensatz erstellen | hub.quotes.new |
| PUT | /quotes |
Datensatz aktualisieren | hub.quotes.edit |
| DELETE | /quotes/:id |
Datensatz löschen | hub.quotes.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.hub.quotes.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.hub.quotes.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.hub.quotes.create({ name: 'Foo' });