Explore documentation

Create a PagerDuty integration

Returns either a newly created PagerDuty integration, or validation errors.

POST https://uptime.betterstack.com/api/v2/pager-duty-webhooks

Headers

Authorization
required string
Content_Type
string

Body parameters

team_name
string
name
string
*
201

Response body

{
  "data": {
    "id": "17",
    "type": "pager_duty_webhook",
    "attributes": {
      "name": "Test",
      "key": "[key]",
      "team_name": "My team"
    }
  }
}

Example cURL

Example
curl -X "POST" "https://uptime.betterstack.com/api/v2/pager-duty-webhooks/" \
     -H "Authorization: Bearer $TOKEN" \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "name": "Test",
  "key": "[key]"
}'