← CMS API
Posts
Singular: Post — 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": {
"stats": {
"views": 0
},
"_id": "65e0afcc121b7d48fe1557a5",
"_hashtags": [],
"hashtags": [],
"createdBy": "6045f4d25704710012485569",
"createdAt": "2024-02-29T16:24:44.979Z",
"updatedAt": "2024-02-29T16:24:44.979Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://cms-api.ayoune.app/posts/65e0afcc121b7d48fe1557a5",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"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": "Projects",
"title": "MODEL_PROJECT",
"href": "https://api.ayoune.app/pm/projects",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pm.projects"
},
{
"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": "Articles",
"title": "MODEL_ARTICLE",
"href": "https://api.ayoune.app/cms/articles",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.articles"
},
{
"rel": "Contents",
"title": "MODEL_CONTENT",
"href": "https://api.ayoune.app/cms/contents",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.contents"
},
{
"rel": "Channels",
"title": "MODEL_CHANNEL",
"href": "https://api.ayoune.app/marketing/channels",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "marketing.channels"
},
{
"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": "Videos",
"title": "MODEL_VIDEO",
"href": "https://api.ayoune.app/monitoring/videos",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "monitoring.videos"
}
],
"debugId": "6a62dc7c01c81db07e1db4b1",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_POST",
"href": "https://api.ayoune.app/cms/posts/65e0afcc121b7d48fe1557a5/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_POST",
"href": "https://api.ayoune.app/cms/posts/65e0afcc121b7d48fe1557a5/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.25.5",
"core": "2026.258.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "2362",
"reset": "1784867449",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 75.899754,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /posts |
Liste mit Filtern/Paginierung | cms.posts.view |
| GET | /posts/:id |
Einzelner Datensatz | cms.posts.view |
| POST | /posts |
Neuen Datensatz erstellen | cms.posts.new |
| PUT | /posts |
Datensatz aktualisieren | cms.posts.edit |
| DELETE | /posts/:id |
Datensatz löschen | cms.posts.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.cms.posts.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.cms.posts.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.cms.posts.create({ name: 'Foo' });