aYOUne
← Marketing API

Emotions

Singular: Emotion — 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": "65e0762c072ab6fcee60f958",
    "type": "classic",
    "variation": "A",
    "variations": [],
    "interest": "-",
    "region": "-",
    "plz": "-",
    "h1": "Ihre Reaktion zu diesem Thema",
    "h2": "",
    "h3": "",
    "icon_before": "fa-arrow-right",
    "button_txt": "Jetzt downloaden",
    "icon_after": "fa-arrow-left",
    "background_color_1": "#FFFFFF",
    "background_color_2": "#FFFFFF",
    "border_color": "#000000",
    "button_border_color": "#000000",
    "button_text_color": "#000000",
    "border_radius_top_left": 0,
    "border_radius_top_right": 0,
    "border_radius_bottom_left": 0,
    "border_radius_bottom_right": 0,
    "font_color": "#000000",
    "button_color_1": "#FF0000",
    "button_color_2": "#FF0000",
    "font_size_t1": 10,
    "font_size_t2": 10,
    "font_size_t3": 10,
    "font_size_btn": 10,
    "font_type": "Arial",
    "width": 350,
    "height": 300,
    "show_border": 0,
    "locale": "de_DE",
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2024-02-29T12:18:52.786Z",
    "updatedAt": "2024-02-29T12:18:52.786Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://marketing-api.ayoune.app/emotions/65e0762c072ab6fcee60f958",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6a619481f78ad61f1990e26e",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_EMOTION",
        "href": "https://api.ayoune.app/marketing/emotions/65e0762c072ab6fcee60f958/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_EMOTION",
        "href": "https://api.ayoune.app/marketing/emotions/65e0762c072ab6fcee60f958/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.24.4",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2162",
      "reset": "1784783437",
      "resetDate": "Thu Jul 23 2026"
    },
    "responseTime": 86.848129,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend