# Get rules **GET /accounts/{account_id}/rules** Fetch rules for the given account Available on: ![AuditGUARD](https://storage.googleapis.com/clickguard-storage-dev/public/assets/api-docs/audit-off.png) ![AlertGUARD](https://storage.googleapis.com/clickguard-storage-dev/public/assets/api-docs/active-off.png) ![PremiumGUARD](https://storage.googleapis.com/clickguard-storage-dev/public/assets/api-docs/premium-on.png) ![EliteGUARD](https://storage.googleapis.com/clickguard-storage-dev/public/assets/api-docs/elite-on.png) ## Servers ## Parameters ### Path parameters - **account_id** (string) ID of an account ### Query parameters - **ids[]** (array[string]) Fetch all rules for the given array of rule IDs. - **active** (boolean) Flag indicating if the rule is currently active - **type** (string) Optimization rule type ## Responses ### 200 Successful operation #### Body: (array[object]) - **id** (string) The unique identifier of the rule - **type** (string) The type of rule - **name** (string) Optimization rule name - **active** (boolean) Flag indicating if the rule is currently active - **created_at** (string(date-time)) Timestamp of the rule creation - **updated_t** (string(date-time)) Timestamp of the last update to the rule - **activated_at** (string(date-time)) Timestamp of when the rule was last activated - **deactivated_at** (string(date-time)) Timestamp of when the rule was last deactivated [Powered by Bump.sh](https://bump.sh)