getAutomaticActions
Returns automatic actions (macros) for the current user. Returns max 100 results per page.
Input parameters
Output data:
A sample request in PHP:
| type | text | Type of automatic action |
| automatic_action_ids | array | Filter by automatic action IDs (array of ints) |
| group_id | int | Filter by group ID |
| trigger_types | array | Filter by trigger types (array of ints) |
| condition_types | array | Filter by condition types (returns actions containing at least one condition of given types) |
| task_types | array | Filter by task types (returns actions containing at least one task of given types) |
| page | int | Page number (starting from 0) |
Output data
The method returns the data in JSON format.
| status | varchar(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_actions | array | List of automatic actions (max 100 per page) |
| | - automatic_action_id | int | Automatic action ID |
| | - group_id | int | Group ID |
| | - enabled | bool | Is action enabled |
| | - description | text | Action description |
| | - trigger_type | int | Trigger type |
| | - trigger_condition | text | Trigger condition data |
| | - conditions | array | List of conditions |
| | - tasks | array | List of tasks |
Sample
Input data:Output data:
A sample request in PHP: