Skip to main content

PagerDuty Component

PagerDuty is a platform for managing on-call operations. This component supports PagerDuty REST API V2.

Component key: pagerduty

Description

PagerDuty is an industry leading incident management tool.

Use the component to create and manage Incidents, events, and more.

API Documentation:

The component was built using the PagerDuty REST API

Connections

Api Key

Steps to generate and use an API Key for PagerDuty:

  1. Log in to PagerDuty and navigate to Integrations | API Access Keys.
  2. Click the "Create New API Key" button.
  3. Enter a description for the API key. Check "Read-only API Key" if read-only behavior is desired.
  4. Click Create Key.
  5. Copy the provided API Key into the connection configuration in Prismatic.

OAuth 2.0

Steps to generate app credentials for OAuth 2.0 for PagerDuty:

  1. Log in to PagerDuty and navigate to Integrations | App Registration.
  2. From the top menu, select Integrations.
  3. Select App Registration from the menu to navigate to the My Apps page.
  4. On the My Apps page, select New App. Enter a name for your app and a brief description.
  5. Check the box next to OAuth2.0 and/or Events Integration.
  6. For Authorization select one of the following:
    1. Scoped OAuth - New OAuth client that allows granular read or write access to PagerDuty resources like incidents, services, users, with other benefits.
      1. Use the table below to select Read or Write access to each Resource your integration will need access to.
    2. Classic User OAuth - Existing OAuth client that allows apps to act on behalf of users, with read or write to all PagerDuty resources.
      1. Assign a permission scope of Read or Read and Write
  7. In the Redirect URL field enter https://oauth2.prismatic.io/callback for US based integrations
    1. For integrations outside the US refer to this guide to find your region’s Callback URL.
  8. Select Register App
  9. Copy and save the Client ID and Client Secret into your integration.

Triggers

Incidents Trigger

Handle Incident webhook notifications from PagerDuty. | key: incidentsTrigger


Service Trigger

Handle Service webhook notifications from PagerDuty. | key: serviceTrigger


Data Sources

Select Incident

Retrieve and select an incident. | key: selectIncident | type: picklist


Select Service

Retrieve and select a service. | key: selectService | type: picklist


Select Template

Retrieve and select a template. | key: selectTemplate | type: picklist


Select User

Retrieve and select a user. | key: selectUser | type: picklist


Actions

Create Incident

Create an Incident | key: createIncident

{
"data": {
"incident": {
"id": "PT4KHLK",
"type": "incident",
"title": "The server is on fire.",
"summary": "[#1234] The server is on fire.",
"self": "https://api.pagerduty.com/incidents/PT4KHLK",
"html_url": "https://subdomain.pagerduty.com/incidents/PT4KHLK",
"incident_number": 1234,
"created_at": "2015-10-06T21:30:42Z",
"updated_at": "2015-10-06T21:40:23Z",
"status": "triggered",
"incident_key": "baf7cf21b1da41b4b0221008339ff357",
"service": {
"id": "PWIXJZS",
"type": "service_reference",
"summary": "My Mail Service",
"self": "https://api.pagerduty.com/services/PWIXJZS",
"html_url": "https://subdomain.pagerduty.com/service-directory/PWIXJZS"
},
"priority": {
"id": "P53ZZH5",
"type": "priority_reference",
"summary": "P2",
"self": "https://api.pagerduty.com/priorities/P53ZZH5"
},
"assigned_via": "escalation_policy",
"assignments": [
{
"at": "2015-11-10T00:31:52Z",
"assignee": {
"id": "PXPGF42",
"type": "user_reference",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42"
}
}
],
"resolved_at": null,
"last_status_change_at": "2015-10-06T21:38:23Z",
"last_status_change_by": {
"id": "PXPGF42",
"type": "user_reference",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42"
},
"first_trigger_log_entry": {
"id": "Q02JTSNZWHSEKV",
"type": "trigger_log_entry_reference",
"summary": "Triggered through the API",
"self": "https://api.pagerduty.com/log_entries/Q02JTSNZWHSEKV?incident_id=PT4KHLK",
"html_url": "https://subdomain.pagerduty.com/incidents/PT4KHLK/log_entries/Q02JTSNZWHSEKV"
},
"incident_type": {
"name": "major_incident"
},
"escalation_policy": {
"id": "PT20YPA",
"type": "escalation_policy_reference",
"summary": "Another Escalation Policy",
"self": "https://api.pagerduty.com/escalation_policies/PT20YPA",
"html_url": "https://subdomain.pagerduty.com/escalation_policies/PT20YPA"
},
"teams": [
{
"id": "PQ9K7I8",
"type": "team_reference",
"summary": "Engineering",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8"
}
],
"urgency": "high"
}
}
}

Create Incident Note

Create a note on an incident | key: createIncidentNote

{
"data": {
"note": {
"id": "PWL7QXS",
"user": {
"id": "PXPGF42",
"type": "user_reference",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42"
},
"channel": {
"summary": "The PagerDuty website or APIs"
},
"content": "Firefighters are on the scene.",
"created_at": "2013-03-06T15:28:51-05:00"
}
}
}

Create Service

Create a service | key: createService

{
"data": {
"service": {
"id": "PIJ90N7",
"summary": "My Application Service",
"type": "service",
"self": "https://api.pagerduty.com/services/PIJ90N7",
"html_url": "https://subdomain.pagerduty.com/service-directory/PIJ90N7",
"name": "My Application Service",
"auto_resolve_timeout": 14400,
"acknowledgement_timeout": 600,
"created_at": "2015-11-06T11:12:51-05:00",
"status": "active",
"alert_creation": "create_alerts_and_incidents",
"integrations": [
{
"id": "PQ12345",
"type": "generic_email_inbound_integration_reference",
"summary": "Email Integration",
"self": "https://api.pagerduty.com/services/PIJ90N7/integrations/PQ12345",
"html_url": "https://subdomain.pagerduty.com/services/PIJ90N7/integrations/PQ12345"
}
],
"escalation_policy": {
"id": "PT20YPA",
"type": "escalation_policy_reference",
"summary": "Another Escalation Policy",
"self": "https://api.pagerduty.com/escalation_policies/PT20YPA",
"html_url": "https://subdomain.pagerduty.com/escalation_policies/PT20YPA"
},
"teams": [
{
"id": "PQ9K7I8",
"type": "team_reference",
"summary": "Engineering",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8"
}
],
"incident_urgency_rule": {
"type": "use_support_hours",
"during_support_hours": {
"type": "constant",
"urgency": "high"
},
"outside_support_hours": {
"type": "constant",
"urgency": "low"
}
},
"support_hours": {
"type": "fixed_time_per_day",
"time_zone": "America/Lima",
"start_time": "09:00:00",
"end_time": "17:00:00",
"days_of_week": [
1,
2,
3,
4,
5
]
},
"scheduled_actions": [
{
"type": "urgency_change",
"at": {
"type": "named_time",
"name": "support_hours_start"
},
"to_urgency": "high"
}
],
"auto_pause_notifications_parameters": {
"enabled": true,
"timeout": 300
}
}
}
}

Create Template

Create a template in PagerDuty's API | key: createTemplate

{
"data": {
"template": {
"created_at": "2022-08-19T13:46:22Z",
"created_by": {
"id": "PF9KMXH",
"self": "https://api.pagerduty.com/users/PF9KMXH",
"type": "user_reference"
},
"description": "Sample template description",
"templated_fields": {
"email_body": "<div> sample </div>",
"email_subject": "Sample email Subject",
"message": "Sample SMS message"
},
"id": "PCCR863",
"name": "Sample Template",
"self": "https://api.pagerduty.com/templates/PCCR863",
"template_type": "status_update",
"type": "template",
"updated_at": "2022-08-19T13:46:22Z",
"updated_by": {
"id": "PF9KMXH",
"self": "https://api.pagerduty.com/users/PF9KMXH",
"type": "user_reference"
}
}
}
}

Create User

Create a user | key: createUser

{
"data": {
"user": {
"id": "PXPGF42",
"type": "user",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42",
"name": "Earline Greenholt",
"email": "125.greenholt.earline@graham.name",
"time_zone": "America/Lima",
"color": "green",
"role": "admin",
"avatar_url": "https://secure.gravatar.com/avatar/a8b714a39626f2444ee05990b078995f.png?d=mm&r=PG",
"description": "I'm the boss",
"invitation_sent": false,
"contact_methods": [
{
"id": "PTDVERC",
"type": "email_contact_method_reference",
"summary": "Default",
"self": "https://api.pagerduty.com/users/PXPGF42/contact_methods/PTDVERC"
}
],
"notification_rules": [
{
"id": "P8GRWKK",
"type": "assignment_notification_rule_reference",
"summary": "Default",
"self": "https://api.pagerduty.com/users/PXPGF42/notification_rules/P8GRWKK",
"html_url": null
}
],
"job_title": "Director of Engineering",
"teams": [
{
"id": "PQ9K7I8",
"type": "team_reference",
"summary": "Engineering",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8"
}
]
}
}
}

Create Webhook Subscription

Create a webhook subscription | key: createWebhookSubscription

{
"data": {
"webhook_subscription": {
"delivery_method": {
"id": "PF9KMXH",
"secret": null,
"temporarily_disabled": false,
"type": "http_delivery_method",
"url": "https://example.com/receive_a_pagerduty_webhook",
"custom_headers": [
{
"name": "your-header-name",
"value": "-- redacted --"
}
]
},
"description": "Sends PagerDuty v3 webhook events somewhere interesting.",
"events": [
"incident.acknowledged",
"incident.annotated",
"incident.delegated",
"incident.escalated",
"incident.priority_updated",
"incident.reassigned",
"incident.reopened",
"incident.resolved",
"incident.responder.added",
"incident.responder.replied",
"incident.triggered",
"incident.unacknowledged"
],
"filter": {
"id": "P393ZNQ",
"type": "service_reference"
},
"id": "PY1OL64",
"type": "webhook_subscription",
"active": true
}
}
}

Delete All Instance Webhooks

Delete all webhooks associated with this instance | key: deleteAllInstanceWebhooks


Delete Service

Delete a service | key: deleteService

{
"data": "Action successfully completed."
}

Delete Template

Delete a template | key: deleteTemplate

{
"data": {
"data": "Action successfully completed."
}
}

Delete User

Delete a user | key: deleteUser

{
"data": "Action successfully completed."
}

Delete Webhook Subscription

Delete a webhook subscription | key: deleteWebhookSubscription

{
"data": "Action successfully completed."
}

Enable Webhook Subscription

Enable a webhook subscription | key: enableWebhookSubscription

{
"data": {
"webhook_subscription": {
"delivery_method": {
"id": "PF9KMXH",
"secret": null,
"temporarily_disabled": false,
"type": "http_delivery_method",
"url": "https://example.com/receive_a_pagerduty_webhook",
"custom_headers": [
{
"name": "your-header-name",
"value": "-- redacted --"
}
]
},
"description": "Sends PagerDuty v3 webhook events somewhere interesting.",
"events": [
"incident.acknowledged",
"incident.annotated",
"incident.delegated",
"incident.escalated",
"incident.priority_updated",
"incident.reassigned",
"incident.reopened",
"incident.resolved",
"incident.responder.added",
"incident.responder.replied",
"incident.triggered",
"incident.unacknowledged"
],
"filter": {
"id": "P393ZNQ",
"type": "service_reference"
},
"id": "PY1OL64",
"type": "webhook_subscription",
"active": true
}
}
}

Get Change Event

Get a Change Event | key: getChangeEvent

{
"data": {
"change_event": {
"summary": "Build Success - Increase snapshot create timeout to 30 seconds",
"timestamp": "2020-07-17T08:42:58Z",
"type": "change_event",
"source": "acme-build-pipeline-tool-default-i-9999",
"integration": {
"id": "PEYSGVF",
"type": "inbound_integration_reference"
},
"services": [
{
"id": "PEYSGRV",
"type": "service_reference"
}
],
"custom_details": {
"build_state": "passed",
"build_number": "2",
"run_time": "1236s"
},
"links": [
{
"href": "https://acme.pagerduty.dev/build/2",
"text": "View more details in Acme!"
}
]
}
}
}

Get Incident

Get an incident | key: getIncident

{
"data": {
"incident": {
"id": "PT4KHLK",
"type": "incident",
"summary": "[#1234] The server is on fire.",
"self": "https://api.pagerduty.com/incidents/PT4KHLK",
"html_url": "https://subdomain.pagerduty.com/incidents/PT4KHLK",
"incident_number": 1234,
"title": "The server is on fire.",
"created_at": "2015-10-06T21:30:42Z",
"updated_at": "2015-10-06T21:40:23Z",
"status": "acknowledged",
"incident_key": "baf7cf21b1da41b4b0221008339ff357",
"service": {
"id": "PIJ90N7",
"type": "service_reference",
"summary": "My Mail Service",
"self": "https://api.pagerduty.com/services/PIJ90N7",
"html_url": "https://subdomain.pagerduty.com/service-directory/PIJ90N7"
},
"assignments": [
{
"at": "2015-11-10T00:31:52Z",
"assignee": {
"id": "PXPGF42",
"type": "user_reference",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42"
}
}
],
"assigned_via": "escalation_policy",
"last_status_change_at": "2015-10-06T21:38:23Z",
"resolved_at": null,
"first_trigger_log_entry": {
"id": "Q02JTSNZWHSEKV",
"type": "trigger_log_entry_reference",
"summary": "Triggered through the API",
"self": "https://api.pagerduty.com/log_entries/Q02JTSNZWHSEKV?incident_id=PT4KHLK",
"html_url": "https://subdomain.pagerduty.com/incidents/PT4KHLK/log_entries/Q02JTSNZWHSEKV"
},
"alert_counts": {
"all": 2,
"triggered": 1,
"resolved": 1
},
"is_mergeable": true,
"incident_type": {
"name": "incident_default"
},
"escalation_policy": {
"id": "PT20YPA",
"type": "escalation_policy_reference",
"summary": "Another Escalation Policy",
"self": "https://api.pagerduty.com/escalation_policies/PT20YPA",
"html_url": "https://subdomain.pagerduty.com/escalation_policies/PT20YPA"
},
"teams": [
{
"id": "PQ9K7I8",
"type": "team_reference",
"summary": "Engineering",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8"
}
],
"pending_actions": [
{
"type": "unacknowledge",
"at": "2015-11-10T01:02:52Z"
},
{
"type": "resolve",
"at": "2015-11-10T04:31:52Z"
}
],
"acknowledgements": [
{
"at": "2015-11-10T00:32:52Z",
"acknowledger": {
"id": "PXPGF42",
"type": "user_reference",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42"
}
}
],
"alert_grouping": {
"grouping_type": "advanced",
"started_at": "2015-10-06T21:30:42Z",
"ended_at": null,
"alert_grouping_active": true
},
"last_status_change_by": {
"id": "PXPGF42",
"type": "user_reference",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42"
},
"priority": {
"id": "P53ZZH5",
"type": "priority_reference",
"summary": "P2",
"self": "https://api.pagerduty.com/priorities/P53ZZH5"
},
"resolve_reason": null,
"conference_bridge": {
"conference_number": "+1-415-555-1212,,,,1234#",
"conference_url": "https://example.com/acb-123"
},
"incidents_responders": [
{
"state": "pending",
"user": {
"id": "PL7A2O4",
"type": "user_reference",
"summary": "Lee Turner",
"self": "https://api.pagerduty.com/users/PL7A2O4",
"html_url": "https://subdomain.pagerduty.com/users/PL7A2O4",
"avatar_url": "https://secure.gravatar.com/avatar/51c673f51f6b483b24c889bbafbd2a67.png?d=mm&r=PG"
},
"incident": {
"id": "PXP12GZ",
"type": "incident_reference",
"summary": "Ongoing Incident in Mailroom",
"self": "https://api.pagerduty.com/incidents/PXP12GZ",
"html_url": "https://subdomain.pagerduty.com/incidents/PXP12GZ"
},
"updated_at": "2018-08-09T14:40:48-07:00",
"message": "Please help with issue - join bridge at +1(234)-567-8910",
"requester": {
"id": "P09TT3C",
"type": "user_reference",
"summary": "Jane Doe",
"self": "https://api.pagerduty.com/users/P09TT3C",
"html_url": "https://subdomain.pagerduty.com/users/P09TT3C",
"avatar_url": "https://secure.gravatar.com/avatar/1c747247b75acc1f724e2784c838b3f8.png?d=mm&r=PG"
},
"requested_at": "2018-08-09T21:40:49Z"
}
],
"responder_requests": [
{
"incident": {
"id": "PXP12GZ",
"type": "incident_reference",
"summary": "Ongoing Incident in Mailroom",
"self": "https://api.pagerduty.com/incidents/PXP12GZ",
"html_url": "https://subdomain.pagerduty.com/incidents/PXP12GZ"
},
"requester": {
"id": "P09TT3C",
"type": "user_reference",
"summary": "Jane Doe",
"self": "https://api.pagerduty.com/users/P09TT3C",
"html_url": "https://subdomain.pagerduty.com/users/P09TT3C"
},
"requested_at": "2018-08-16T14:55:17-07:00",
"message": "Please help with issue - join bridge at +1(234)-567-8910",
"responder_request_targets": [
{
"responder_request_target": {
"type": "user",
"id": "PL7A2O4",
"incidents_responders": [
{
"state": "pending",
"user": {
"id": "PL7A2O4",
"type": "user_reference",
"summary": "Lee Turner",
"self": "https://api.pagerduty.com/users/PL7A2O4",
"html_url": "https://subdomain.pagerduty.com/users/PL7A2O4",
"avatar_url": "https://secure.gravatar.com/avatar/51c673f51f6b483b24c889bbafbd2a67.png?d=mm&r=PG"
},
"incident": {
"id": "PXP12GZ",
"type": "incident_reference",
"summary": "Ongoing Incident in Mailroom",
"self": "https://api.pagerduty.com/incidents/PXP12GZ",
"html_url": "https://subdomain.pagerduty.com/incidents/PXP12GZ"
},
"updated_at": "2018-08-09T14:40:48-07:00",
"message": "Please help with issue - join bridge at +1(234)-567-8910",
"requester": {
"id": "P09TT3C",
"type": "user_reference",
"summary": "Jane Doe",
"self": "https://api.pagerduty.com/users/P09TT3C",
"html_url": "https://subdomain.pagerduty.com/users/P09TT3C",
"avatar_url": "https://secure.gravatar.com/avatar/1c747247b75acc1f724e2784c838b3f8.png?d=mm&r=PG"
},
"requested_at": "2018-08-09T21:40:49Z"
}
]
}
}
]
}
],
"urgency": "high",
"custom_fields": [
{
"id": "PT4KHEE",
"type": "field_value",
"name": "environment",
"display_name": "Runtime Environment",
"description": "environment where incident occurred",
"data_type": "string",
"field_type": "single_value_fixed",
"value": "production"
}
]
}
}
}

Get Incident Alert

Get an alert | key: getIncidentAlert

{
"data": {
"alert": {
"id": "PT4KHLK",
"type": "alert",
"summary": "The server is on fire.",
"self": "https://api.pagerduty.com/incident/PT4KHLX/alerts/PT4KHLK",
"html_url": "https://subdomain.pagerduty.com/alerts/PT4KHLK",
"created_at": "2015-10-06T21:30:42Z",
"status": "resolved",
"alert_key": "baf7cf21b1da41b4b0221008339ff357",
"service": {
"id": "PIJ90N7",
"type": "service_reference",
"summary": "My Mail Service",
"self": "https://api.pagerduty.com/services/PIJ90N7",
"html_url": "https://subdomain.pagerduty.com/service-directory/PIJ90N7"
},
"incident": {
"id": "PT4KHLX",
"type": "incident_reference",
"summary": "[#1234] The server is on fire.",
"self": "https://api.pagerduty.com/incidents/PT4KHLX",
"html_url": "https://subdomain.pagerduty.com/incidents/PT4KHLX"
},
"suppressed": false,
"severity": "critical",
"integration": {
"id": "PQ12345",
"type": "generic_email_inbound_integration_reference",
"summary": "Email Integration",
"self": "https://api.pagerduty.com/services/PIJ90N7/integrations/PQ12345",
"html_url": "https://subdomain.pagerduty.com/services/PIJ90N7/integrations/PQ12345"
}
}
}
}

Get Service

Get a service | key: getService

{
"data": {
"service": {
"id": "PIJ90N7",
"type": "service",
"summary": "My Application Service",
"self": "https://api.pagerduty.com/services/PIJ90N7",
"html_url": "https://subdomain.pagerduty.com/service-directory/PIJ90N7",
"name": "My Application Service",
"auto_resolve_timeout": 14400,
"acknowledgement_timeout": 600,
"created_at": "2015-11-06T11:12:51-05:00",
"status": "active",
"alert_creation": "create_alerts_and_incidents",
"integrations": [
{
"id": "PQ12345",
"type": "generic_email_inbound_integration_reference",
"summary": "Email Integration",
"self": "https://api.pagerduty.com/services/PIJ90N7/integrations/PQ12345",
"html_url": "https://subdomain.pagerduty.com/services/PIJ90N7/integrations/PQ12345"
}
],
"escalation_policy": {
"id": "PT20YPA",
"type": "escalation_policy_reference",
"summary": "Another Escalation Policy",
"self": "https://api.pagerduty.com/escalation_policies/PT20YPA",
"html_url": "https://subdomain.pagerduty.com/escalation_policies/PT20YPA"
},
"teams": [
{
"id": "PQ9K7I8",
"type": "team_reference",
"summary": "Engineering",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8"
}
],
"incident_urgency_rule": {
"type": "use_support_hours",
"during_support_hours": {
"type": "constant",
"urgency": "high"
},
"outside_support_hours": {
"type": "constant",
"urgency": "low"
}
},
"support_hours": {
"type": "fixed_time_per_day",
"time_zone": "America/Lima",
"start_time": "09:00:00",
"end_time": "17:00:00",
"days_of_week": [
1,
2,
3,
4,
5
]
},
"scheduled_actions": [
{
"type": "urgency_change",
"at": {
"type": "named_time",
"name": "support_hours_start"
},
"to_urgency": "high"
}
],
"auto_pause_notifications_parameters": {
"enabled": true,
"timeout": 300
}
}
}
}

Get Template

Get a template | key: getTemplate

{
"data": {
"template": {
"created_at": "2022-12-30T16:00:00Z",
"created_by": {
"id": "PDZR4CN",
"self": "https://api.pagerduty.com/users/PDZR4CN",
"type": "user_reference"
},
"description": "Sample template description",
"templated_fields": {
"email_body": "<div> sample </div>",
"email_subject": "Sample email Subject",
"message": "Sample template message"
},
"id": "PBZUP2B",
"name": "Sample Template 160",
"self": "https://api.pagerduty.com/templates/PBZUP2B",
"template_type": "status_update",
"type": "template",
"updated_at": "2022-12-30T16:00:00Z",
"updated_by": {
"id": "PGY287N",
"self": "https://api.pagerduty.com/users/PGY287N",
"type": "user_reference"
}
}
}
}

Get User

Get a user | key: getUser

{
"data": {
"user": {
"id": "PXPGF42",
"type": "user",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42",
"name": "Earline Greenholt",
"email": "125.greenholt.earline@graham.name",
"time_zone": "America/Lima",
"color": "green",
"role": "admin",
"avatar_url": "https://secure.gravatar.com/avatar/a8b714a39626f2444ee05990b078995f.png?d=mm&r=PG",
"description": "I'm the boss",
"invitation_sent": false,
"contact_methods": [
{
"id": "PTDVERC",
"type": "email_contact_method_reference",
"summary": "Default",
"self": "https://api.pagerduty.com/users/PXPGF42/contact_methods/PTDVERC"
}
],
"notification_rules": [
{
"id": "P8GRWKK",
"type": "assignment_notification_rule_reference",
"summary": "Default",
"self": "https://api.pagerduty.com/users/PXPGF42/notification_rules/P8GRWKK",
"html_url": null
}
],
"job_title": "Director of Engineering",
"teams": [
{
"id": "PQ9K7I8",
"type": "team_reference",
"summary": "Engineering",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8"
}
]
}
}
}

Get Webhook Subscription

Get a webhook subscription | key: getWebhookSubscription

{
"data": {
"webhook_subscription": {
"delivery_method": {
"id": "PF9KMXH",
"secret": null,
"temporarily_disabled": false,
"type": "http_delivery_method",
"url": "https://example.com/receive_a_pagerduty_webhook",
"custom_headers": [
{
"name": "your-header-name",
"value": "-- redacted --"
}
]
},
"description": "Sends PagerDuty v3 webhook events somewhere interesting.",
"events": [
"incident.acknowledged",
"incident.annotated",
"incident.delegated",
"incident.escalated",
"incident.priority_updated",
"incident.reassigned",
"incident.reopened",
"incident.resolved",
"incident.responder.added",
"incident.responder.replied",
"incident.triggered",
"incident.unacknowledged"
],
"filter": {
"id": "P393ZNQ",
"type": "service_reference"
},
"id": "PY1OL64",
"type": "webhook_subscription",
"active": true
}
}
}

List Change Events

List Change Events | key: listChangeEvents

{
"data": {
"change_events": [
{
"summary": "Build Success - Increase snapshot create timeout to 30 seconds",
"id": "01BBYA6PEVW6A852BUO6QYUE7O",
"timestamp": "2020-07-17T08:42:58Z",
"type": "change_event",
"source": "acme-build-pipeline-tool-default-i-9999",
"integration": {
"id": "PEYSGVF",
"type": "inbound_integration_reference"
},
"services": [
{
"id": "PEYSGRV",
"type": "service_reference"
}
],
"custom_details": {
"build_state": "passed",
"build_number": "2",
"run_time": "1236s"
},
"links": [
{
"href": "https://acme.pagerduty.dev/build/2",
"text": "View more details in Acme!"
}
]
},
{
"summary": "Build Success - Increase snapshot create timeout to 15 seconds",
"id": "01BBYA6PDIXPL8KO1HPIUL9CZN",
"timestamp": "2020-07-17T07:42:58Z",
"type": "change_event",
"source": "acme-build-pipeline-tool-default-i-9999",
"integration": {
"id": "PEYSGVF",
"type": "inbound_integration_reference"
},
"services": [
{
"id": "PEYSGRV",
"type": "service_reference"
}
],
"custom_details": {
"build_state": "passed",
"build_number": "1",
"run_time": "1233s"
},
"links": [
{
"href": "https://acme.pagerduty.dev/build/1",
"text": "View more details in Acme!"
}
]
}
],
"limit": null,
"offset": null,
"total": null,
"more": false
}
}

List Incident Alerts

List alerts for an incident | key: listIncidentAlerts

{
"data": {
"alerts": [
{
"id": "PT4KHLK",
"type": "alert",
"summary": "The server is on fire.",
"self": "https://api.pagerduty.com/incidents/PT4KHLK/alerts/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/alerts/PXPGF42",
"created_at": "2015-10-06T21:30:42Z",
"status": "resolved",
"alert_key": "baf7cf21b1da41b4b0221008339ff357",
"service": {
"id": "PIJ90N7",
"type": "service_reference",
"summary": "My Mail Service",
"self": "https://api.pagerduty.com/services/PIJ90N7",
"html_url": "https://subdomain.pagerduty.com/service-directory/PIJ90N7"
},
"body": {
"type": "alert_body",
"contexts": [
{
"type": "link"
}
],
"details": {
"customKey": "Server is on fire!",
"customKey2": "Other stuff!"
}
},
"incident": {
"id": "PT4KHLK",
"type": "incident_reference"
},
"suppressed": false,
"severity": "critical",
"integration": {
"id": "PQ12345",
"type": "generic_email_inbound_integration_reference",
"summary": "Email Integration",
"self": "https://api.pagerduty.com/services/PIJ90N7/integrations/PQ12345",
"html_url": "https://subdomain.pagerduty.com/services/PIJ90N7/integrations/PQ12345"
}
}
],
"limit": 1,
"offset": 0,
"more": true
}
}

List Incident Notes

List notes for an incident | key: listIncidentNotes

{
"data": {
"notes": [
{
"id": "PWL7QXS",
"user": {
"id": "PXPGF42",
"type": "user_reference",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42"
},
"channel": {
"summary": "The PagerDuty website or APIs"
},
"content": "Firefighters are on the scene.",
"created_at": "2013-03-06T15:28:51-05:00"
},
{
"id": "PCQC25",
"user": {
"id": "PXPGF42",
"type": "bot_user_reference",
"summary": "A Global Event Rule",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/event-rules/global/0e84de00-9511-4380-9f4f-a7b568bb49a0/rules/14e56445-ebab-4dd0-ba9d-fc28a41b7e7b"
},
"channel": {
"id": "14e56445-ebab-4dd0-ba9d-fc28a41b7e7b",
"type": "event_rule_reference",
"summary": "A Global Event Rule",
"self": "https://api.pagerduty.com/rulesets/0e84de00-9511-4380-9f4f-a7b568bb49a0/rules/14e56445-ebab-4dd0-ba9d-fc28a41b7e7b",
"html_url": "https://subdomain.pagerduty.com/event-rules/global/0e84de00-9511-4380-9f4f-a7b568bb49a0/rules/14e56445-ebab-4dd0-ba9d-fc28a41b7e7b"
},
"content": "Initial alert information indicates a 1-alarm fire",
"created_at": "2013-03-06T15:28:42-05:00"
}
]
}
}

List Incidents

List incidents | key: listIncidents

{
"data": {
"incidents": [
{
"id": "PT4KHLK",
"type": "incident",
"summary": "[#1234] The server is on fire.",
"self": "https://api.pagerduty.com/incidents/PT4KHLK",
"html_url": "https://subdomain.pagerduty.com/incidents/PT4KHLK",
"incident_number": 1234,
"title": "The server is on fire.",
"created_at": "2015-10-06T21:30:42Z",
"updated_at": "2015-10-06T21:40:23Z",
"status": "resolved",
"incident_key": "baf7cf21b1da41b4b0221008339ff357",
"service": {
"id": "PIJ90N7",
"type": "service_reference",
"summary": "My Mail Service",
"self": "https://api.pagerduty.com/services/PIJ90N7",
"html_url": "https://subdomain.pagerduty.com/service-directory/PIJ90N7"
},
"assignments": [],
"assigned_via": "escalation_policy",
"last_status_change_at": "2015-10-06T21:38:23Z",
"resolved_at": "2015-10-06T21:38:23Z",
"first_trigger_log_entry": {
"id": "Q02JTSNZWHSEKV",
"type": "trigger_log_entry_reference",
"summary": "Triggered through the API",
"self": "https://api.pagerduty.com/log_entries/Q02JTSNZWHSEKV?incident_id=PT4KHLK",
"html_url": "https://subdomain.pagerduty.com/incidents/PT4KHLK/log_entries/Q02JTSNZWHSEKV"
},
"alert_counts": {
"all": 2,
"triggered": 0,
"resolved": 2
},
"is_mergeable": true,
"incident_type": {
"name": "incident_default"
},
"escalation_policy": {
"id": "PT20YPA",
"type": "escalation_policy_reference",
"summary": "Another Escalation Policy",
"self": "https://api.pagerduty.com/escalation_policies/PT20YPA",
"html_url": "https://subdomain.pagerduty.com/escalation_policies/PT20YPA"
},
"teams": [
{
"id": "PQ9K7I8",
"type": "team_reference",
"summary": "Engineering",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8"
}
],
"pending_actions": [],
"acknowledgements": [],
"alert_grouping": {
"grouping_type": "advanced",
"started_at": "2015-10-06T21:30:42Z",
"ended_at": null,
"alert_grouping_active": true
},
"last_status_change_by": {
"id": "PXPGF42",
"type": "user_reference",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42"
},
"priority": {
"id": "P53ZZH5",
"type": "priority_reference",
"summary": "P2",
"self": "https://api.pagerduty.com/priorities/P53ZZH5"
},
"resolve_reason": null,
"conference_bridge": {
"conference_number": "+1-415-555-1212,,,,1234#",
"conference_url": "https://example.com/acb-123"
},
"incidents_responders": [],
"responder_requests": [],
"urgency": "high"
}
],
"limit": 1,
"offset": 0,
"more": true
}
}

List Notifications

List notifications | key: listNotifications

{
"data": {
"notifications": [
{
"id": "PWL7QXS",
"type": "phone_notification",
"started_at": "2013-03-06T15:28:51-05:00",
"address": "+15555551234",
"user": {
"id": "PT23IWX",
"type": "user_reference",
"summary": "Tim Wright",
"self": "https://api.pagerduty.com/users/PT23IWX",
"html_url": "https://subdomain.pagerduty.com/users/PT23IWX"
}
},
{
"id": "PKN7NBH",
"type": "push_notification",
"started_at": "2013-03-06T15:28:51-05:00",
"user": {
"id": "PT23IWX",
"type": "user_reference",
"summary": "Tim Wright",
"self": "https://api.pagerduty.com/users/PT23IWX",
"html_url": "https://subdomain.pagerduty.com/users/PT23IWX"
}
}
],
"limit": 100,
"offset": 0,
"more": false,
"total": null
}
}

List Priorities

List priorities | key: listPriorities

{
"data": {
"priorities": [
{
"id": "PSLWBL8",
"type": "priority",
"summary": "P1",
"self": "https://api.pagerduty.com/priorities/PSLWBL8",
"name": "P1",
"description": "Critical issue that warrants public notification and liaison with executive teams"
},
{
"id": "P53ZZH5",
"type": "priority",
"summary": "P2",
"self": "https://api.pagerduty.com/priorities/P53ZZH5",
"name": "P2",
"description": "Critical system issue actively impacting many customers' ability to use the product"
},
{
"id": "PGE9YCZ",
"type": "priority",
"summary": "P3",
"self": "https://api.pagerduty.com/priorities/PGE9YCZ",
"name": "P3",
"description": "Stability or minor customer-impacting issues that require immediate attention from service owners"
},
{
"id": "PVJPWYW",
"type": "priority",
"summary": "P4",
"self": "https://api.pagerduty.com/priorities/PVJPWYW",
"name": "P4",
"description": "Minor issues requiring action, but not affecting customer ability to use the product"
},
{
"id": "P81SUUT",
"type": "priority",
"summary": "P5",
"self": "https://api.pagerduty.com/priorities/P81SUUT",
"name": "P5",
"description": "Cosmetic issues or bugs, not affecting customer ability to use the product"
}
],
"limit": 25,
"offset": 0,
"more": false,
"total": null
}
}

List Services

List services | key: listServices

{
"data": {
"services": [
{
"id": "PIJ90N7",
"summary": "My Application Service",
"type": "service",
"self": "https://api.pagerduty.com/services/PIJ90N7",
"html_url": "https://subdomain.pagerduty.com/service-directory/PIJ90N7",
"name": "My Application Service",
"auto_resolve_timeout": 14400,
"acknowledgement_timeout": 600,
"created_at": "2015-11-06T11:12:51-05:00",
"status": "active",
"alert_creation": "create_alerts_and_incidents",
"alert_grouping_parameters": {
"type": "intelligent"
},
"integrations": [
{
"id": "PQ12345",
"type": "generic_email_inbound_integration_reference",
"summary": "Email Integration",
"self": "https://api.pagerduty.com/services/PIJ90N7/integrations/PQ12345",
"html_url": "https://subdomain.pagerduty.com/services/PIJ90N7/integrations/PQ12345"
}
],
"escalation_policy": {
"id": "PT20YPA",
"type": "escalation_policy_reference",
"summary": "Another Escalation Policy",
"self": "https://api.pagerduty.com/escalation_policies/PT20YPA",
"html_url": "https://subdomain.pagerduty.com/escalation_policies/PT20YPA"
},
"teams": [
{
"id": "PQ9K7I8",
"type": "team_reference",
"summary": "Engineering",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8"
}
],
"incident_urgency_rule": {
"type": "use_support_hours",
"during_support_hours": {
"type": "constant",
"urgency": "high"
},
"outside_support_hours": {
"type": "constant",
"urgency": "low"
}
},
"support_hours": {
"type": "fixed_time_per_day",
"time_zone": "America/Lima",
"start_time": "09:00:00",
"end_time": "17:00:00",
"days_of_week": [
1,
2,
3,
4,
5
]
},
"scheduled_actions": [
{
"type": "urgency_change",
"at": {
"type": "named_time",
"name": "support_hours_start"
},
"to_urgency": "high"
}
],
"auto_pause_notifications_parameters": {
"enabled": true,
"timeout": 300
}
}
],
"limit": 25,
"offset": 0,
"more": false,
"total": null
}
}

List Templates

List all templates | key: getTemplates

{
"data": {
"limit": 25,
"more": false,
"offset": 0,
"templates": [
{
"created_at": "2022-12-30T16:00:00Z",
"created_by": {
"id": "PDZR4CN",
"self": "https://api.pagerduty.com/users/PDZR4CN",
"type": "user_reference"
},
"description": "Sample template description",
"id": "PBZUP2B",
"name": "Sample Template 160",
"self": "https://api.pagerduty.com/templates/PBZUP2B",
"template_type": "status_update",
"type": "template",
"updated_at": "2022-12-30T16:00:00Z",
"updated_by": {
"id": "PGY287N",
"self": "https://api.pagerduty.com/users/PGY287N",
"type": "user_reference"
}
}
],
"total": null
}
}

List Users

List all users | key: listUsers

{
"data": {
"users": [
{
"id": "PXPGF42",
"type": "user",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42",
"name": "Earline Greenholt",
"email": "125.greenholt.earline@graham.name",
"time_zone": "America/Lima",
"color": "green",
"role": "admin",
"avatar_url": "https://secure.gravatar.com/avatar/a8b714a39626f2444ee05990b078995f.png?d=mm&r=PG",
"description": "I'm the boss",
"invitation_sent": false,
"contact_methods": [
{
"id": "PTDVERC",
"type": "email_contact_method_reference",
"summary": "Default",
"self": "https://api.pagerduty.com/users/PXPGF42/contact_methods/PTDVERC"
}
],
"notification_rules": [
{
"id": "P8GRWKK",
"type": "assignment_notification_rule_reference",
"summary": "Default",
"self": "https://api.pagerduty.com/users/PXPGF42/notification_rules/P8GRWKK",
"html_url": null
}
],
"job_title": "Director of Engineering",
"teams": [
{
"id": "PQ9K7I8",
"type": "team_reference",
"summary": "Engineering",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8"
}
]
},
{
"id": "PAM4FGS",
"type": "user",
"summary": "Kyler Kuhn",
"self": "https://api.pagerduty.com/users/PAM4FGS",
"html_url": "https://subdomain.pagerduty.com/users/PAM4FGS",
"name": "Kyler Kuhn",
"email": "126_dvm_kyler_kuhn@beahan.name",
"time_zone": "Asia/Hong_Kong",
"color": "red",
"role": "admin",
"avatar_url": "https://secure.gravatar.com/avatar/47857d059adacf9a41dc4030c2e14b0a.png?d=mm&r=PG",
"description": "Actually, I am the boss",
"invitation_sent": false,
"contact_methods": [
{
"id": "PVMGSML",
"type": "email_contact_method_reference",
"summary": "Work",
"self": "https://api.pagerduty.com/users/PAM4FGS/contact_methods/PVMGSMLL"
}
],
"notification_rules": [
{
"id": "P8GRWKK",
"type": "assignment_notification_rule_reference",
"summary": "Default",
"self": "https://api.pagerduty.com/users/PXPGF42/notification_rules/P8GRWKK",
"html_url": null
}
],
"job_title": "Senior Engineer",
"teams": [
{
"id": "PQ9K7I8",
"type": "team_reference",
"summary": "Engineering",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8"
}
]
}
],
"limit": 25,
"offset": 0,
"more": false,
"total": null
}
}

List Webhook Subscriptions

List webhook subscriptions | key: listWebhookSubscriptions

{
"data": {
"webhook_subscriptions": [
{
"delivery_method": {
"id": "PF9KMXH",
"secret": null,
"type": "http_delivery_method",
"url": "https://example.com/receive_a_pagerduty_webhook",
"custom_headers": [
{
"name": "your-header-name",
"value": "-- redacted --"
}
]
},
"description": "Sends PagerDuty v3 webhook events somewhere interesting.",
"events": [
"incident.acknowledged",
"incident.annotated",
"incident.delegated",
"incident.escalated",
"incident.priority_updated",
"incident.reassigned",
"incident.resolved",
"incident.responder.added",
"incident.responder.replied",
"incident.triggered",
"incident.unacknowledged"
],
"filter": {
"id": "P393ZNQ",
"type": "service_reference"
},
"id": "PY1OL64",
"type": "webhook_subscription",
"active": true
}
],
"limit": 25,
"offset": 0,
"total": null,
"more": false
}
}

Manage Incident Alerts

Manage alerts | key: updateIncidentAlerts

{
"data": {
"alerts": [
{
"id": "PT4KHLK",
"type": "alert",
"summary": "The server is on fire.",
"self": "https://api.pagerduty.com/incidents/PT4KHLK/alerts/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/alerts/PXPGF42",
"created_at": "2015-10-06T21:30:42Z",
"status": "resolved",
"alert_key": "baf7cf21b1da41b4b0221008339ff357",
"service": {
"id": "PIJ90N7",
"type": "service_reference",
"summary": "My Mail Service",
"self": "https://api.pagerduty.com/services/PIJ90N7",
"html_url": "https://subdomain.pagerduty.com/service-directory/PIJ90N7"
},
"body": {
"type": "alert_body",
"contexts": [
{
"type": "link"
}
],
"details": {
"customKey": "Server is on fire!",
"customKey2": "Other stuff!"
}
},
"incident": {
"id": "PPVZH9X",
"type": "incident_reference"
},
"suppressed": false,
"severity": "critical"
}
],
"limit": 1,
"offset": 0,
"more": true
}
}

Manage Incidents

Manage Incidents | key: updateIncidents

{
"data": {
"incidents": [
{
"id": "PT4KHLK",
"type": "incident",
"summary": "[#1234] The server is on fire.",
"self": "https://api.pagerduty.com/incidents/PT4KHLK",
"html_url": "https://subdomain.pagerduty.com/incidents/PT4KHLK",
"incident_number": 1234,
"created_at": "2015-10-06T21:30:42Z",
"updated_at": "2015-10-06T21:40:23Z",
"status": "resolved",
"title": "The server is on fire.",
"alert_counts": {
"all": 2,
"triggered": 0,
"resolved": 2
},
"pending_actions": [
{
"type": "unacknowledge",
"at": "2015-11-10T01:02:52Z"
},
{
"type": "resolve",
"at": "2015-11-10T04:31:52Z"
}
],
"incident_key": "baf7cf21b1da41b4b0221008339ff357",
"service": {
"id": "PIJ90N7",
"type": "service_reference",
"summary": "My Mail Service",
"self": "https://api.pagerduty.com/services/PIJ90N7",
"html_url": "https://subdomain.pagerduty.com/service-directory/PIJ90N7"
},
"assigned_via": "escalation_policy",
"assignments": [
{
"at": "2015-11-10T00:31:52Z",
"assignee": {
"id": "PXPGF42",
"type": "user_reference",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42"
}
}
],
"acknowledgements": [
{
"at": "2015-11-10T00:32:52Z",
"acknowledger": {
"id": "PXPGF42",
"type": "user_reference",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42"
}
}
],
"resolved_at": "2015-10-06T21:38:23Z",
"last_status_change_at": "2015-10-06T21:38:23Z",
"last_status_change_by": {
"id": "PXPGF42",
"type": "user_reference",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42"
},
"first_trigger_log_entry": {
"id": "Q02JTSNZWHSEKV",
"type": "trigger_log_entry_reference",
"summary": "Triggered through the API",
"self": "https://api.pagerduty.com/log_entries/Q02JTSNZWHSEKV?incident_id=PT4KHLK",
"html_url": "https://subdomain.pagerduty.com/incidents/PT4KHLK/log_entries/Q02JTSNZWHSEKV"
},
"incident_type": {
"name": "major_incident"
},
"escalation_policy": {
"id": "PT20YPA",
"type": "escalation_policy_reference",
"summary": "Another Escalation Policy",
"self": "https://api.pagerduty.com/escalation_policies/PT20YPA",
"html_url": "https://subdomain.pagerduty.com/escalation_policies/PT20YPA"
},
"teams": [
{
"id": "PQ9K7I8",
"type": "team_reference",
"summary": "Engineering",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8"
}
],
"urgency": "high"
}
]
}
}

Raw Request

Issue a raw HTTP request | key: rawRequest


Render Template

Render a template | key: renderTemplate

{
"data": {
"templated_fields": {
"email_subject": "Update: Status update message",
"email_body": "<div class=\"test\">Status update message</div>",
"message": "Update: Status update message"
},
"warnings": [
{
"email_body": [
"{{incident.bad_value}} does not exist."
]
}
],
"errors": []
}
}

Send Change Event

Send Change Event to Events API | key: sendChangeEvent

{
"data": {
"status": "success",
"message": "Event processed",
"dedup_key": "srv01/HTTP"
}
}

Send Event

Sends PagerDuty a trigger event to report a new event | key: sendEvent

{
"data": {
"status": "success",
"message": "Event processed",
"dedup_key": "srv01/HTTP"
}
}

Test Webhook Subscription

Test a webhook subscription | key: testWebhookSubscription

{
"data": "Action successfully completed."
}

Update Change Event

Update a Change Event | key: updateChangeEvent

{
"data": {
"summary": "Build Success - Increase snapshot create timeout to 30 seconds",
"timestamp": "2020-07-17T08:42:58Z",
"type": "change_event",
"source": "acme-build-pipeline-tool-default-i-9999",
"integration": {
"id": "PEYSGVF",
"type": "inbound_integration_reference"
},
"services": [
{
"id": "PEYSGRV",
"type": "service_reference"
}
],
"custom_details": {
"build_state": "passed",
"build_number": "2",
"run_time": "1236s"
},
"links": [
{
"href": "https://acme.pagerduty.dev/build/2",
"text": "View more details in Acme!"
}
]
}
}

Update Incident

Update an incident | key: updateIncident

{
"data": {
"incident": {
"id": "PT4KHLK",
"type": "incident",
"summary": "[#1234] The server is on fire.",
"self": "https://api.pagerduty.com/incidents/PT4KHLK",
"html_url": "https://subdomain.pagerduty.com/incidents/PT4KHLK",
"incident_number": 1234,
"created_at": "2015-10-06T21:30:42Z",
"updated_at": "2015-10-06T21:40:23Z",
"status": "resolved",
"title": "The server is on fire.",
"pending_actions": [
{
"type": "unacknowledge",
"at": "2015-11-10T01:02:52Z"
},
{
"type": "resolve",
"at": "2015-11-10T04:31:52Z"
}
],
"incident_key": "baf7cf21b1da41b4b0221008339ff357",
"service": {
"id": "PIJ90N7",
"type": "service_reference",
"summary": "My Mail Service",
"self": "https://api.pagerduty.com/services/PIJ90N7",
"html_url": "https://subdomain.pagerduty.com/service-directory/PIJ90N7"
},
"priority": {
"id": "P53ZZH5",
"type": "priority_reference",
"summary": "P2",
"self": "https://api.pagerduty.com/priorities/P53ZZH5"
},
"assigned_via": "escalation_policy",
"assignments": [
{
"at": "2015-11-10T00:31:52Z",
"assignee": {
"id": "PXPGF42",
"type": "user_reference",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42"
}
}
],
"acknowledgements": [
{
"at": "2015-11-10T00:32:52Z",
"acknowledger": {
"id": "PXPGF42",
"type": "user_reference",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42"
}
}
],
"resolved_at": "2015-10-06T21:38:23Z",
"last_status_change_at": "2015-10-06T21:38:23Z",
"last_status_change_by": {
"id": "PXPGF42",
"type": "user_reference",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42"
},
"first_trigger_log_entry": {
"id": "Q02JTSNZWHSEKV",
"type": "trigger_log_entry_reference",
"summary": "Triggered through the API",
"self": "https://api.pagerduty.com/log_entries/Q02JTSNZWHSEKV?incident_id=PT4KHLK",
"html_url": "https://subdomain.pagerduty.com/incidents/PT4KHLK/log_entries/Q02JTSNZWHSEKV"
},
"incident_type": {
"name": "major_incident"
},
"escalation_policy": {
"id": "PT20YPA",
"type": "escalation_policy_reference",
"summary": "Another Escalation Policy",
"self": "https://api.pagerduty.com/escalation_policies/PT20YPA",
"html_url": "https://subdomain.pagerduty.com/escalation_policies/PT20YPA"
},
"teams": [
{
"id": "PQ9K7I8",
"type": "team_reference",
"summary": "Engineering",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8"
}
],
"urgency": "high"
}
}
}

Update Incident Alert

Update an incident alert | key: updateIncidentAlert

{
"data": {
"alert": {
"type": "alert",
"status": "resolved",
"incident": {
"id": "PEYSGVF",
"type": "incident_reference"
},
"body": {
"type": "alert_body",
"contexts": [
{
"type": "link"
}
],
"details": {
"customKey": "Server is on fire!",
"customKey2": "Other stuff!"
}
}
}
}
}

Update Service

Update a service | key: updateService

{
"data": {
"service": {
"id": "PIJ90N7",
"type": "service",
"summary": "My Application Service",
"self": "https://api.pagerduty.com/services/PIJ90N7",
"html_url": "https://subdomain.pagerduty.com/service-directory/PIJ90N7",
"name": "My Application Service",
"auto_resolve_timeout": 14400,
"acknowledgement_timeout": 600,
"created_at": "2015-11-06T11:12:51-05:00",
"status": "active",
"alert_creation": "create_alerts_and_incidents",
"alert_grouping_parameters": {
"type": "time",
"config": {
"timeout": 2
}
},
"integrations": [
{
"id": "PQ12345",
"type": "generic_email_inbound_integration_reference",
"summary": "Email Integration",
"self": "https://api.pagerduty.com/services/PIJ90N7/integrations/PQ12345",
"html_url": "https://subdomain.pagerduty.com/services/PIJ90N7/integrations/PQ12345"
}
],
"escalation_policy": {
"id": "PT20YPA",
"type": "escalation_policy_reference",
"summary": "Another Escalation Policy",
"self": "https://api.pagerduty.com/escalation_policies/PT20YPA",
"html_url": "https://subdomain.pagerduty.com/escalation_policies/PT20YPA"
},
"teams": [
{
"id": "PQ9K7I8",
"type": "team_reference",
"summary": "Engineering",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8"
}
],
"incident_urgency_rule": {
"type": "use_support_hours",
"during_support_hours": {
"type": "constant",
"urgency": "high"
},
"outside_support_hours": {
"type": "constant",
"urgency": "low"
}
},
"support_hours": {
"type": "fixed_time_per_day",
"time_zone": "America/Lima",
"start_time": "09:00:00",
"end_time": "17:00:00",
"days_of_week": [
1,
2,
3,
4,
5
]
},
"scheduled_actions": [
{
"type": "urgency_change",
"at": {
"type": "named_time",
"name": "support_hours_start"
},
"to_urgency": "high"
}
],
"auto_pause_notifications_parameters": {
"enabled": true,
"timeout": 300
}
}
}
}

Update Template

Update a template | key: updateTemplate

{
"data": {
"template": {
"created_at": "2022-08-19T13:46:22Z",
"created_by": {
"id": "PF9KMXH",
"self": "https://api.pagerduty.com/users/PF9KMXH",
"type": "user_reference"
},
"description": "Sample template description",
"templated_fields": {
"email_body": "<div> sample </div>",
"email_subject": "Sample email Subject",
"message": "Sample SMS message"
},
"id": "PCCR863",
"name": "Sample Template",
"self": "https://api.pagerduty.com/templates/PCCR863",
"template_type": "status_update",
"type": "template",
"updated_at": "2022-08-19T13:46:22Z",
"updated_by": {
"id": "PF9KMXH",
"self": "https://api.pagerduty.com/users/PF9KMXH",
"type": "user_reference"
}
}
}
}

Update User

Update a user | key: updateUser

{
"data": {
"user": {
"id": "PXPGF42",
"type": "user",
"summary": "Earline Greenholt",
"self": "https://api.pagerduty.com/users/PXPGF42",
"html_url": "https://subdomain.pagerduty.com/users/PXPGF42",
"name": "Earline Greenholt",
"email": "125.greenholt.earline@graham.name",
"time_zone": "America/Lima",
"color": "green",
"role": "admin",
"avatar_url": "https://secure.gravatar.com/avatar/a8b714a39626f2444ee05990b078995f.png?d=mm&r=PG",
"description": "I'm the boss",
"invitation_sent": false,
"contact_methods": [
{
"id": "PTDVERC",
"type": "email_contact_method_reference",
"summary": "Default",
"self": "https://api.pagerduty.com/users/PXPGF42/contact_methods/PTDVERC"
}
],
"notification_rules": [
{
"id": "P8GRWKK",
"type": "assignment_notification_rule_reference",
"summary": "Default",
"self": "https://api.pagerduty.com/users/PXPGF42/notification_rules/P8GRWKK",
"html_url": null
}
],
"job_title": "Director of Engineering",
"teams": [
{
"id": "PQ9K7I8",
"type": "team_reference",
"summary": "Engineering",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8"
}
]
}
}
}

Update Webhook Subscription

Update a webhook subscription | key: updateWebhookSubscription

{
"data": {
"webhook_subscription": {
"delivery_method": {
"id": "PF9KMXH",
"secret": null,
"temporarily_disabled": false,
"type": "http_delivery_method",
"url": "https://example.com/receive_a_pagerduty_webhook",
"custom_headers": [
{
"name": "your-header-name",
"value": "-- redacted --"
}
]
},
"description": "Sends PagerDuty v3 webhook events somewhere interesting.",
"events": [
"incident.acknowledged",
"incident.annotated",
"incident.delegated",
"incident.escalated",
"incident.priority_updated",
"incident.reassigned",
"incident.reopened",
"incident.resolved",
"incident.responder.added",
"incident.responder.replied",
"incident.triggered",
"incident.unacknowledged"
],
"filter": {
"id": "P393ZNQ",
"type": "service_reference"
},
"id": "PY1OL64",
"type": "webhook_subscription",
"active": true
}
}
}