aYOUne
← Marketing API

SeriesNewsletters

Singular: SeriesNewsletter — 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": {
    "_id": "65e0b146121b7d48fe1593c7",
    "name": "",
    "promotional": true,
    "needsApproval": true,
    "editor": "6045f4d25704710012485569",
    "attachments": [],
    "interval": 4,
    "intervalUnit": "weeks",
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2024-02-29T16:31:03.001Z",
    "updatedAt": "2024-02-29T16:31:03.001Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://marketing-api.ayoune.app/seriesnewsletters/65e0b146121b7d48fe1593c7",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "EMailTemplates",
        "title": "MODEL_EMAILTEMPLATE",
        "href": "https://api.ayoune.app/config/emailtemplates",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.emailtemplates"
      },
      {
        "rel": "Mails",
        "title": "MODEL_MAIL",
        "href": "https://api.ayoune.app/config/mails",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.mails"
      },
      {
        "rel": "ConsumerLists",
        "title": "MODEL_CONSUMERLIST",
        "href": "https://api.ayoune.app/crm/consumerlists",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "crm.consumerlists"
      },
      {
        "rel": "NewsletterTypes",
        "title": "MODEL_NEWSLETTERTYPE",
        "href": "https://api.ayoune.app/config/newslettertypes",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.newslettertypes"
      },
      {
        "rel": "ConsumerLists",
        "title": "MODEL_CONSUMERLIST",
        "href": "https://api.ayoune.app/crm/consumerlists",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "crm.consumerlists"
      }
    ],
    "debugId": "6a6194bcf78ad61f1990fac6",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_SERIESNEWSLETTER",
        "href": "https://api.ayoune.app/marketing/seriesnewsletters/65e0b146121b7d48fe1593c7/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_SERIESNEWSLETTER",
        "href": "https://api.ayoune.app/marketing/seriesnewsletters/65e0b146121b7d48fe1593c7/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.24.4",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "1810",
      "reset": "1784783437",
      "resetDate": "Thu Jul 23 2026"
    },
    "responseTime": 17.138319,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend