← Marketing API
Publications
Singular: Publication — Base URL: https://marketing-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": {
"rrule": {
"freq": 2,
"tzid": "Europe/Amsterdam",
"count": 2,
"interval": 2,
"wkst": 0,
"byweekday": [
0,
1,
2,
3,
4,
5
]
},
"_id": "65e0b140121b7d48fe15932b",
"active": false,
"template": false,
"type": "text",
"postPublished": false,
"autoPublish": false,
"autoRePost": false,
"rePostCount": 0,
"rePostCounter": 0,
"publishDates": [],
"createdBy": "6045f4d25704710012485569",
"channels": [],
"createdAt": "2024-02-29T16:30:56.253Z",
"updatedAt": "2024-02-29T16:30:56.253Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://marketing-api.ayoune.app/publications/65e0b140121b7d48fe15932b",
"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": "Authors",
"title": "MODEL_AUTHOR",
"href": "https://api.ayoune.app/cms/authors",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.authors"
},
{
"rel": "Authors",
"title": "MODEL_AUTHOR",
"href": "https://api.ayoune.app/cms/authors",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.authors"
}
],
"debugId": "6a6194b3f78ad61f1990f744",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_PUBLICATION",
"href": "https://api.ayoune.app/marketing/publications/65e0b140121b7d48fe15932b/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_PUBLICATION",
"href": "https://api.ayoune.app/marketing/publications/65e0b140121b7d48fe15932b/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.24.4",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "1857",
"reset": "1784783437",
"resetDate": "Thu Jul 23 2026"
},
"responseTime": 69.273599,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /publications |
List with filters/pagination | marketing.publications.view |
| GET | /publications/:id |
Single record | marketing.publications.view |
| POST | /publications |
Create new record | marketing.publications.new |
| PUT | /publications |
Update record | marketing.publications.edit |
| DELETE | /publications/:id |
Delete record | marketing.publications.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.marketing.publications.find().limit(10).exec();
// Single record
const one = await ay.marketing.publications.findById('OBJECT_ID').exec();
// Create
const created = await ay.marketing.publications.create({ name: 'Foo' });