← Automation API
Events
Singular: Event — Base URL: https://automation-api.ayoune.app — Access: read-only
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": "6a60393b6c651b0a084d693d",
"_consumerID": "65d17fffc681100012970857",
"ayoune_fp": [],
"environment": "production",
"modelName": "keywordnegativelists",
"domain": "default",
"origin": "ayoune-automatic-checks-worker-develop",
"category": "automation",
"action": "check",
"label": "triggered",
"value": "undefined",
"evt_data": {
"_id": "65e0b12b121b7d48fe159148",
"_adCampaigns": [],
"active": true,
"status": "inactive",
"createdBy": "6045f4d25704710012485569",
"keywords": [],
"createdAt": "2024-02-29T16:30:35.303Z",
"updatedAt": "2024-02-29T16:30:35.303Z"
},
"ts": "2026-07-22T03:30:03.753Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://automation-api.ayoune.app/events/6a60393b6c651b0a084d693d",
"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": "6a62dc51f9f895648ea72a06",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_EVENT",
"href": "https://api.ayoune.app/automation/events/6a60393b6c651b0a084d693d/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_EVENT",
"href": "https://api.ayoune.app/automation/events/6a60393b6c651b0a084d693d/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.19.0",
"core": "2026.258.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "2413",
"reset": "1784867403",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 66.593295,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /events |
List with filters/pagination | automation.events.view |
| GET | /events/:id |
Single record by ID | automation.events.view |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.automation.events.find().limit(10).exec();
// Single record
const one = await ay.automation.events.findById('OBJECT_ID').exec();