aYOUne
← Affiliate API

AdvertiserAPIs

Singular: AdvertiserAPI — 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": {
    "_id": "6a62dbe3138b05b510db1f26",
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2026-07-24T03:28:35.723Z",
    "updatedAt": "2026-07-24T03:28:35.723Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://affiliate-api.ayoune.app/advertiserapis/6a62dbe3138b05b510db1f26",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6a8e5f3dd193abb7a0e1529b",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_ADVERTISERAPI",
        "href": "https://api.ayoune.app/affiliate/advertiserapis/6a62dbe3138b05b510db1f26/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_ADVERTISERAPI",
        "href": "https://api.ayoune.app/affiliate/advertiserapis/6a62dbe3138b05b510db1f26/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.6.5",
      "core": "2026.287.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2491",
      "reset": "1787718987",
      "resetDate": "Wed Aug 26 2026"
    },
    "responseTime": 72.302459,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend