aYOUne
← Affiliate API

ImageBanners

Singular: ImageBanner — Base-URL: https://affiliate-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": {
    "adPlace": "-",
    "subId": "-",
    "customId": "-",
    "customId2": "-",
    "_id": "65e07d7811cb6213d99d05f9",
    "adplace": "-",
    "sub_id": "-",
    "cust_id": "-",
    "cust_id2": "-",
    "note": "-",
    "isDraft": true,
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2024-02-29T12:50:00.258Z",
    "updatedAt": "2024-02-29T12:50:00.258Z",
    "shares": []
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://affiliate-api.ayoune.app/imagebanners/65e07d7811cb6213d99d05f9",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Affiliates",
        "title": "MODEL_AFFILIATE",
        "href": "https://api.ayoune.app/config/affiliates",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.affiliates"
      },
      {
        "rel": "ImageBannerTemplates",
        "title": "MODEL_IMAGEBANNERTEMPLATE",
        "href": "https://api.ayoune.app/affiliate/imagebannertemplates",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "affiliate.imagebannertemplates"
      }
    ],
    "debugId": "6aa37119b1480236a5bcf64f",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_IMAGEBANNER",
        "href": "https://api.ayoune.app/affiliate/imagebanners/65e07d7811cb6213d99d05f9/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_IMAGEBANNER",
        "href": "https://api.ayoune.app/affiliate/imagebanners/65e07d7811cb6213d99d05f9",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.6.5",
      "core": "2026.334.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2435",
      "reset": "1789099796",
      "resetDate": "Fri Sep 11 2026"
    },
    "responseTime": 291.483132,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend