# What is the "severity" field in the alerts table, and how can I use it?

**URL:** <https://community.grafana.com/t/what-is-the-severity-field-in-the-alerts-table-and-how-can-i-use-it/6660>\
**Category:** General\
**Tags:** api\
**Created:** [April 6, 2018, 6:20pm UTC](https://community.grafana.com/t/what-is-the-severity-field-in-the-alerts-table-and-how-can-i-use-it/6660 "2018-04-06T18:20:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctote](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/ctote/32/2282_2.png) [@ctote](https://community.grafana.com/u/ctote)\
**Post date:** [April 6, 2018, 6:20pm UTC](https://community.grafana.com/t/what-is-the-severity-field-in-the-alerts-table-and-how-can-i-use-it/6660/1 "2018-04-06T18:20:05Z")

</div>

When calling the [alerts](http://docs.grafana.org/http_api/alerting/#get-alerts) API, I see the following fields:

```
{
    "dashboardId": 6,
    "dashboardSlug": "sandbox",
    "dashboardUid": "GzKT10mmk",
    "evalData": null,
    "evalDate": "0001-01-01T00:00:00Z",
    "executionError": "",
    "id": 2,
    "name": "{stats} Test Lambda Alert",
    "newStateDate": "2018-04-06T13:53:15-04:00",
    "panelId": 2,
    "state": "ok",
    "url": "/d/GzKT10mmk/sandbox"
},

```

However, when I inspect the DB, there’s a field, `severity` – it’s unset for all alerts. Can I use this somehow via the API? What’s its designated purpose?

---

<div class="post-metadata">

**Author:** ![ctote](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/ctote/32/2282_2.png) [@ctote](https://community.grafana.com/u/ctote)\
**Post date:** [April 6, 2018, 6:26pm UTC](https://community.grafana.com/t/what-is-the-severity-field-in-the-alerts-table-and-how-can-i-use-it/6660/2 "2018-04-06T18:26:57Z")

</div>

I think I’ve found the purpose of the severity field - I’d still like to know if there’s a way to access / set it via the API though?
