← ads API
aYOUneAdvertisements
Singular: aYOUneAdvertisement — Base-URL: https://ads-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)
Jetzt ausprobieren
beta
Response (live)
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": "6a72ad683ff6ccf0765c64f8",
"name": "AGREEABLE_AZURE_RATTS TYEREL",
"regions": [],
"isDraft": true,
"createdBy": "6045f4d25704710012485569",
"createdAt": "2026-08-05T03:26:32.879Z",
"updatedAt": "2026-08-05T03:26:32.879Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://ads-api.ayoune.app/ayouneadvertisements/6a72ad683ff6ccf0765c64f8",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Documents",
"title": "MODEL_DOCUMENT",
"href": "https://api.ayoune.app/crm/documents",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.documents"
}
],
"debugId": "6a8e5d11b9fe0b29f6d54ccf",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_AYOUNEADVERTISEMENT",
"href": "https://api.ayoune.app/ads/ayouneadvertisements/6a72ad683ff6ccf0765c64f8/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_AYOUNEADVERTISEMENT",
"href": "https://api.ayoune.app/ads/ayouneadvertisements/6a72ad683ff6ccf0765c64f8/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.13.2",
"core": "2026.315.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2492",
"reset": "1787718431",
"resetDate": "Wed Aug 26 2026"
},
"responseTime": 275.242984,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /ayouneadvertisements |
Liste mit Filtern/Paginierung | ads.ayouneadvertisements.view |
| GET | /ayouneadvertisements/:id |
Einzelner Datensatz | ads.ayouneadvertisements.view |
| POST | /ayouneadvertisements |
Neuen Datensatz erstellen | ads.ayouneadvertisements.new |
| PUT | /ayouneadvertisements |
Datensatz aktualisieren | ads.ayouneadvertisements.edit |
| DELETE | /ayouneadvertisements/:id |
Datensatz löschen | ads.ayouneadvertisements.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.ads.aYOUneAdvertisements.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.ads.aYOUneAdvertisements.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.ads.aYOUneAdvertisements.create({ name: 'Foo' });