> ## Documentation Index > Fetch the complete documentation index at: https://developers.torq.io/llms.txt > Use this file to discover all available pages before exploring further. # List rules > Returns the workspace's rules in evaluation order: by evaluation point, then by priority. Each rule is returned without its matcher, which holds the rule's conditions. To read a rule's matcher, use Retrieve a rule. ## OpenAPI ````json GET /v1/triage/rules { "openapi": "3.0.1", "info": { "contact": { "email": "support@torq.io", "name": "torq.io", "url": "https://torq.io" }, "title": "Torq Public API[production]", "version": "1.0.1alpha-148prod" }, "servers": [ { "url": "https://api.torq.io/public", "description": "US Environment" }, { "url": "https://api.eu.torq.io/public", "description": "European Environment" } ], "security": [ { "bearerAuth": [] } ], "tags": [ { "name": "ActivityLogs" }, { "name": "AgentsHubService" }, { "name": "ApiKeys" }, { "name": "AuditLogs" }, { "name": "Auto Triage Alert History" }, { "name": "Auto Triage Alerts" }, { "name": "Auto Triage Guidance" }, { "name": "Auto Triage Rules" }, { "name": "Auto Triage Verdict Actions" }, { "name": "Cases" }, { "name": "Cases Attachments" }, { "name": "Cases Custom Fields" }, { "name": "Cases Events" }, { "name": "Cases Links" }, { "name": "Cases Notes" }, { "name": "Cases Runbooks" }, { "name": "Cases Task Templates" }, { "name": "Cases Tasks" }, { "name": "CasesService" }, { "name": "ClaimMappings" }, { "name": "Dashboards" }, { "name": "Executions" }, { "name": "IdpSsoService" }, { "name": "Integrations" }, { "name": "IP Access Rules" }, { "name": "Observables" }, { "name": "Roles" }, { "name": "Scheduled Reports" }, { "name": "Secrets" }, { "name": "Security Config" }, { "name": "ShareRequests" }, { "name": "StepRunners" }, { "name": "Users" }, { "name": "Workflows" }, { "name": "Workspaces" }, { "name": "WorkspaceVariables" } ], "externalDocs": { "description": "Torq Documentation", "url": "https://learn.torq.io" }, "x-original-swagger-version": "2.0", "paths": { "/v1/triage/rules": { "get": { "description": "Returns the workspace's rules in evaluation order: by evaluation point, then by priority.\nEach rule is returned without its matcher, which holds the rule's conditions. To read a rule's\nmatcher, use Retrieve a rule.", "operationId": "RuleService_ListRules", "parameters": [ { "description": "Returns only the rules at this evaluation point. The only evaluation point is \"after_verdict\".", "in": "query", "name": "filter.evaluation_point", "schema": { "enum": [ "after_verdict" ], "type": "string" } }, { "description": "When true, returns only enabled rules; when false, only disabled rules. Unset returns all rules.", "in": "query", "name": "filter.enabled", "schema": { "type": "boolean" } }, { "description": "The maximum number of rules to retrieve per page. Default is 50. Maximum is 100.\nIf the number of results exceeds the defined page size, use pagination to retrieve the next\npage by making an identical List rules request and providing the page token from the previous\nresponse. Moving or deleting a rule between page requests can make a rule appear twice or\nnot at all; to read a consistent order, read it in one page.", "in": "query", "name": "page_size", "schema": { "format": "int32", "type": "integer" } }, { "description": "Token received from a previous List rules response. Provide this to retrieve the next page of results.", "in": "query", "name": "page_token", "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/torq.public.triage.v1.ListRulesResponse" } } }, "description": "A successful response." }, "401": { "content": { "application/json": { "schema": { "type": "object" } } }, "description": "Invalid bearer token. If you receive this message more than once try creating a new Client ID/Client Secret or generating a new bearer token." }, "403": { "content": { "application/json": { "schema": { "type": "object" } } }, "description": "You don't have permission to access this resource." } }, "summary": "List rules", "tags": [ "Auto Triage Rules" ] } } }, "components": { "schemas": { "torq.public.triage.v1.ListRulesResponse": { "properties": { "rules": { "description": "The rules returned, in evaluation order.", "items": { "$ref": "#/components/schemas/torq.public.triage.v1.RuleListItem" }, "type": "array" }, "next_page_token": { "description": "When a token is returned, it indicates there is another page of results to retrieve.\nPass this token as the page_token parameter in a subsequent List rules request.\nIf this field is empty, there are no additional pages to retrieve.", "title": "Next page token", "type": "string" } }, "title": "List rules response", "type": "object" }, "torq.public.triage.v1.RuleListItem": { "description": "A rule as returned by List rules: every field of the rule except its matcher.", "properties": { "id": { "description": "The unique identifier of the rule.", "title": "ID", "type": "string" }, "name": { "description": "The rule name, unique among the workspace's rules and guidance.", "title": "Name", "type": "string" }, "description": { "description": "An optional description of the rule.", "title": "Description", "type": "string" }, "enabled": { "description": "Whether the rule is active. A disabled rule is not evaluated. Always returned, including when false.", "nullable": false, "title": "Enabled", "type": "boolean" }, "priority": { "description": "The rule's position in evaluation order within its evaluation point, 1 for first. Positions\nrun from 1 to the number of rules without gaps, counting enabled and disabled rules.", "format": "int32", "title": "Priority", "type": "integer" }, "evaluation_point": { "description": "When in triage the rule is evaluated: \"after_verdict\", once Auto Triage has reached its verdict.", "title": "Evaluation point", "type": "string" }, "outcome": { "$ref": "#/components/schemas/torq.public.triage.v1.RuleOutcome" }, "alerts_matched_last_30_days": { "description": "The number of alerts created in the last 30 days that this rule matched. Rules are checked in\npriority order and checking stops at the first match, so an alert counts only for the first\nrule that matched it. Approximate: the count is refreshed periodically. Always returned,\nincluding when 0.", "format": "int32", "nullable": false, "title": "Alerts matched in the last 30 days", "type": "integer" }, "created_at": { "description": "The timestamp when the rule was created.", "format": "date-time", "title": "Create time", "type": "string" }, "created_by": { "$ref": "#/components/schemas/torq.actor.v1.Actor" }, "updated_at": { "description": "The timestamp when the rule was last updated.", "format": "date-time", "title": "Update time", "type": "string" }, "updated_by": { "$ref": "#/components/schemas/torq.actor.v1.Actor" } }, "type": "object" }, "torq.public.triage.v1.RuleOutcome": { "description": "What a rule does to an alert it matches: an outcome type, and a config whose shape the type\ndefines. Retrieve rule schemas lists the allowed types and the settings each one takes. Currently\nthe only type is \"override_triage_result\", which sets the alert's verdict, its severity, or both.", "properties": { "type": { "description": "The outcome type, such as \"override_triage_result\".", "type": "string" }, "config": { "description": "The outcome's settings, as a JSON object whose fields and values the type's config schema\ndefines. For \"override_triage_result\": {\"verdict\": \"False Positive\", \"severity\": \"Low\"}, with\nat least one of the two.", "properties": {}, "type": "object" } }, "type": "object" }, "torq.actor.v1.Actor": { "description": "The entity that performed the action.", "properties": { "kind": { "description": "The actor kind. Identifies which `actor` case is populated. One of:\nUSER, WORKFLOW, INTEGRATION, SERVICE_API_KEY, SOCRATES, TRIAGE, AGENT, BUILDER.", "readOnly": true, "type": "string" }, "user": { "$ref": "#/components/schemas/torq.actor.v1.Actor.User" }, "workflow": { "$ref": "#/components/schemas/torq.actor.v1.Actor.Workflow" }, "integration": { "$ref": "#/components/schemas/torq.actor.v1.Actor.Integration" }, "service_api_key": { "$ref": "#/components/schemas/torq.actor.v1.Actor.ServiceApiKey" }, "socrates": { "$ref": "#/components/schemas/torq.actor.v1.Actor.Socrates" }, "triage": { "$ref": "#/components/schemas/torq.actor.v1.Actor.Triage" }, "agent": { "$ref": "#/components/schemas/torq.actor.v1.Actor.Agent" }, "builder": { "$ref": "#/components/schemas/torq.actor.v1.Actor.Builder" } }, "type": "object" }, "torq.actor.v1.Actor.User": { "description": "User identity information.", "properties": { "email": { "description": "The actor's email address.", "type": "string" }, "full_name": { "description": "The user's full name.", "type": "string" } }, "type": "object" }, "torq.actor.v1.Actor.Workflow": { "description": "Workflow execution details.", "properties": { "id": { "description": "The workflow ID.", "type": "string" }, "execution_id": { "description": "The workflow execution ID.", "type": "string" }, "name": { "description": "The workflow name.", "type": "string" } }, "type": "object" }, "torq.actor.v1.Actor.Integration": { "description": "Integration configuration.", "properties": { "id": { "description": "The integration ID.", "type": "string" }, "type_id": { "description": "The integration type identifier.", "type": "string" } }, "type": "object" }, "torq.actor.v1.Actor.ServiceApiKey": { "description": "Service account API token information.", "properties": { "name": { "description": "The service account API token name.", "type": "string" }, "client_id": { "description": "The service account API token client ID.", "type": "string" } }, "type": "object" }, "torq.actor.v1.Actor.Socrates": { "description": "Original actor information.", "properties": { "original_actor": { "$ref": "#/components/schemas/torq.actor.v1.Actor" } }, "type": "object" }, "torq.actor.v1.Actor.Triage": { "description": "Triage system action.", "type": "object" }, "torq.actor.v1.Actor.Agent": { "description": "Agent execution details.", "properties": { "id": { "description": "The agent ID.", "type": "string" }, "execution_id": { "description": "The agent execution ID.", "type": "string" } }, "type": "object" }, "torq.actor.v1.Actor.Builder": { "description": "Workflow Builder acting on behalf of a user.", "properties": { "original_actor": { "$ref": "#/components/schemas/torq.actor.v1.Actor" } }, "type": "object" } }, "securitySchemes": { "bearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "64fb4b65-44d8-4304-881c-b1f8b6b3100a" } } } } ````