Skip to content
aYOUne
← Marketing API

PressReleases

Singular: PressRelease — Base URL: https://marketing-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)

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": {
    "approval": {
      "status": "approved",
      "approvedAt": "2026-09-17T09:00:00.000Z"
    },
    "contact": {
      "name": "Elias Falk",
      "role": "Unternehmenskommunikation",
      "email": "presse@tolinaxdemo.example",
      "phone": "+49 30 23125 40"
    },
    "_id": "6ab240529685a3471044a60f",
    "createdAt": "2026-09-10T09:00:00.000Z",
    "updatedAt": "2026-09-10T09:00:00.000Z",
    "_employee": "6ab22701497e7e1a3405686c",
    "lang": "de_DE",
    "slug": "neues-werk-in-betrieb-genommen",
    "title": "Neues Werk in Betrieb genommen",
    "teaser": "Die zweite Fertigungslinie geht nach acht Monaten Bauzeit in den Regelbetrieb.",
    "body": "Die zweite Fertigungslinie geht nach acht Monaten Bauzeit in den Regelbetrieb.\n\nDie Massnahme ist Teil der laufenden Jahresplanung. Weitere Einzelheiten nennt das Unternehmen im kommenden Quartalsbericht.",
    "publishDate": "2026-09-17T09:00:00.000Z",
    "published": true,
    "showOnWebsite": true,
    "_images": [],
    "_attachments": [],
    "channels": [
      {
        "key": "website",
        "status": "delivered",
        "submittedAt": "2026-09-17T09:00:00.000Z",
        "deliveredAt": "2026-09-17T09:00:00.000Z",
        "shares": []
      },
      {
        "key": "newsroom",
        "status": "submitted",
        "submittedAt": "2026-09-17T09:00:00.000Z",
        "shares": []
      }
    ],
    "sources": [
      {
        "url": "https://example.invalid/quelle",
        "label": "Unternehmensmitteilung",
        "shares": []
      }
    ],
    "shares": []
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://marketing-api.ayoune.app/pressreleases/6ab240529685a3471044a60f",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "Employees",
        "title": "MODEL_EMPLOYEE",
        "href": "https://api.ayoune.app/hr/employees/6ab22701497e7e1a3405686c",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "hr.employees"
      }
    ],
    "relations": [
      {
        "rel": "Employees",
        "title": "MODEL_EMPLOYEE",
        "href": "https://api.ayoune.app/hr/employees",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "hr.employees"
      }
    ],
    "debugId": "6ac9bbb5d942c8cd7c84bef6",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_PRESSRELEASE",
        "href": "https://api.ayoune.app/marketing/pressreleases/6ab240529685a3471044a60f/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_PRESSRELEASE",
        "href": "https://api.ayoune.app/marketing/pressreleases/6ab240529685a3471044a60f",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.38.0",
      "core": "2026.368.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "8805",
      "reset": "1791608900",
      "resetDate": "Sat Oct 10 2026"
    },
    "responseTime": 89.498467,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

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

SDK

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

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

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

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

See also