AutomationEvents.List
Return a paged list of automation trigger definitions. Use limit 25 or lower.
Permissions
User must be logged in and allowed to manage automation/settings for this account.
Action
Return a paged list of automation trigger definitions. Use limit 25 or lower.
Push Service
No push is sent for read-only list/count.
Automation
No business automation runs while editing automation configuration. It runs later only when an active trigger event happens.
Special Instructions
List responses are capped at 25 rows. Full instructions: /docs/generated/app-route-diffs/AutomationEvents.List.md Sample curl: curl -X POST https://{domain}/app/AutomationEvents.List \ -H 'Authorization: Bearer YOUR TOKEN' \ -d 'start=0' \ -d 'limit=25' \ -d 'event=add_lead' \ -d 'automation_status=1'
Required Parameters
No body parameters are required for this function.
Optional Parameters
| Name | Type | Sample | What it gives |
|---|---|---|---|
startpost | int | 0 | First row offset for paging. |
limitpost | int | 25 | Maximum rows to return. Values above 25 are capped. |
searchpost | string | lead | Search by name, trigger, type, or supported text columns. |
eventpost | string | add_lead | Filter by trigger key. |
automation_statuspost | int | 1 | Filter active/disabled triggers. |
automationpost | int | 1 | Filter by display/order group. |
Authentication
Send the bearer token returned by Login in the request header.
Authorization: Bearer YOUR TOKEN
Sample Request
{
"url": "\/app\/AutomationEvents.List",
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR TOKEN"
},
"body": {
"start": "0",
"limit": "25",
"event": "add_lead",
"automation_status": "1"
},
"url_user": "https:\/\/{user}.bull36.com\/app\/AutomationEvents.List",
"url_domain": "https:\/\/{domain}\/app\/AutomationEvents.List"
}Endpoint
POST /app/AutomationEvents.List
POST https://{user}.bull36.com/app/AutomationEvents.List
POST https://{domain}/app/AutomationEvents.ListSample Output
{
"success": "1",
"count": "1",
"recordsTotal": "1",
"recordsFiltered": "1",
"data": [
{
"id": "123",
"name": "New lead trigger",
"event": "add_lead"
}
]
}Count Only
Use the matching count route with the same filters when the UI only needs total rows for paging.
{
"url": "\/app\/AutomationEvents.Count",
"url_user": "https:\/\/{user}.bull36.com\/app\/AutomationEvents.Count",
"url_domain": "https:\/\/{domain}\/app\/AutomationEvents.Count",
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR TOKEN"
},
"body": {
"event": "add_lead",
"automation_status": "1"
},
"sample_output": {
"success": 1,
"count": 123
},
"notes": {
"count": "Use the matching count route when available, or count returned rows.",
"max_limit": 25
}
}Count JavaScript
const token = 'YOUR TOKEN';
const body = new URLSearchParams();
body.set('event', 'add_lead');
body.set('automation_status', '1');
const res = await fetch('https://{domain}/app/AutomationEvents.Count', {
method: 'POST',
headers: { Authorization: `Bearer ${token}` },
body
});
const data = await res.json();
console.log(data.count);JavaScript Example
const token = 'YOUR TOKEN';
const body = new URLSearchParams();
body.set('start', '0');
body.set('limit', '25');
body.set('event', 'add_lead');
body.set('automation_status', '1');
const res = await fetch('/app/AutomationEvents.List', {
method: 'POST',
headers: { Authorization: `Bearer ${token}` },
body
});
const data = await res.json();
console.log(data);Error Example
{
"success": "0",
"error": "bearer_token_required",
"message": "Authorization bearer token is required. Send header: Authorization: Bearer YOUR TOKEN"
}