API documentation
Method list
Test your request
Changelog


getAutomaticActions
Returns automatic actions (macros) for the current user. Returns max 100 results per page.


Input parameters
typetextType of automatic action
automatic_action_idsarrayFilter by automatic action IDs (array of ints)
group_idintFilter by group ID
trigger_typesarrayFilter by trigger types (array of ints)
condition_typesarrayFilter by condition types (returns actions containing at least one condition of given types)
task_typesarrayFilter by task types (returns actions containing at least one task of given types)
pageintResults page number (numbered from 1)



Output data
The method returns the data in JSON format.
statusvarchar(30)SUCCESS - request executed correctly
ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code
automatic_actionsarrayList of automatic actions (max 100 per page)
| - automatic_action_idintAutomatic action ID
| - group_idintGroup ID
| - enabledboolIs action enabled
| - descriptiontextAction description
| - trigger_typeintTrigger type
| - trigger_conditiontextTrigger condition data
| - conditionsarrayList of conditions
| - tasksarrayList of tasks



Sample
Input data:
Output data:
A sample request in PHP: