← CMS API
Contents
Singular: Content — Base-URL: https://cms-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": "65e0afc7121b7d48fe1555d4",
"questions": [],
"synonyms": [],
"ideas": [],
"spins": [],
"tags": [],
"createdBy": "6045f4d25704710012485569",
"products": [],
"contents": [],
"wikiPages": [],
"createdAt": "2024-02-29T16:24:39.655Z",
"updatedAt": "2024-02-29T16:24:39.655Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://cms-api.ayoune.app/contents/65e0afc7121b7d48fe1555d4",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Websites",
"title": "MODEL_WEBSITE",
"href": "https://api.ayoune.app/cms/websites",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.websites"
},
{
"rel": "ContentProjects",
"title": "MODEL_CONTENTPROJECT",
"href": "https://api.ayoune.app/cms/contentprojects",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.contentprojects"
},
{
"rel": "ContentCategories",
"title": "MODEL_CONTENTCATEGORY",
"href": "https://api.ayoune.app/config/contentcategories",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.contentcategories"
},
{
"rel": "Projects",
"title": "MODEL_PROJECT",
"href": "https://api.ayoune.app/pm/projects",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pm.projects"
},
{
"rel": "Publications",
"title": "MODEL_PUBLICATION",
"href": "https://api.ayoune.app/marketing/publications",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "marketing.publications"
},
{
"rel": "Keywords",
"title": "MODEL_KEYWORD",
"href": "https://api.ayoune.app/monitoring/keywords",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "monitoring.keywords"
},
{
"rel": "Images",
"title": "MODEL_IMAGE",
"href": "https://api.ayoune.app/cms/images",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.images"
},
{
"rel": "Authors",
"title": "MODEL_AUTHOR",
"href": "https://api.ayoune.app/cms/authors",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.authors"
},
{
"rel": "Videos",
"title": "MODEL_VIDEO",
"href": "https://api.ayoune.app/monitoring/videos",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "monitoring.videos"
}
],
"debugId": "6a62dc7201c81db07e1daf0c",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_CONTENT",
"href": "https://api.ayoune.app/cms/contents/65e0afc7121b7d48fe1555d4/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_CONTENT",
"href": "https://api.ayoune.app/cms/contents/65e0afc7121b7d48fe1555d4/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.25.5",
"core": "2026.258.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "2441",
"reset": "1784867449",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 19.411648,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /contents |
Liste mit Filtern/Paginierung | cms.contents.view |
| GET | /contents/:id |
Einzelner Datensatz | cms.contents.view |
| POST | /contents |
Neuen Datensatz erstellen | cms.contents.new |
| PUT | /contents |
Datensatz aktualisieren | cms.contents.edit |
| DELETE | /contents/:id |
Datensatz löschen | cms.contents.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.cms.contents.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.cms.contents.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.cms.contents.create({ name: 'Foo' });