---
title: "List"
method: GET
path: "/alerts_violations.json"
tags: ["Deprecation Notice - Alerts Violations"]
---

# List

`GET /alerts_violations.json`

## Request

- Base URL: `https://api.newrelic.com/v2`
- URL: `https://api.newrelic.com/v2/alerts_violations.json`
- Auth: API key in header `Api-Key`
- TypeScript: <https://skmtc.dev/newrelic/apis/new-relic-rest-api-v2/docs/alerts_violations.json/get.ts> (a function with typed inputs; its response is checked against the schema)

<strong>🔥 This endpoint will be deprecated after 2024/01 🔥</strong> New users should use <a href="https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/alerts-nerdgraph/nerdgraph-api-examples/">these docs about managing alerts via NerdGraph.</a>

<p>This API endpoint works with new Alerts on alerts.newrelic.com.</p>

<p>It returns a list of the violations associated with your New Relic account.</p>

<p>See our documentation for a discussion on <a href="https://docs.newrelic.com/docs/apis/rest-api-v2/requirements/pagination-api-output" target="_blank">
output pagination</a>.</p>

## Query parameters

- `page` integer
- `start_date` string, date-time
- `end_date` string, date-time
- `only_open` boolean

## Response `200`

No response was specified

- ViolationResponse
  - `violation` ViolationResponseType
    - `closed_at` integer
    - `condition_name` string
    - `duration` integer
    - `entity` ViolationEntityResponse
      - `group_id` integer
      - `id` integer
      - `name` string
      - `product` string
      - `type` string
    - `id` integer
    - `label` string
    - `links` ViolationLinksResponse
      - `condition_id` integer
      - `incident_id` integer
      - `policy_id` integer
    - `opened_at` integer
    - `policy_name` string
    - `priority` string

---

[API](https://skmtc.dev/newrelic/apis/new-relic-rest-api-v2.md) - [All operations](https://skmtc.dev/newrelic/apis/new-relic-rest-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/newrelic/apis/new-relic-rest-api-v2/revisions/cf1843ad0a45?raw)
