← Automation API
Triggers
Singular: Trigger — Base URL: https://automation-api.ayoune.app — Access: CRUD
Try it now
beta
Response (live)
Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.
Example response (recorded) sample
A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.
{
"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
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /triggers |
List with filters/pagination | automation.triggers.view |
| GET | /triggers/:id |
Single record | automation.triggers.view |
| POST | /triggers |
Create new record | automation.triggers.new |
| PUT | /triggers |
Update record | automation.triggers.edit |
| DELETE | /triggers/:id |
Delete record | automation.triggers.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.automation.triggers.find().limit(10).exec();
// Single record
const one = await ay.automation.triggers.findById('OBJECT_ID').exec();
// Create
const created = await ay.automation.triggers.create({ name: 'Foo' });