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)
pageintPage number (starting from 0)



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)
| - 0
| - 1
| - 2
| - 3
| - 4
| - 5
| - 6
| - 7



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