aYOUne
← CMS API

Streams

Singular: Stream — Base-URL: https://cms-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": {
    "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
    },
    "_id": "6a618baf45e1461dc76ace6d",
    "type": "audio",
    "productName": "",
    "name": "INSTITUTIONAL_BROWN_GASGANO",
    "slug": "",
    "fileUrl": "",
    "totalPlays": 0,
    "totalPlayTime": 0,
    "createdBy": "6045f4d25704710012485569",
    "parts": [],
    "createdAt": "2026-07-23T03:34:07.185Z",
    "updatedAt": "2026-07-23T03:34:07.185Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://cms-api.ayoune.app/streams/6a618baf45e1461dc76ace6d",
        "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"
      }
    ],
    "debugId": "6a62dc8901c81db07e1dbca3",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_STREAM",
        "href": "https://api.ayoune.app/cms/streams/6a618baf45e1461dc76ace6d/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_STREAM",
        "href": "https://api.ayoune.app/cms/streams/6a618baf45e1461dc76ace6d/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.25.5",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2254",
      "reset": "1784867449",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 17.659889,
    "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