← Automation API
Events
Singular: Event — Base-URL: https://automation-api.ayoune.app — Zugriff: read-only — 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": "6b0268c1ab9ad459c88e741d",
"_consumerID": "65d17fffc681100012970857",
"ayoune_fp": [],
"environment": "production",
"modelName": "channels",
"domain": "default",
"origin": "ayoune-automatic-checks-worker-develop",
"category": "automation",
"action": "check",
"label": "triggered",
"value": "undefined",
"evt_data": {
"stats": {
"views": 0,
"viewTime": 0,
"videos": 0,
"images": 0,
"likes": 0,
"favorites": 0,
"dislikes": 0,
"replies": 0,
"engagements": 0,
"shares": 0,
"clicks": 0,
"subscribers": 0,
"following": 0,
"comments": 0,
"leads": 0,
"conversions": 0,
"conversionRate": 0,
"clickTroughRate": 0
},
"_id": "65e0b10d121b7d48fe158e6a",
"bot": "ayoune_bot",
"type": "Facebook",
"botInstalled": false,
"settingsLocked": false,
"active": true,
"image_url": "",
"isDraft": true,
"createdBy": "6045f4d25704710012485569",
"images": [],
"createdAt": "2024-02-29T16:30:05.051Z",
"updatedAt": "2024-02-29T16:30:05.051Z",
"shares": []
},
"ts": "2026-11-22T04:00:01.538Z",
"shares": []
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://automation-api.ayoune.app/events/6b0268c1ab9ad459c88e741d",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "Consumers",
"title": "MODEL_CONSUMER",
"href": "https://api.ayoune.app/crm/consumers/65d17fffc681100012970857",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.consumers"
}
],
"relations": [
{
"rel": "Consumers",
"title": "MODEL_CONSUMER",
"href": "https://api.ayoune.app/crm/consumers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.consumers"
},
{
"rel": "States",
"title": "MODEL_STATE",
"href": "https://api.ayoune.app/config/states",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.states"
}
],
"debugId": "6b0500e21bb191d29e44317f",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_EVENT",
"href": "https://api.ayoune.app/automation/events/6b0268c1ab9ad459c88e741d/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_EVENT",
"href": "https://api.ayoune.app/automation/events/6b0268c1ab9ad459c88e741d",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.23.0",
"core": "2026.397.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "9820",
"reset": "1795493567",
"resetDate": "Tue Nov 24 2026"
},
"responseTime": 22.091164,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /events |
Liste mit Filtern/Paginierung | automation.events.view |
| GET | /events/:id |
Einzelner Datensatz via ID | automation.events.view |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.automation.events.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.automation.events.findById('OBJECT_ID').exec();