aYOUne
← Automation API

Triggers

Singular: Trigger — Base-URL: https://automation-api.ayoune.app — Zugriff: CRUD

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": "65e0afc3121b7d48fe15545d",
    "internal_name": "Neuer Workflow",
    "active": false,
    "maintype": "trigger",
    "checkInterval": 1,
    "checkUnit": "days",
    "checkCondition": "==",
    "checkValue": "",
    "checkValueUnit": "days",
    "nicename": "",
    "debug": false,
    "notify": false,
    "pos_neg": "positiv",
    "ayoune_ac": "",
    "note": "",
    "custom": false,
    "dataFilteroperator": "and",
    "filteroperator": "and",
    "lastEvent": "",
    "createdBy": "6045f4d25704710012485569",
    "dataFilters": [],
    "filters": [],
    "actions": [],
    "createdAt": "2024-02-29T16:24:35.267Z",
    "updatedAt": "2024-02-29T16:24:35.267Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://automation-api.ayoune.app/triggers/65e0afc3121b7d48fe15545d",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "TriggerGroups",
        "title": "MODEL_TRIGGERGROUP",
        "href": "https://api.ayoune.app/config/triggergroups",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.triggergroups"
      }
    ],
    "debugId": "6a62dc58f9f895648ea72c87",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_TRIGGER",
        "href": "https://api.ayoune.app/automation/triggers/65e0afc3121b7d48fe15545d/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_TRIGGER",
        "href": "https://api.ayoune.app/automation/triggers/65e0afc3121b7d48fe15545d/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.19.0",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2374",
      "reset": "1784867403",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 289.661768,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend