aYOUne
← Marketing API

InteractionQuestions

Singular: InteractionQuestion — 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": "65e0b128121b7d48fe1590fa",
    "showHeader": true,
    "headerBackgroundColor": "#3f51b5",
    "headerTextColor": "#ffffff",
    "showLogo": true,
    "showText": true,
    "name": "",
    "question": "",
    "description": "Beschreibung der Frage",
    "desc_done_yes": "Vielen Dank für Ihre Antwort",
    "desc_done_no": "Vielen Dank für Ihre Antwort",
    "desc_done_one": "Vielen Dank für Ihre Antwort",
    "desc_done_two": "Vielen Dank für Ihre Antwort",
    "desc_done_three": "Vielen Dank für Ihre Antwort",
    "desc_done_four": "Vielen Dank für Ihre Antwort",
    "desc_done_five": "Vielen Dank für Ihre Antwort",
    "note": "",
    "typ": "yesno",
    "post_action": "message",
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2024-02-29T16:30:32.214Z",
    "updatedAt": "2024-02-29T16:30:32.214Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://marketing-api.ayoune.app/interactionquestions/65e0b128121b7d48fe1590fa",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6a61948ef78ad61f1990e81e",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_INTERACTIONQUESTION",
        "href": "https://api.ayoune.app/marketing/interactionquestions/65e0b128121b7d48fe1590fa/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_INTERACTIONQUESTION",
        "href": "https://api.ayoune.app/marketing/interactionquestions/65e0b128121b7d48fe1590fa/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.24.4",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2085",
      "reset": "1784783437",
      "resetDate": "Thu Jul 23 2026"
    },
    "responseTime": 17.005559,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend