> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Alert Definitions

Get the list of all the alerts defined in a given domain.

<Note>
  External Documentation

  To learn more, visit the [Devo documentation](https://docs.devo.com/space/latest/95128671/Working+with+alert+definitions+using+the+API#GET-%C2%A0-/alertDefinitions).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter  | Description                                                                                                                             |
  | ---------- | --------------------------------------------------------------------------------------------------------------------------------------- |
  | Alert ID   | Indicate an alert definition ID to get only that specific alert.                                                                        |
  | Alert Name | Filter alerts by their names. You will only get alerts that contain the terms specified in their names. The filter is case insensitive. |
  | Page       | Page number of the results to fetch.                                                                                                    |
  | Size       | The number of results per page.                                                                                                         |
</div>

## Example Output

```json theme={"dark"}
[
	{
		"id": "214554",
		"creationDate": 1678293187000,
		"name": "AWSWAFRuleDeletion",
		"message": "WAF rule or rulegroup deletion",
		"description": "WAF rule or rulegroup deletion",
		"categoryId": "2432",
		"subcategory": "lib.my.tutorials.AWS",
		"subcategoryId": "4452",
		"isActive": false,
		"isFavorite": false,
		"isAlertChain": false,
		"alertCorrelationContext": {
			"id": "67741",
			"nameId": "my.alert.tutorials.AWSWAFRuleDeletion",
			"ownerEmail": "john.smith@devo.com",
			"querySourceCode": "from cloud.aws.cloudtrail where eq(eventName,\"DeleteRule\") or eq(eventName,\"DeleteRuleGroup\") group every 1m select count() as count",
			"priority": 3,
			"correlationTrigger": {
				"kind": "each",
				"externalPeriod": null,
				"externalOffset": null,
				"internalPeriod": null,
				"internalOffset": null
			}
		},
		"actionPolicyId": []
	},
	{
		"id": "214555",
		"creationDate": 1678293190000,
		"name": "AWSRootAccessConsoleLogin",
		"message": "Root access via console",
		"description": "Root access via console",
		"categoryId": "2432",
		"subcategory": "lib.my.tutorials.threats",
		"subcategoryId": "4453",
		"isActive": false,
		"isFavorite": false,
		"isAlertChain": false,
		"alertCorrelationContext": {
			"id": "67742",
			"nameId": "my.alert.tutorials.AWSRootAccessConsoleLogin",
			"ownerEmail": "john.smith@devo.com",
			"querySourceCode": "from cloud.aws.cloudtrail where eventSource=\"signin.amazonaws.com\" where eventName=\"ConsoleLogin\" select str(jqeval(jqcompile(\".ConsoleLogin\"), responseElements)) as loginResponse select str(jqeval(jqcompile(\".MFAUsed\"), additionalEventData)) as mfaUsed group every 1m by userName,userIdentity_principalId,userIdentity_type,mfaUsed,loginResponse where userIdentity_type=\"Root\" where loginResponse=\"Success\" select count() as count",
			"priority": 2,
			"correlationTrigger": {
				"kind": "each",
				"externalPeriod": null,
				"externalOffset": null,
				"internalPeriod": null,
				"internalOffset": null
			}
		},
		"actionPolicyId": []
	}
]
```

## Workflow Library Example

[List Alert Definitions with Devo and Send Results Via Email](https://library.blinkops.com/workflows/list-alert-definitions-with-devo-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-alert-definitions-with-devo-and-send-results-via-email/canvas" />
</div>
