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:
- Log in to PagerDuty and navigate to Integrations | API Access Keys.
- Click the "Create New API Key" button.
- Enter a description for the API key. Check "Read-only API Key" if read-only behavior is desired.
- Click Create Key.
- Copy the provided API Key into the connection configuration in Prismatic.
Input | Notes |
---|---|
Token password / Required apiKey |
OAuth 2.0
Steps to generate app credentials for OAuth 2.0 for PagerDuty:
- Log in to PagerDuty and navigate to Integrations | App Registration.
- From the top menu, select Integrations.
- Select App Registration from the menu to navigate to the My Apps page.
- On the My Apps page, select New App. Enter a name for your app and a brief description.
- Check the box next to OAuth2.0 and/or Events Integration.
- For Authorization select one of the following:
- Scoped OAuth - New OAuth client that allows granular read or write access to PagerDuty resources like incidents, services, users, with other benefits.
- Use the table below to select Read or Write access to each Resource your integration will need access to.
- Classic User OAuth - Existing OAuth client that allows apps to act on behalf of users, with read or write to all PagerDuty resources.
- Assign a permission scope of Read or Read and Write
- Scoped OAuth - New OAuth client that allows granular read or write access to PagerDuty resources like incidents, services, users, with other benefits.
- In the Redirect URL field enter
https://oauth2.prismatic.io/callback
for US based integrations- For integrations outside the US refer to this guide to find your region’s Callback URL.
- Select Register App
- Copy and save the Client ID and Client Secret into your integration.
Input | Default | Notes | Example |
---|---|---|---|
Authorize URL string / Required Hidden Field authorizeUrl | https://identity.pagerduty.com/oauth/authorize | The OAuth 2.0 Authorization URL for PagerDuty Code Grant | |
Client ID string / Required clientId | Client ID of your PagerDuty app | ||
Client Secret password / Required clientSecret | Client Secret of your PagerDuty app | ||
Scopes string / Required scopes | write | Classic User OAuth scope allowing read or read/write access to all resources. | write |
Token URL string / Required Hidden Field tokenUrl | https://identity.pagerduty.com/oauth/token | The OAuth 2.0 Token URL for PagerDuty Code Grant |
Triggers
Incidents Trigger
Handle Incident webhook notifications from PagerDuty. | key: incidentsTrigger
Input | Notes | Example |
---|---|---|
Connection connection / Required connection | ||
Incident Events string / Required Value List events | The events that trigger the webhook. | |
Filter ID string / Required filterId | The ID of the object being used as the filter. | sampleFilterId |
Filter Type string / Required filterType | The type of object being used as the filter. | |
Webhook Description string / Required webhookDescription | The description of the webhook. | This Is An Example Description |
Service Trigger
Handle Service webhook notifications from PagerDuty. | key: serviceTrigger
Input | Notes | Example |
---|---|---|
Connection connection / Required connection | ||
Service Events. string / Required Value List events | The events that trigger the webhook. | |
Filter ID string / Required filterId | The ID of the object being used as the filter. | sampleFilterId |
Filter Type string / Required filterType | The type of object being used as the filter. | |
Webhook Description string / Required webhookDescription | The description of the webhook. | This Is An Example Description |
Data Sources
Select Incident
Retrieve and select an incident. | key: selectIncident | type: picklist
Input | Notes |
---|---|
Connection connection / Required connection |
Select Service
Retrieve and select a service. | key: selectService | type: picklist
Input | Notes |
---|---|
Connection connection / Required connection |
Select Template
Retrieve and select a template. | key: selectTemplate | type: picklist
Input | Notes |
---|---|
Connection connection / Required connection |
Select User
Retrieve and select a user. | key: selectUser | type: picklist
Input | Notes |
---|---|
Connection connection / Required connection |
Actions
Create Incident
Create an Incident | key: createIncident
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Incident code / Required incident | JSON object body of the incident to be created |
Example Payload for Create Incident
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Incident ID string / Required id | The ID of the Incident | PT4KHLK | |
Note code / Required note | Note to create. |
Example Payload for Create Incident Note
{
"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
Input | Default | Notes |
---|---|---|
Connection connection / Required connection | ||
Debug Request boolean debug | false | Enabling this flag will log out the current request. |
Service code / Required service | JSON object body of the Service to create |
Example Payload for Create Service
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Template Object code / Required template | JSON object body of the new Template to be created |
Example Payload for Create Template
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
User code / Required user | JSON object body of the User to create. |
Example Payload for Create User
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Webhook Subscription code / Required webhookSubscription |
Example Payload for Create Webhook Subscription
{
"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
Input | Notes |
---|---|
Connection connection / Required connection |
Delete Service
Delete a service | key: deleteService
Input | Default | Notes |
---|---|---|
Connection connection / Required connection | ||
Debug Request boolean debug | false | Enabling this flag will log out the current request. |
Service ID string / Required id | The ID of the Service. |
Example Payload for Delete Service
{
"data": "Action successfully completed."
}
Delete Template
Delete a template | key: deleteTemplate
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Id string / Required id | The ID of the Template. | PBZUP2B |
Example Payload for Delete Template
{
"data": {
"data": "Action successfully completed."
}
}
Delete User
Delete a user | key: deleteUser
Input | Default | Notes |
---|---|---|
Connection connection / Required connection | ||
Debug Request boolean debug | false | Enabling this flag will log out the current request. |
Id string / Required id | The ID of the User to update. |
Example Payload for Delete User
{
"data": "Action successfully completed."
}
Delete Webhook Subscription
Delete a webhook subscription | key: deleteWebhookSubscription
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Webhook ID. string / Required id | The ID of the webhook. | sampleWebhookId |
Example Payload for Delete Webhook Subscription
{
"data": "Action successfully completed."
}
Enable Webhook Subscription
Enable a webhook subscription | key: enableWebhookSubscription
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Webhook ID. string / Required id | The ID of the webhook. | sampleWebhookId |
Example Payload for Enable Webhook Subscription
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Event Id string / Required id | The ID of the Change Event. | 12 |
Example Payload for Get Change Event
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Incident ID string / Required id | The ID of the Incident | PT4KHLK | |
Include string include | Array of additional details to include |
Example Payload for Get Incident
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Incident Alert ID string / Required alertId | The ID of the Incident Alert | PT4KHLK | |
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Incident ID string / Required id | The ID of the Incident | PT4KHLK |
Example Payload for Get Incident Alert
{
"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
Input | Default | Notes |
---|---|---|
Connection connection / Required connection | ||
Debug Request boolean debug | false | Enabling this flag will log out the current request. |
Service ID string / Required id | The ID of the Service. | |
Include string include | Array of additional details to include. |
Example Payload for Get Service
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Id string / Required id | The ID of the Template. | PBZUP2B |
Example Payload for Get Template
{
"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
Input | Default | Notes |
---|---|---|
Connection connection / Required connection | ||
Debug Request boolean debug | false | Enabling this flag will log out the current request. |
Id string / Required id | The ID of the User to update. | |
Include string include | Array of additional Models to include in response. |
Example Payload for Get User
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Webhook ID. string / Required id | The ID of the webhook. | sampleWebhookId |
Example Payload for Get Webhook Subscription
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Fetch All boolean fetchAll | false | Performs pagination on this endpoint. | true |
Integration Ids string Value List integrationIds | An array of integration IDs. | PEYSGVF | |
Limit string limit | The number of results per page. | 10 | |
Offset string offset | Offset to start pagination search results. | 18 | |
Since string since | The start of the date range over which you want to search, as a UTC ISO 8601 datetime string. | 2020-07-17T07:42:58Z | |
Team Ids string Value List teamIds | An array of team IDs. | PEYSGVF | |
Total boolean total | false | By default the total field in pagination responses is set to null to provide the fastest possible response times. Set total to true for the response to be populated. | |
Until string until | The end of the date range over which you want to search, as a UTC ISO 8601 datetime string. | 2020-07-17T07:42:58Z |
Example Payload for List Change Events
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Alert Key string alertKey | Alert de-duplication key | baf7cf21b1da41b4b0221008339ff357 | |
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Fetch All boolean fetchAll | false | Performs pagination on this endpoint. | true |
Incident ID string / Required id | The ID of the Incident | PT4KHLK | |
Include string Value List include | Array of additional details to include | ||
Limit string limit | The number of results per page. | 10 | |
Offset string offset | Offset to start pagination search results. | 18 | |
Sort By string sortBy | Used to specify both the field you wish to sort the results on (created_at/resolved_at), as well as the direction (asc/desc) of the results | ||
Statuses string Value List statuses | Return only incidents with the given statuses | ||
Total boolean total | false | By default the total field in pagination responses is set to null to provide the fastest possible response times. Set total to true for the response to be populated. |
Example Payload for List Incident Alerts
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Incident ID string / Required id | The ID of the Incident | PT4KHLK |
Example Payload for List Incident Notes
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Date Range string dateRange | When set to all, the since and until parameters and defaults are ignored | ||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Fetch All boolean fetchAll | false | Performs pagination on this endpoint. | true |
Incident Key string incidentKey | Incident de-duplication key | baf7cf21b1da41b4b0221008339ff357 | |
Include string Value List include | Array of additional details to include | ||
Limit string limit | The number of results per page. | 10 | |
Offset string offset | Offset to start pagination search results. | 18 | |
Service Ids string Value List serviceIds | Returns only the incidents associated with the passed service(s) | PIJ90N7 | |
Since string since | The start of the date range over which you want to search, as a UTC ISO 8601 datetime string. | 2020-07-17T07:42:58Z | |
Sort By string sortBy | Used to specify both the field you wish to sort the results on (incident_number/created_at/resolved_at/urgency), as well as the direction (asc/desc) of the results | ||
Statuses string Value List statuses | Return only incidents with the given statuses | ||
Team Ids string Value List teamIds | An array of team IDs. | PEYSGVF | |
Time Zone string timeZone | TZInfo-formatted time zone in which results will be rendered | ||
Total boolean total | false | By default the total field in pagination responses is set to null to provide the fastest possible response times. Set total to true for the response to be populated. | |
Until string until | The end of the date range over which you want to search, as a UTC ISO 8601 datetime string. | 2020-07-17T07:42:58Z | |
Urgencies string Value List urgencies | Return only incidents with this urgency | ||
User Ids string Value List userIds | Returns only the incidents currently assigned to the passed user(s) | PXPGF42 |
Example Payload for List Incidents
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Fetch All boolean fetchAll | false | Performs pagination on this endpoint. | true |
Filter string filter | Return notification of this type only | ||
Include string include | Array of additional details to include | ||
Limit string limit | The number of results per page. | 10 | |
Offset string offset | Offset to start pagination search results. | 18 | |
Since string / Required since | The start of the date range over which you want to search, as a UTC ISO 8601 datetime string. | 2020-07-17T07:42:58Z | |
Time Zone string timeZone | TZInfo-formatted time zone in which results will be rendered | ||
Total boolean total | false | By default the total field in pagination responses is set to null to provide the fastest possible response times. Set total to true for the response to be populated. | |
Until string / Required until | The end of the date range over which you want to search, as a UTC ISO 8601 datetime string. | 2020-07-17T07:42:58Z |
Example Payload for List Notifications
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Fetch All boolean fetchAll | false | Performs pagination on this endpoint. | true |
Limit string limit | The number of results per page. | 10 | |
Offset string offset | Offset to start pagination search results. | 18 | |
Total boolean total | false | By default the total field in pagination responses is set to null to provide the fastest possible response times. Set total to true for the response to be populated. |
Example Payload for List Priorities
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Fetch All boolean fetchAll | false | Performs pagination on this endpoint. | true |
Include string include | Array of additional details to include. | ||
Limit string limit | The number of results per page. | 10 | |
Name string name | Filters the results, showing only services with the specified name | My Service | |
Offset string offset | Offset to start pagination search results. | 18 | |
Query string query | Filters the result, showing only the records whose name matches the query. | sampleName | |
Sort By string sortBy | Used to specify the field you wish to sort the results on. | ||
Team Ids string Value List teamIds | An array of team IDs. | PEYSGVF | |
Time Zone string timeZone | TZInfo-formatted time zone in which results will be rendered | ||
Total boolean total | false | By default the total field in pagination responses is set to null to provide the fastest possible response times. Set total to true for the response to be populated. |
Example Payload for List Services
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Fetch All boolean fetchAll | false | Performs pagination on this endpoint. | true |
Limit string limit | The number of results per page. | 10 | |
Offset string offset | Offset to start pagination search results. | 18 | |
Query string query | Template name or description to search | Template Name 1 | |
Sort By string sortBy | created_at:asc | Used to specify both the field you wish to sort the results on (name/created_at), as well as the direction (asc/desc) of the results | |
Template Type string templateType | Filters templates by type. | status_update | |
Total boolean total | false | By default the total field in pagination responses is set to null to provide the fastest possible response times. Set total to true for the response to be populated. |
Example Payload for List Templates
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Fetch All boolean fetchAll | false | Performs pagination on this endpoint. | true |
Include string include | Array of additional Models to include in response. | ||
Limit string limit | The number of results per page. | 10 | |
Offset string offset | Offset to start pagination search results. | 18 | |
Query string query | Filters the result, showing only the records whose name matches the query. | sampleName | |
Team Ids string Value List teamIds | An array of team IDs. | PEYSGVF | |
Total boolean total | false | By default the total field in pagination responses is set to null to provide the fastest possible response times. Set total to true for the response to be populated. |
Example Payload for List Users
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Fetch All boolean fetchAll | false | Performs pagination on this endpoint. | true |
Filter Id string filterId | The ID of the resource to filter upon. | 123 | |
Filter Type string filterType | The type of resource to filter upon. | ||
Limit string limit | The number of results per page. | 10 | |
Offset string offset | Offset to start pagination search results. | 18 | |
Total boolean total | false | By default the total field in pagination responses is set to null to provide the fastest possible response times. Set total to true for the response to be populated. |
Example Payload for List Webhook Subscriptions
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Alerts code / Required alerts | An array of alert objects, including the parameters to update for each alert | ||
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Incident ID string / Required id | The ID of the Incident | PT4KHLK | |
Limit string limit | The number of results per page. | 10 | |
Offset string offset | Offset to start pagination search results. | 18 | |
Total boolean total | false | By default the total field in pagination responses is set to null to provide the fastest possible response times. Set total to true for the response to be populated. |
Example Payload for Manage Incident Alerts
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Incidents code / Required incidents | An array of incidents, including the parameters to update. | ||
Limit string limit | The number of results per page. | 10 | |
Offset string offset | Offset to start pagination search results. | 18 | |
Total boolean total | false | By default the total field in pagination responses is set to null to provide the fastest possible response times. Set total to true for the response to be populated. |
Example Payload for Manage Incidents
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Data string data | The HTTP body payload to send to the URL. | {"exampleKey": "Example Data"} | |
Debug Request boolean debugRequest | false | Enabling this flag will log out the current request. | |
File Data string Key Value List fileData | File Data to be sent as a multipart form upload. | [{key: "example.txt", value: "My File Contents"}] | |
File Data File Names string Key Value List fileDataFileNames | File names to apply to the file data inputs. Keys must match the file data keys above. | ||
Form Data string Key Value List formData | The Form Data to be sent as a multipart form upload. | [{"key": "Example Key", "value": new Buffer("Hello World")}] | |
Header string Key Value List headers | A list of headers to send with the request. | User-Agent: curl/7.64.1 | |
Max Retry Count string maxRetries | 0 | The maximum number of retries to attempt. Specify 0 for no retries. | |
Method string / Required method | The HTTP method to use. | ||
Query Parameter string Key Value List queryParams | A list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2. | ||
Response Type string / Required responseType | json | The type of data you expect in the response. You can request json, text, or binary data. | |
Retry On All Errors boolean retryAllErrors | false | If true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors. | |
Retry Delay (ms) string retryDelayMS | 0 | The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled. | |
Timeout string timeout | The maximum time that a client will await a response to its request | 2000 | |
URL string / Required url | This is the URL to call. | /sobjects/Account | |
Use Exponential Backoff boolean useExponentialBackoff | false | Specifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored. |
Render Template
Render a template | key: renderTemplate
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Id string / Required id | The ID of the Template. | PBZUP2B | |
Incident ID string / Required incidentId | The ID of the Incident | PT4KHLK | |
Update Message string updateMessage | An optional status update message that will be sent to the template. | Status update message |
Example Payload for Render Template
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Change Event To Send code / Required event | The JSON object body of the event. |
Example Payload for Send Change Event
{
"data": {
"status": "success",
"message": "Event processed",
"dedup_key": "srv01/HTTP"
}
}
Send Event
Sends PagerDuty a trigger event to report a new event | key: sendEvent
Input | Default | Notes | Example |
---|---|---|---|
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Event to Send code / Required event | The JSON object body of the event. |
Example Payload for Send Event
{
"data": {
"status": "success",
"message": "Event processed",
"dedup_key": "srv01/HTTP"
}
}
Test Webhook Subscription
Test a webhook subscription | key: testWebhookSubscription
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Webhook ID. string / Required id | The ID of the webhook. | sampleWebhookId |
Example Payload for Test Webhook Subscription
{
"data": "Action successfully completed."
}
Update Change Event
Update a Change Event | key: updateChangeEvent
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Change Event to Update code / Required event | The JSON object body of the event. | ||
Event Id string / Required id | The ID of the Change Event. | 12 |
Example Payload for Update Change Event
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Incident ID string / Required id | The ID of the Incident | PT4KHLK | |
Incident code / Required incident | The parameters of the incident to update |
Example Payload for Update Incident
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Alerts code / Required alert | An array of alert objects, including the parameters to update for each alert | ||
Incident Alert ID string / Required alertId | The ID of the Incident Alert | PT4KHLK | |
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Incident ID string / Required id | The ID of the Incident | PT4KHLK |
Example Payload for Update Incident Alert
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Service ID string / Required id | The ID of the Service. | ||
Service code / Required service | JSON object body of the Service to update |
Example Payload for Update Service
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Id string / Required id | The ID of the Template. | PBZUP2B | |
Template code / Required template | JSON object body of the Template to be updated |
Example Payload for Update Template
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Id string / Required id | The ID of the User to update. | ||
User code / Required user | JSON object body of the User to create. |
Example Payload for Update User
{
"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
Input | Default | Notes | Example |
---|---|---|---|
Connection connection / Required connection | |||
Debug Request boolean debug | false | Enabling this flag will log out the current request. | |
Webhook ID. string / Required id | The ID of the webhook. | sampleWebhookId | |
Update Webhook Payload code / Required webhookSubscription | The updated webhook subscription object. |
Example Payload for Update Webhook Subscription
{
"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
}
}
}