aYOUne
← Marketing API

CTAs

Singular: CTA — Base URL: https://marketing-api.ayoune.app — Access: CRUD

play_circle 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": {
    "slider_settings": {
      "mode": "horizontal",
      "touchEnabled": false,
      "speed": 500,
      "slideMargin": 0,
      "startSlide": 0,
      "randomStart": false,
      "infiniteLoop": true,
      "hideControlOnEnd": false,
      "captions": false,
      "ticker": false,
      "tickerHover": false,
      "adaptiveHeight": false,
      "adaptiveHeightSpeed": 500,
      "responsive": false,
      "pager": true,
      "controls": true,
      "nextText": "Next",
      "prevText": "Prev",
      "autoControls": false,
      "startText": "Start",
      "stopText": "Stop",
      "autoControlsCombine": false,
      "keyboardEnabled": false,
      "auto": true,
      "stopAutoOnClick": false,
      "autoStart": true,
      "autoDirection": "next",
      "autoHover": false,
      "autoDelay": 0,
      "minSlides": 1,
      "maxSlides": 1,
      "moveSlides": 0,
      "slideWidth": 0,
      "shrinkItems": false
    },
    "button_txt_mobile": "Jetzt downloaden",
    "background_transparent": false,
    "_id": "65e074ef7631a977e1babd72",
    "type": "classic",
    "variation": "A",
    "variations": [],
    "interest": "-",
    "product": false,
    "region": "-",
    "plz": "-",
    "redirect_url": "https://ayoune.com",
    "h1": "Text 1",
    "h2": "Text 2",
    "h3": "Text 3",
    "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:13:35.103Z",
    "updatedAt": "2024-02-29T12:13:35.103Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://marketing-api.ayoune.app/ctas/65e074ef7631a977e1babd72",
        "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": "6a619455f78ad61f1990d2fc",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_CTA",
        "href": "https://api.ayoune.app/marketing/ctas/65e074ef7631a977e1babd72/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_CTA",
        "href": "https://api.ayoune.app/marketing/ctas/65e074ef7631a977e1babd72/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.24.4",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2389",
      "reset": "1784783437",
      "resetDate": "Thu Jul 23 2026"
    },
    "responseTime": 168.610928,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

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

SDK

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

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

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

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

See also