# Get PagerDuty integration

Returns a single PagerDuty integration by ID.

[endpoint]
base_url = "https://incidents.betterstack.com"
path = "/api/v2/pager-duty-webhooks/{pager_duty_webhook_id}"
method = "GET"

[[path_param]]
name = "pager_duty_webhook_id"
description = "The ID of the PagerDuty integration you want to get."
required = true
type = "string"

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

[responses]
[[response]]
status = 200
description = '''Returns a single PagerDuty integration'''
body = '''{
  "data": {
    "id": "17",
    "type": "pager_duty_webhook",
    "attributes": {
      "name": "PagerDuty alerts",
      "key": "[key]",
      "severity": "critical",
      "notify_alongside_primary_responder": true,
      "team_name": "My team"
    }
  }
}'''

[/responses]

[params]
title = "Response attributes"

[[param]]
name = "id"
type = "string"
description = "The ID of the PagerDuty integration."

[[param]]
name = "type"
type = "string"
description = "Always `pager_duty_webhook`."

[[param]]
name = "attributes.name"
type = "string"
description = "The name of the PagerDuty integration shown in the dashboard."

[[param]]
name = "attributes.key"
type = "string"
description = "The PagerDuty routing key that events are sent with."

[[param]]
name = "attributes.severity"
type = "string"
description = "The severity of PagerDuty alerts created for new incidents: `info`, `warning`, `error`, or `critical`."

[[param]]
name = "attributes.notify_alongside_primary_responder"
type = "boolean"
description = "Whether to notify this integration alongside the primary responder when no escalation policy is configured."

[[param]]
name = "attributes.team_name"
type = "string"
description = "The team this integration belongs to."
[/params]

#### Example cURL 

```shell
[label Example]
curl --request GET \
  --url https://incidents.betterstack.com/api/v2/pager-duty-webhooks/17 \
  --header "Authorization: Bearer $TOKEN"
```
