aYOUne
← CMS API

Contents

Singular: Content — Base URL: https://cms-api.ayoune.app — Access: CRUD

play_circle Try it now beta

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": "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
  }
}

Endpoints

MethodPathDescriptionRight
GET /contents List with filters/pagination cms.contents.view
GET /contents/:id Single record cms.contents.view
POST /contents Create new record cms.contents.new
PUT /contents Update record cms.contents.edit
DELETE /contents/:id Delete record cms.contents.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// List all
const list = await ay.cms.contents.find().limit(10).exec();

// Single record
const one = await ay.cms.contents.findById('OBJECT_ID').exec();

// Create
const created = await ay.cms.contents.create({ name: 'Foo' });

See also