---
search:
  tags:
    - alerts
    - GET
seo:
  description: >-
    The same shape as GET /alert-rules, with the… Reference for the GET
    /api/v1/database-services/{id}/alert-rules endpoint in the TimescaleDB
    Enterprise API.
  noindex: true
sidebar:
  label: Get a service's alert rules
  badge: GET
title: Get a service's alert rules
type: openapi-operation
---
The same shape as GET /alert-rules, with the per-service rules only. The overrides of the service are in GET /database-services/&#123;id&#125;/alert-overrides.

`GET /api/v1/database-services/{id}/alert-rules`

**Responses**

- `200` — OK
- `default` — Error

Response example, 200:

```json
{
  "rules": [
    {
      "configurable": true,
      "defaultSeverity": "string",
      "enabled": true,
      "group": "infrastructure",
      "name": "string",
      "scope": "service",
      "severity": "string",
      "summary": "string",
      "threshold": {
        "default": 0,
        "label": "string",
        "max": 0,
        "min": 0,
        "unit": "percent",
        "value": 0
      }
    }
  ]
}
```
