aYOUne
← Konfiguration API

Domains

Singular: Domain — Base-URL: https://config-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": {
    "tls": {
      "provisioned": false
    },
    "_id": "6a7a92efda286a9731985241",
    "email": false,
    "websites": false,
    "landingpages": false,
    "verified": false,
    "isDraft": true,
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2026-08-11T03:11:43.468Z",
    "updatedAt": "2026-08-11T03:11:43.468Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/domains/6a7a92efda286a9731985241",
        "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": "6a83ce8561c67fb131d5e415",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_DOMAIN",
        "href": "https://api.ayoune.app/config/domains/6a7a92efda286a9731985241/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_DOMAIN",
        "href": "https://api.ayoune.app/config/domains/6a7a92efda286a9731985241/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.145.0",
      "core": "2026.307.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2492",
      "reset": "1787026578",
      "resetDate": "Tue Aug 18 2026"
    },
    "responseTime": 204.062246,
    "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