aYOUne
← Marketing API

Publications

Singular: Publication — Base-URL: https://marketing-api.ayoune.app — Zugriff: CRUD

play_circle Jetzt ausprobieren beta

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

Endpunkte

MethodePathBeschreibungRight
GET /publications Liste mit Filtern/Paginierung marketing.publications.view
GET /publications/:id Einzelner Datensatz marketing.publications.view
POST /publications Neuen Datensatz erstellen marketing.publications.new
PUT /publications Datensatz aktualisieren marketing.publications.edit
DELETE /publications/:id Datensatz löschen marketing.publications.delete

SDK

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

// Alle abrufen
const list = await ay.marketing.publications.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.marketing.publications.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.marketing.publications.create({ name: 'Foo' });

Weiterführend