← CMS API
Articles
Singular: Article — Base URL: https://cms-api.ayoune.app — Access: CRUD
Try it now
beta
Response (live)
Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.
Example response (recorded) sample
A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.
{
"payload": {
"_id": "65e0afc4121b7d48fe1554b8",
"categories": [],
"enclosures": [],
"_interestChannels": [],
"_contentCategories": [],
"rePublish": false,
"brands": [],
"createdBy": "6045f4d25704710012485569",
"createdAt": "2024-02-29T16:24:36.357Z",
"updatedAt": "2024-02-29T16:24:36.357Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://cms-api.ayoune.app/articles/65e0afc4121b7d48fe1554b8",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "NewsSources",
"title": "MODEL_NEWSSOURCE",
"href": "https://api.ayoune.app/cms/newssources",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.newssources"
},
{
"rel": "Articles",
"title": "MODEL_ARTICLE",
"href": "https://api.ayoune.app/cms/articles",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.articles"
}
],
"debugId": "6a62dc6a01c81db07e1daba9",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_ARTICLE",
"href": "https://api.ayoune.app/cms/articles/65e0afc4121b7d48fe1554b8/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_ARTICLE",
"href": "https://api.ayoune.app/cms/articles/65e0afc4121b7d48fe1554b8/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.25.5",
"core": "2026.258.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "2491",
"reset": "1784867449",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 23.054688,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /articles |
List with filters/pagination | cms.articles.view |
| GET | /articles/:id |
Single record | cms.articles.view |
| POST | /articles |
Create new record | cms.articles.new |
| PUT | /articles |
Update record | cms.articles.edit |
| DELETE | /articles/:id |
Delete record | cms.articles.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.cms.articles.find().limit(10).exec();
// Single record
const one = await ay.cms.articles.findById('OBJECT_ID').exec();
// Create
const created = await ay.cms.articles.create({ name: 'Foo' });