aYOUne
← CMS API

Streams

Singular: Stream — Base-URL: https://cms-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

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": {
    "musicMeta": {
      "title": "",
      "subtitle": "",
      "artist": "",
      "album": "",
      "album_artist": "",
      "genre": "Podcast",
      "track": "",
      "comment": "",
      "language": "",
      "mood": "",
      "podcastkeywords": "",
      "podcastcategory": "",
      "podcastdesc": ""
    },
    "options": {
      "showLogo": true,
      "showTitle": true,
      "showCover": true,
      "roundCover": true,
      "showDescriptions": true,
      "showShareLinks": true,
      "showBuyLinks": true,
      "showMarkers": true,
      "showChapters": true,
      "coverSize": 96,
      "waveSize": 100,
      "shareUrl": ""
    },
    "meta": {
      "sampleRate": 0,
      "size": 0,
      "fileType": "",
      "totalDuration": 0,
      "waveformData": "",
      "waveformUrl": "",
      "markers": []
    },
    "summary": {
      "source": {
        "urlOrUploadKey": "",
        "sourceTextSnapshot": ""
      },
      "locales": [],
      "scriptModel": "",
      "ttsProvider": "",
      "humanReviewFlag": false,
      "speakerVoices": []
    },
    "_id": "6a700be560ffc2ccac48bafd",
    "type": "audio",
    "productName": "",
    "name": "COLLECTIVE_IVORY_WILHUFF TARKIN",
    "slug": "",
    "fileUrl": "",
    "totalPlays": 0,
    "totalPlayTime": 0,
    "isDraft": true,
    "createdBy": "6045f4d25704710012485569",
    "parts": [],
    "createdAt": "2026-08-03T03:32:53.791Z",
    "updatedAt": "2026-08-03T03:32:53.791Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://cms-api.ayoune.app/streams/6a700be560ffc2ccac48bafd",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Products",
        "title": "MODEL_PRODUCT",
        "href": "https://api.ayoune.app/pim/products",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "pim.products"
      },
      {
        "rel": "Podcasts",
        "title": "MODEL_PODCAST",
        "href": "https://api.ayoune.app/cms/podcasts",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "cms.podcasts"
      },
      {
        "rel": "Images",
        "title": "MODEL_IMAGE",
        "href": "https://api.ayoune.app/cms/images",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "cms.images"
      }
    ],
    "debugId": "6a8e6031fa8f1510f1a47121",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_STREAM",
        "href": "https://api.ayoune.app/cms/streams/6a700be560ffc2ccac48bafd/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_STREAM",
        "href": "https://api.ayoune.app/cms/streams/6a700be560ffc2ccac48bafd",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.45.0",
      "core": "2026.320.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2195",
      "reset": "1787719173",
      "resetDate": "Wed Aug 26 2026"
    },
    "responseTime": 611.245212,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend