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

name
string
*
201

Response body

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

Example cURL

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