# Create severity

Returns either a newly created severity, or validation errors.

[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/urgencies"
method = "POST"

[[body_param]]
name = "team_name"
description = "Required if using [global API token](https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-a-global-api-token) to specify the team which should own the resource"
required = false
type = "string"

[[body_param]]
name = "name"
description = "The name of this severity."
required = true
type = "string"

[[body_param]]
name = "sms"
description = "Whether to send SMS when a new incident is created."
required = true
type = "boolean"

[[body_param]]
name = "call"
description = "Whether to call when a new incident is created."
required = true
type = "boolean"

[[body_param]]
name = "email"
description = "Whether to send email when a new incident is created."
required = true
type = "boolean"

[[body_param]]
name = "push"
description = "Whether to send push notification when a new incident is created."
required = true
type = "boolean"

[[body_param]]
name = "critical_alert"
description = "Should we send a critical push notification that ignores the mute switch and Do not Disturb mode?"
required = false
type = "boolean"

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"

[[header]]
name = "Content_Type"
description = "application/json"
required = false
type = "string"
[/endpoint]


[responses]
[[response]]
status = 201
description = '''Returns newly created escalation policy'''
body = '''{
  "data": {
    "id": "789",
    "type": "urgency",
    "attributes": {
      "name": "New severity",
      "team_name": "Test team",
      "sms": false,
      "call": true,
      "email": false,
      "push": true
    }
}'''

[/responses]

#### Example cURL 

```shell
[label Example]
curl -X "POST" "https://uptime.betterstack.com/api/v2/urgencies/" \
-H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{ "name": "New severity", "sms": false, "call": true, "email": false, "push": true }'
```

[info]
#### Looking for the details of a specific parameter?
Explore [the list of all severities API parameters](https://betterstack.com/docs/uptime/api/severities-api-response-params/)
[/info]
