Zum Inhalt springen
aYOUne
← Konfiguration API

Domains

Singular: Domain — Base-URL: https://config-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

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": {
    "tls": {
      "provisioned": false
    },
    "_id": "6aa6130c67420e014000fc07",
    "email": false,
    "websites": false,
    "landingpages": false,
    "verified": false,
    "createdBy": "6045f4d25704710012485569",
    "shares": [],
    "createdAt": "2026-09-13T03:05:48.801Z",
    "updatedAt": "2026-09-13T03:05:48.801Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/domains/6aa6130c67420e014000fc07",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Websites",
        "title": "MODEL_WEBSITE",
        "href": "https://api.ayoune.app/cms/websites",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "cms.websites"
      }
    ],
    "debugId": "6ac9af9bcdeaf426c1097af9",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_DOMAIN",
        "href": "https://api.ayoune.app/config/domains/6aa6130c67420e014000fc07/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_DOMAIN",
        "href": "https://api.ayoune.app/config/domains/6aa6130c67420e014000fc07",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.170.1",
      "core": "2026.368.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9984",
      "reset": "1791604919",
      "resetDate": "Sat Oct 10 2026"
    },
    "responseTime": 99.161038,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend