{"_id":"59ca65e54bec1e0010fe8114","project":"564e5930c3553e0d003e53d0","version":{"_id":"564e5a9b1560880d008d30dc","project":"564e5930c3553e0d003e53d0","__v":22,"createdAt":"2015-11-19T23:26:19.166Z","releaseDate":"2015-11-19T23:26:19.166Z","categories":["564e5a9b1560880d008d30dd","566318e1f5ca460d00f41896","56631d08cd54d50d005015fa","56631d2a81ad7417006a202c","5668ba19fbd7680d009375f4","5668cb8b10bda80d00797ed9","5668cb9d10bda80d00797eda","56830d8a3f94e00d004e2a7a","56830d9072bb720d0091f594","56830d94cb4d190d0027698e","56830dc44aecbd0d00a464c5","569e90f3c9b43e0d00c4bab1","56a96d338791090d00113bab","56b12d8336d2580d00247877","56c36bf0a869d017002ea55b","56c36bf93d30210d00ea84bb","56c77749b935671700ff0304","56c7ab9e5652c217008e091a","56cb8bdad5c6241d00ef5e61","58aefce02470660f00b54539","58aefd0bebd7370f0078b954","59ca65ca4337830026edf24f"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Foundation","version_clean":"2.0.0","version":"2"},"category":{"_id":"59ca65ca4337830026edf24f","project":"564e5930c3553e0d003e53d0","version":"564e5a9b1560880d008d30dc","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-09-26T14:35:54.237Z","from_sync":false,"order":5,"slug":"webhooks-v2","title":"Webhooks v2"},"user":"59c9098e8605f7001a9c449f","githubsync":"","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-09-26T14:36:21.627Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"Webhooks let you receive HTTP callbacks when interesting events happen within your PagerDuty account. Details surrounding the interesting event will be sent via HTTP POST to a URL that you specify.\n\nPagerDuty currently supports incident-based webhooks. After adding a webhook URL to a PagerDuty service, the triggering of new incidents on that service will cause outgoing webhook messages to be sent to that URL. In addition, certain interesting changes to an incident's state will cause other types of incident webhook messages to be sent. Generally, any change to the `status` or `assignees` of an incident will cause an outgoing message to be sent.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Webhook Payload\"\n}\n[/block]\nWebhook recipients receive a payload containing a single `messages` array that may contain multiple `message` elements if webhook firing actions occurred in quick succession. Each `message` in the array consists of four fields:\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Field name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"`id`\",\n    \"1-0\": \"`event`\",\n    \"2-0\": \"`created_on`\",\n    \"3-0\": \"`incident`\",\n    \"0-1\": \"[UUID](doc:types#uuid)\",\n    \"0-2\": \"Uniquely identifies this outgoing webhook message; can be used for idempotency when processing the messages.\",\n    \"1-1\": \"[String](doc:types#string)\",\n    \"2-1\": \"[DateTime](doc:types#datetime)\",\n    \"3-1\": \"[Object](doc:types#object)\",\n    \"1-2\": \"The [webhook event type](#webhook-types).\",\n    \"2-2\": \"The date/time when the incident changed state.\",\n    \"3-2\": \"The [incident details](#incident-details) at the time of the state change.\",\n    \"4-0\": \"`webhook`\",\n    \"4-1\": \"[Object](doc:types#object)\",\n    \"4-2\": \"The webhook configuration which resulted in this message.\",\n    \"5-0\": \"`log_entries`\",\n    \"5-1\": \"[Array](doc:types#object)\",\n    \"5-2\": \"[Log entries](#log-entries) that correspond to the action this Webhook is reporting. There will be only one `log_entry` type object in the array for `incident.trigger`, `incident.acknowledge` and `incident.resolve` type webhooks. For `incident.escalate` webhooks where there were more than one target, there will be one entry in this array for each escalation target.\"\n  },\n  \"cols\": 3,\n  \"rows\": 6\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Incident Details\"\n}\n[/block]\nFor incident webhooks, the `incident` field contains a representation of the incident associated with the action that caused this webhook message.\n\nThe fields below can be expected to be found in the incident data. Refer to the [webhook examples](#examples) to see what the data looks like in practice.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Field\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"`id`\",\n    \"0-1\": \"[String](doc:types#string)\",\n    \"0-2\": \"The incident's id, which can be used to find it in the REST API.\",\n    \"1-0\": \"`incident_number`\",\n    \"1-1\": \"[Integer](doc:types#integer)\",\n    \"1-2\": \"The number of the incident. This is unique across the account.\",\n    \"3-0\": \"`created_at`\",\n    \"3-1\": \"[DateTime](doc:types#datetime)\",\n    \"3-2\": \"The date/time the incident was first triggered.\",\n    \"4-0\": \"`status`\",\n    \"4-2\": \"The current status of the incident. One of \\\"triggered\\\", \\\"acknowledged\\\", or \\\"resolved\\\".\",\n    \"4-1\": \"[String](doc:types#string)\",\n    \"6-0\": \"`html_url`\",\n    \"6-1\": \"[URL](doc:types#url)\",\n    \"8-0\": \"`service`\",\n    \"8-1\": \"[Object](doc:types#object)\",\n    \"8-2\": \"A representation of the PagerDuty service that the incident belongs to. See the [webhook examples](#examples) for what the `service` object looks like.\",\n    \"9-0\": \"`assignments`\",\n    \"9-1\": \"[Array](doc:types#array)\",\n    \"9-2\": \"A list of users assigned to the incident at the time of the webhook action. Each entry in the array indicates when the user was assigned.\",\n    \"11-0\": \"`last_status_change_at`\",\n    \"11-1\": \"[DateTime](doc:types#datetime)\",\n    \"11-2\": \"The time at which the status of the incident last changed.\",\n    \"12-0\": \"`last_status_change_by`\",\n    \"12-1\": \"[Object](doc:types#object)\",\n    \"12-2\": \"The user or service which is responsible for the incident's last status change. If the incident is in the acknowledged or resolved status, this will be the user that took the first acknowledged or resolved action. If the incident was automatically resolved (say through the Events API), or if the incident is in the triggered state, this will be the incident's service.\",\n    \"17-0\": \"`urgency`\",\n    \"17-1\": \"[String](doc:types#string)\",\n    \"17-2\": \"The incident's urgency (high or low).\",\n    \"2-0\": \"`title`\",\n    \"2-1\": \"[String](doc:types#string)\",\n    \"2-2\": \"A succinct description of the nature, symptoms, cause, or effect of the incident.\",\n    \"7-0\": \"`pending_actions`\",\n    \"7-1\": \"[Array](doc:types#array)\",\n    \"7-2\": \"The list of pending_actions on the incident. A pending_action object contains a type of action which can be escalate, unacknowledge, resolve or urgency_change. A pending_action object contains at, the time at which the action will take place. An urgency_change pending_action will contain to, the urgency that the incident will change to.\",\n    \"5-0\": \"`incident_key`\",\n    \"5-1\": \"[String](doc:types#string)\",\n    \"5-2\": \"The incident's de-duplication key.\",\n    \"10-0\": \"`acknowledgements`\",\n    \"10-1\": \"[Array](doc:types#array)\",\n    \"10-2\": \"List of all acknowledgements for this incident.\",\n    \"13-0\": \"`first_trigger_log_entry`\",\n    \"13-2\": \"The first trigger log entry for the incident.\",\n    \"13-1\": \"[Object](doc:types#object)\",\n    \"14-0\": \"`escalation_policy`\",\n    \"14-1\": \"[Object](doc:types#object)\",\n    \"14-2\": \"The escalation policy that the incident is currently following.\",\n    \"15-0\": \"`teams`\",\n    \"15-1\": \"[Array](doc:types#array)\",\n    \"15-2\": \"The teams involved in the incident’s lifecycle.\",\n    \"16-0\": \"`priority`\",\n    \"16-2\": \"The priority of the incident.\",\n    \"16-1\": \"[Object](doc:types#object)\",\n    \"18-0\": \"`resolve_reason`\",\n    \"18-1\": \"Nullable [String](doc:types#string)\",\n    \"18-2\": \"The reason the incident was resolved. Currently the only valid values are `null` and `\\\"merged\\\"` with plans to introduce additional reasons in the future.\",\n    \"19-0\": \"`alert_counts`\",\n    \"19-1\": \"[Object](doc:types#object)\",\n    \"19-2\": \"A summary of the number of alerts by status.\",\n    \"20-0\": \"`metadata`\",\n    \"20-1\": \"[Object](doc:types#object)\",\n    \"20-2\": \"The metadata saved on the service.\"\n  },\n  \"cols\": 3,\n  \"rows\": 21\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Log Entries\"\n}\n[/block]\nPagerDuty keeps a log of all the events that happen to an incident. These are exposed as log entries.\n\nLog entries give you more insight into how your team or organization is handling your incidents. Log entry data includes details about the event(s) that affected the[incident throughout its lifecycle, such as:\n\n- the data contained in events sent by the integration\n- which users were notified and when\n- how they were notified\n- which user(s) acknowledged or resolved the incident\n- any automatic actions that occurred to the incident\n- other manual user actions, such as a reassignment or a note\n\nThe payload contains the log entry for the action(s) that triggered the webhook to be sent. The fields below can be expected to be found in each log entry object. Refer to the [webhook examples](#examples) to see what the data looks like in practice.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Field\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"`created_at`\",\n    \"0-1\": \"[DateTime](doc:types#datetime)\",\n    \"0-2\": \"Time at which the log entry was created.\",\n    \"1-0\": \"`channel`\",\n    \"1-1\": \"[Object](doc:types#object)\",\n    \"1-2\": \"The channel field represents the means by which the action was carried out.\\n\\nFor example, in `incident.trigger` webhooks, this will represent the original event data sent to PagerDuty that triggered the incident.\",\n    \"2-0\": \"`agent`\",\n    \"2-2\": \"The agent (user, service or integration) that created or modified the log entry.\",\n    \"2-1\": \"[Object](doc:types#object)\",\n    \"3-0\": \"`note`\",\n    \"3-1\": \"[String](doc:types#string)\",\n    \"3-2\": \"Optional field containing a note, if one was included with the log entry.\",\n    \"4-0\": \"`contexts`\",\n    \"4-1\": \"[Array](doc:types#array)\",\n    \"4-2\": \"Contexts to be included with the trigger such as links to graphs or images.\",\n    \"6-0\": \"`service`\",\n    \"6-1\": \"[Object](doc:types#object)\",\n    \"6-2\": \"Reference to the service associated with the incident.\",\n    \"7-0\": \"`teams`\",\n    \"7-2\": \"References to teams associated with the service.\",\n    \"5-0\": \"`incident`\",\n    \"5-1\": \"[Object](doc:types#object)\",\n    \"5-2\": \"Reference to the incident.\",\n    \"8-0\": \"`event_details`\",\n    \"7-1\": \"[Array](doc:types#array)\",\n    \"8-1\": \"[Object](doc:types#object)\",\n    \"8-2\": \"Additional details about the event.\"\n  },\n  \"cols\": 3,\n  \"rows\": 9\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Webhook Types\"\n}\n[/block]\nA webhook's `event` field indicates what action caused it to be sent.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"type\",\n    \"h-1\": \"Description\",\n    \"0-1\": \"Sent when an incident is newly created/triggered.\",\n    \"0-0\": \"`incident.trigger`\",\n    \"1-1\": \"Sent when an incident is acknowledged by a user.\",\n    \"1-0\": \"`incident.acknowledge`\",\n    \"2-1\": \"Sent when an incident is unacknowledged due to its acknowledgement timing out.\",\n    \"2-0\": \"`incident.unacknowledge`\",\n    \"3-1\": \"Sent when an incident has been resolved.\",\n    \"3-0\": \"`incident.resolve`\",\n    \"4-1\": \"Sent when an incident has been assigned to another user. Often occurs in concert with an `acknowledge`.\",\n    \"4-0\": \"`incident.assign`\",\n    \"5-1\": \"Sent when an incident has been escalated to another user in the same escalation chain.\",\n    \"5-0\": \"`incident.escalate`\",\n    \"6-1\": \"Sent when an incident has been reassigned to another escalation policy.\",\n    \"6-0\": \"`incident.delegate`\",\n    \"7-0\": \"`incident.annotate`\",\n    \"7-1\": \"Sent when a note is created on an incident.\"\n  },\n  \"cols\": 2,\n  \"rows\": 8\n}\n[/block]\nMore webhook types may be added in the future.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Examples\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"messages\\\": [\\n    {\\n      \\\"event\\\": \\\"incident.trigger\\\",\\n      \\\"log_entries\\\": [\\n        {\\n          \\\"id\\\": \\\"R2XGXEI3W0FHMSDXHDIBQGBQ5E\\\",\\n          \\\"type\\\": \\\"trigger_log_entry\\\",\\n          \\\"summary\\\": \\\"Triggered through the website\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/incidents/PRORDTY/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\\\",\\n          \\\"created_at\\\": \\\"2017-09-26T15:14:36Z\\\",\\n          \\\"agent\\\": {\\n            \\\"id\\\": \\\"P553OPV\\\",\\n            \\\"type\\\": \\\"user_reference\\\",\\n            \\\"summary\\\": \\\"Laura Haley\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/users/P553OPV\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/users/P553OPV\\\"\\n          },\\n          \\\"channel\\\": {\\n            \\\"type\\\": \\\"web_trigger\\\",\\n            \\\"summary\\\": \\\"My new incident\\\",\\n            \\\"subject\\\": \\\"My new incident\\\",\\n            \\\"details\\\": \\\"Oh my gosh\\\"\\n          },\\n          \\\"service\\\": {\\n            \\\"id\\\": \\\"PN49J75\\\",\\n            \\\"type\\\": \\\"service_reference\\\",\\n            \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n          },\\n          \\\"incident\\\": {\\n            \\\"id\\\": \\\"PRORDTY\\\",\\n            \\\"type\\\": \\\"incident_reference\\\",\\n            \\\"summary\\\": \\\"[#33] My new incident\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/incidents/PRORDTY\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/incidents/PRORDTY\\\"\\n          },\\n          \\\"teams\\\": [\\n            {\\n              \\\"id\\\": \\\"P4SI59S\\\",\\n              \\\"type\\\": \\\"team_reference\\\",\\n              \\\"summary\\\": \\\"Engineering\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/teams/P4SI59S\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/teams/P4SI59S\\\"\\n            }\\n          ],\\n          \\\"contexts\\\": [],\\n          \\\"event_details\\\": {\\n            \\\"description\\\": \\\"My new incident\\\"\\n          }\\n        }\\n      ],\\n      \\\"webhook\\\": {\\n        \\\"endpoint_url\\\": \\\"https://requestb.in/18ao6fs1\\\",\\n        \\\"name\\\": \\\"V2 wabhook\\\",\\n        \\\"description\\\": null,\\n        \\\"webhook_object\\\": {\\n          \\\"id\\\": \\\"PN49J75\\\",\\n          \\\"type\\\": \\\"service_reference\\\",\\n          \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n        },\\n        \\\"config\\\": {},\\n        \\\"outbound_integration\\\": {\\n          \\\"id\\\": \\\"PJFWPEP\\\",\\n          \\\"type\\\": \\\"outbound_integration_reference\\\",\\n          \\\"summary\\\": \\\"Generic V2 Webhook\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/outbound_integrations/PJFWPEP\\\",\\n          \\\"html_url\\\": null\\n        },\\n        \\\"accounts_addon\\\": null,\\n        \\\"id\\\": \\\"PKT9NNX\\\",\\n        \\\"type\\\": \\\"webhook\\\",\\n        \\\"summary\\\": \\\"V2 wabhook\\\",\\n        \\\"self\\\": \\\"https://api.pagerduty.com/webhooks/PKT9NNX\\\",\\n        \\\"html_url\\\": null\\n      },\\n      \\\"incident\\\": {\\n        \\\"incident_number\\\": 33,\\n        \\\"title\\\": \\\"My new incident\\\",\\n        \\\"description\\\": \\\"My new incident\\\",\\n        \\\"created_at\\\": \\\"2017-09-26T15:14:36Z\\\",\\n        \\\"status\\\": \\\"triggered\\\",\\n        \\\"pending_actions\\\": [\\n          {\\n            \\\"type\\\": \\\"escalate\\\",\\n            \\\"at\\\": \\\"2017-09-26T15:44:36Z\\\"\\n          },\\n          {\\n            \\\"type\\\": \\\"resolve\\\",\\n            \\\"at\\\": \\\"2017-09-26T19:14:36Z\\\"\\n          }\\n        ],\\n        \\\"incident_key\\\": null,\\n        \\\"service\\\": {\\n          \\\"id\\\": \\\"PN49J75\\\",\\n          \\\"name\\\": \\\"Production XDB Cluster\\\",\\n          \\\"description\\\": \\\"This service was created during onboarding on July 5, 2017.\\\",\\n          \\\"auto_resolve_timeout\\\": 14400,\\n          \\\"acknowledgement_timeout\\\": 1800,\\n          \\\"created_at\\\": \\\"2017-07-05T17:33:09Z\\\",\\n          \\\"status\\\": \\\"critical\\\",\\n          \\\"last_incident_timestamp\\\": \\\"2017-09-26T15:14:36Z\\\",\\n          \\\"teams\\\": [\\n            {\\n              \\\"id\\\": \\\"P4SI59S\\\",\\n              \\\"type\\\": \\\"team_reference\\\",\\n              \\\"summary\\\": \\\"Engineering\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/teams/P4SI59S\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/teams/P4SI59S\\\"\\n            }\\n          ],\\n          \\\"incident_urgency_rule\\\": {\\n            \\\"type\\\": \\\"constant\\\",\\n            \\\"urgency\\\": \\\"high\\\"\\n          },\\n          \\\"scheduled_actions\\\": [],\\n          \\\"support_hours\\\": null,\\n          \\\"escalation_policy\\\": {\\n            \\\"id\\\": \\\"PINYWEF\\\",\\n            \\\"type\\\": \\\"escalation_policy_reference\\\",\\n            \\\"summary\\\": \\\"Default\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/escalation_policies/PINYWEF\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\\\"\\n          },\\n          \\\"addons\\\": [],\\n          \\\"privilege\\\": null,\\n          \\\"alert_creation\\\": \\\"create_alerts_and_incidents\\\",\\n          \\\"integrations\\\": [\\n            {\\n              \\\"id\\\": \\\"PUAYF96\\\",\\n              \\\"type\\\": \\\"generic_events_api_inbound_integration_reference\\\",\\n              \\\"summary\\\": \\\"API\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75/integrations/PUAYF96\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75/integrations/PUAYF96\\\"\\n            },\\n            {\\n              \\\"id\\\": \\\"P90GZUH\\\",\\n              \\\"type\\\": \\\"generic_email_inbound_integration_reference\\\",\\n              \\\"summary\\\": \\\"Email\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75/integrations/P90GZUH\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75/integrations/P90GZUH\\\"\\n            }\\n          ],\\n          \\\"metadata\\\": {},\\n          \\\"type\\\": \\\"service\\\",\\n          \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n        },\\n        \\\"assignments\\\": [\\n          {\\n            \\\"at\\\": \\\"2017-09-26T15:14:36Z\\\",\\n            \\\"assignee\\\": {\\n              \\\"id\\\": \\\"P553OPV\\\",\\n              \\\"type\\\": \\\"user_reference\\\",\\n              \\\"summary\\\": \\\"Laura Haley\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/users/P553OPV\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/users/P553OPV\\\"\\n            }\\n          }\\n        ],\\n        \\\"acknowledgements\\\": [],\\n        \\\"last_status_change_at\\\": \\\"2017-09-26T15:14:36Z\\\",\\n        \\\"last_status_change_by\\\": {\\n          \\\"id\\\": \\\"PN49J75\\\",\\n          \\\"type\\\": \\\"service_reference\\\",\\n          \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n        },\\n        \\\"first_trigger_log_entry\\\": {\\n          \\\"id\\\": \\\"R2XGXEI3W0FHMSDXHDIBQGBQ5E\\\",\\n          \\\"type\\\": \\\"trigger_log_entry_reference\\\",\\n          \\\"summary\\\": \\\"Triggered through the website\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/incidents/PRORDTY/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\\\"\\n        },\\n        \\\"escalation_policy\\\": {\\n          \\\"id\\\": \\\"PINYWEF\\\",\\n          \\\"type\\\": \\\"escalation_policy_reference\\\",\\n          \\\"summary\\\": \\\"Default\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/escalation_policies/PINYWEF\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\\\"\\n        },\\n        \\\"privilege\\\": null,\\n        \\\"teams\\\": [\\n          {\\n            \\\"id\\\": \\\"P4SI59S\\\",\\n            \\\"type\\\": \\\"team_reference\\\",\\n            \\\"summary\\\": \\\"Engineering\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/teams/P4SI59S\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/teams/P4SI59S\\\"\\n          }\\n        ],\\n        \\\"alert_counts\\\": {\\n          \\\"all\\\": 0,\\n          \\\"triggered\\\": 0,\\n          \\\"resolved\\\": 0\\n        },\\n        \\\"impacted_services\\\": [\\n          {\\n            \\\"id\\\": \\\"PN49J75\\\",\\n            \\\"type\\\": \\\"service_reference\\\",\\n            \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n          }\\n        ],\\n        \\\"is_mergeable\\\": true,\\n        \\\"basic_alert_grouping\\\": null,\\n        \\\"alert_grouping\\\": null,\\n        \\\"metadata\\\": {},\\n        \\\"external_references\\\": [],\\n        \\\"importance\\\": null,\\n        \\\"incidents_responders\\\": [],\\n        \\\"responder_requests\\\": [],\\n        \\\"subscriber_requests\\\": [],\\n        \\\"urgency\\\": \\\"high\\\",\\n        \\\"id\\\": \\\"PRORDTY\\\",\\n        \\\"type\\\": \\\"incident\\\",\\n        \\\"summary\\\": \\\"[#33] My new incident\\\",\\n        \\\"self\\\": \\\"https://api.pagerduty.com/incidents/PRORDTY\\\",\\n        \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/incidents/PRORDTY\\\"\\n      },\\n      \\\"id\\\": \\\"69a7ced0-a2cd-11e7-a799-22000a15839c\\\",\\n      \\\"created_on\\\": \\\"2017-09-26T15:14:36Z\\\"\\n    }\\n  ]\\n}\",\n      \"language\": \"json\",\n      \"name\": \"incident.trigger\"\n    },\n    {\n      \"code\": \"{\\n  \\\"messages\\\": [\\n    {\\n      \\\"event\\\": \\\"incident.acknowledge\\\",\\n      \\\"log_entries\\\": [\\n        {\\n          \\\"id\\\": \\\"RRPP3746OFFZZ742NSP1G67AWC\\\",\\n          \\\"type\\\": \\\"acknowledge_log_entry\\\",\\n          \\\"summary\\\": \\\"Acknowledged by Laura Haley\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/log_entries/RRPP3746OFFZZ742NSP1G67AWC\\\",\\n          \\\"html_url\\\": null,\\n          \\\"created_at\\\": \\\"2017-09-26T15:15:17Z\\\",\\n          \\\"agent\\\": {\\n            \\\"id\\\": \\\"P553OPV\\\",\\n            \\\"type\\\": \\\"user_reference\\\",\\n            \\\"summary\\\": \\\"Laura Haley\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/users/P553OPV\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/users/P553OPV\\\"\\n          },\\n          \\\"channel\\\": {\\n            \\\"type\\\": \\\"website\\\"\\n          },\\n          \\\"service\\\": {\\n            \\\"id\\\": \\\"PN49J75\\\",\\n            \\\"type\\\": \\\"service_reference\\\",\\n            \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n          },\\n          \\\"incident\\\": {\\n            \\\"id\\\": \\\"PRORDTY\\\",\\n            \\\"type\\\": \\\"incident_reference\\\",\\n            \\\"summary\\\": \\\"[#33] My new incident\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/incidents/PRORDTY\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/incidents/PRORDTY\\\"\\n          },\\n          \\\"teams\\\": [\\n            {\\n              \\\"id\\\": \\\"P4SI59S\\\",\\n              \\\"type\\\": \\\"team_reference\\\",\\n              \\\"summary\\\": \\\"Engineering\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/teams/P4SI59S\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/teams/P4SI59S\\\"\\n            }\\n          ],\\n          \\\"contexts\\\": [],\\n          \\\"acknowledgement_timeout\\\": 1800,\\n          \\\"event_details\\\": {}\\n        }\\n      ],\\n      \\\"webhook\\\": {\\n        \\\"endpoint_url\\\": \\\"https://requestb.in/18ao6fs1\\\",\\n        \\\"name\\\": \\\"V2 wabhook\\\",\\n        \\\"description\\\": null,\\n        \\\"webhook_object\\\": {\\n          \\\"id\\\": \\\"PN49J75\\\",\\n          \\\"type\\\": \\\"service_reference\\\",\\n          \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n        },\\n        \\\"config\\\": {},\\n        \\\"outbound_integration\\\": {\\n          \\\"id\\\": \\\"PJFWPEP\\\",\\n          \\\"type\\\": \\\"outbound_integration_reference\\\",\\n          \\\"summary\\\": \\\"Generic V2 Webhook\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/outbound_integrations/PJFWPEP\\\",\\n          \\\"html_url\\\": null\\n        },\\n        \\\"accounts_addon\\\": null,\\n        \\\"id\\\": \\\"PKT9NNX\\\",\\n        \\\"type\\\": \\\"webhook\\\",\\n        \\\"summary\\\": \\\"V2 wabhook\\\",\\n        \\\"self\\\": \\\"https://api.pagerduty.com/webhooks/PKT9NNX\\\",\\n        \\\"html_url\\\": null\\n      },\\n      \\\"incident\\\": {\\n        \\\"incident_number\\\": 33,\\n        \\\"title\\\": \\\"My new incident\\\",\\n        \\\"description\\\": \\\"My new incident\\\",\\n        \\\"created_at\\\": \\\"2017-09-26T15:14:36Z\\\",\\n        \\\"status\\\": \\\"acknowledged\\\",\\n        \\\"pending_actions\\\": [\\n          {\\n            \\\"type\\\": \\\"unacknowledge\\\",\\n            \\\"at\\\": \\\"2017-09-26T15:45:17Z\\\"\\n          },\\n          {\\n            \\\"type\\\": \\\"resolve\\\",\\n            \\\"at\\\": \\\"2017-09-26T19:14:36Z\\\"\\n          }\\n        ],\\n        \\\"incident_key\\\": null,\\n        \\\"service\\\": {\\n          \\\"id\\\": \\\"PN49J75\\\",\\n          \\\"name\\\": \\\"Production XDB Cluster\\\",\\n          \\\"description\\\": \\\"This service was created during onboarding on July 5, 2017.\\\",\\n          \\\"auto_resolve_timeout\\\": 14400,\\n          \\\"acknowledgement_timeout\\\": 1800,\\n          \\\"created_at\\\": \\\"2017-07-05T17:33:09Z\\\",\\n          \\\"status\\\": \\\"warning\\\",\\n          \\\"last_incident_timestamp\\\": \\\"2017-09-26T15:14:36Z\\\",\\n          \\\"teams\\\": [\\n            {\\n              \\\"id\\\": \\\"P4SI59S\\\",\\n              \\\"type\\\": \\\"team_reference\\\",\\n              \\\"summary\\\": \\\"Engineering\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/teams/P4SI59S\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/teams/P4SI59S\\\"\\n            }\\n          ],\\n          \\\"incident_urgency_rule\\\": {\\n            \\\"type\\\": \\\"constant\\\",\\n            \\\"urgency\\\": \\\"high\\\"\\n          },\\n          \\\"scheduled_actions\\\": [],\\n          \\\"support_hours\\\": null,\\n          \\\"escalation_policy\\\": {\\n            \\\"id\\\": \\\"PINYWEF\\\",\\n            \\\"type\\\": \\\"escalation_policy_reference\\\",\\n            \\\"summary\\\": \\\"Default\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/escalation_policies/PINYWEF\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\\\"\\n          },\\n          \\\"addons\\\": [],\\n          \\\"privilege\\\": null,\\n          \\\"alert_creation\\\": \\\"create_alerts_and_incidents\\\",\\n          \\\"integrations\\\": [\\n            {\\n              \\\"id\\\": \\\"PUAYF96\\\",\\n              \\\"type\\\": \\\"generic_events_api_inbound_integration_reference\\\",\\n              \\\"summary\\\": \\\"API\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75/integrations/PUAYF96\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75/integrations/PUAYF96\\\"\\n            },\\n            {\\n              \\\"id\\\": \\\"P90GZUH\\\",\\n              \\\"type\\\": \\\"generic_email_inbound_integration_reference\\\",\\n              \\\"summary\\\": \\\"Email\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75/integrations/P90GZUH\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75/integrations/P90GZUH\\\"\\n            }\\n          ],\\n          \\\"metadata\\\": {},\\n          \\\"type\\\": \\\"service\\\",\\n          \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n        },\\n        \\\"assignments\\\": [\\n          {\\n            \\\"at\\\": \\\"2017-09-26T15:14:36Z\\\",\\n            \\\"assignee\\\": {\\n              \\\"id\\\": \\\"P553OPV\\\",\\n              \\\"type\\\": \\\"user_reference\\\",\\n              \\\"summary\\\": \\\"Laura Haley\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/users/P553OPV\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/users/P553OPV\\\"\\n            }\\n          }\\n        ],\\n        \\\"acknowledgements\\\": [\\n          {\\n            \\\"at\\\": \\\"2017-09-26T15:15:17Z\\\",\\n            \\\"acknowledger\\\": {\\n              \\\"id\\\": \\\"P553OPV\\\",\\n              \\\"type\\\": \\\"user_reference\\\",\\n              \\\"summary\\\": \\\"Laura Haley\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/users/P553OPV\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/users/P553OPV\\\"\\n            }\\n          }\\n        ],\\n        \\\"last_status_change_at\\\": \\\"2017-09-26T15:15:17Z\\\",\\n        \\\"last_status_change_by\\\": {\\n          \\\"id\\\": \\\"P553OPV\\\",\\n          \\\"type\\\": \\\"user_reference\\\",\\n          \\\"summary\\\": \\\"Laura Haley\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/users/P553OPV\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/users/P553OPV\\\"\\n        },\\n        \\\"first_trigger_log_entry\\\": {\\n          \\\"id\\\": \\\"R2XGXEI3W0FHMSDXHDIBQGBQ5E\\\",\\n          \\\"type\\\": \\\"trigger_log_entry_reference\\\",\\n          \\\"summary\\\": \\\"Triggered through the website\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/incidents/PRORDTY/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\\\"\\n        },\\n        \\\"escalation_policy\\\": {\\n          \\\"id\\\": \\\"PINYWEF\\\",\\n          \\\"type\\\": \\\"escalation_policy_reference\\\",\\n          \\\"summary\\\": \\\"Default\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/escalation_policies/PINYWEF\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\\\"\\n        },\\n        \\\"privilege\\\": null,\\n        \\\"teams\\\": [\\n          {\\n            \\\"id\\\": \\\"P4SI59S\\\",\\n            \\\"type\\\": \\\"team_reference\\\",\\n            \\\"summary\\\": \\\"Engineering\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/teams/P4SI59S\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/teams/P4SI59S\\\"\\n          }\\n        ],\\n        \\\"alert_counts\\\": {\\n          \\\"all\\\": 0,\\n          \\\"triggered\\\": 0,\\n          \\\"resolved\\\": 0\\n        },\\n        \\\"impacted_services\\\": [\\n          {\\n            \\\"id\\\": \\\"PN49J75\\\",\\n            \\\"type\\\": \\\"service_reference\\\",\\n            \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n          }\\n        ],\\n        \\\"is_mergeable\\\": true,\\n        \\\"basic_alert_grouping\\\": null,\\n        \\\"alert_grouping\\\": null,\\n        \\\"metadata\\\": {},\\n        \\\"external_references\\\": [\\n          {\\n            \\\"id\\\": \\\"PLF5V5G\\\",\\n            \\\"type\\\": \\\"incident_external_reference\\\",\\n            \\\"summary\\\": \\\"Slack\\\",\\n            \\\"self\\\": null,\\n            \\\"html_url\\\": null,\\n            \\\"external_id\\\": \\\"1506438878.000302\\\",\\n            \\\"external_url\\\": \\\"http://webdemo.slack.com/archives/C6975FLAZ/p1506438878.000302\\\",\\n            \\\"sync\\\": false,\\n            \\\"webhook\\\": {\\n              \\\"id\\\": \\\"PRXV5AH\\\",\\n              \\\"type\\\": \\\"webhook_reference\\\",\\n              \\\"summary\\\": \\\"Slack M2M\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/webhooks/PRXV5AH\\\",\\n              \\\"html_url\\\": null\\n            }\\n          }\\n        ],\\n        \\\"importance\\\": null,\\n        \\\"incidents_responders\\\": [],\\n        \\\"responder_requests\\\": [],\\n        \\\"subscriber_requests\\\": [],\\n        \\\"urgency\\\": \\\"high\\\",\\n        \\\"id\\\": \\\"PRORDTY\\\",\\n        \\\"type\\\": \\\"incident\\\",\\n        \\\"summary\\\": \\\"[#33] My new incident\\\",\\n        \\\"self\\\": \\\"https://api.pagerduty.com/incidents/PRORDTY\\\",\\n        \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/incidents/PRORDTY\\\"\\n      },\\n      \\\"id\\\": \\\"82a33960-a2cd-11e7-8f69-22000affca53\\\",\\n      \\\"created_on\\\": \\\"2017-09-26T15:15:17Z\\\"\\n    }\\n  ]\\n}\",\n      \"language\": \"json\",\n      \"name\": \"incident.acknowledge\"\n    },\n    {\n      \"code\": \"{\\n  \\\"messages\\\": [\\n    {\\n      \\\"event\\\": \\\"incident.resolve\\\",\\n      \\\"log_entries\\\": [\\n        {\\n          \\\"id\\\": \\\"RNAJ8DLJGWHBXXYX1CC5G50C9O\\\",\\n          \\\"type\\\": \\\"resolve_log_entry\\\",\\n          \\\"summary\\\": \\\"Resolved by Laura Haley\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/log_entries/RNAJ8DLJGWHBXXYX1CC5G50C9O\\\",\\n          \\\"html_url\\\": null,\\n          \\\"created_at\\\": \\\"2017-09-26T15:18:09+00:00\\\",\\n          \\\"agent\\\": {\\n            \\\"id\\\": \\\"P553OPV\\\",\\n            \\\"type\\\": \\\"user_reference\\\",\\n            \\\"summary\\\": \\\"Laura Haley\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/users/P553OPV\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/users/P553OPV\\\"\\n          },\\n          \\\"channel\\\": {\\n            \\\"type\\\": \\\"website\\\"\\n          },\\n          \\\"service\\\": {\\n            \\\"id\\\": \\\"PN49J75\\\",\\n            \\\"type\\\": \\\"service_reference\\\",\\n            \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n          },\\n          \\\"incident\\\": {\\n            \\\"id\\\": \\\"PRORDTY\\\",\\n            \\\"type\\\": \\\"incident_reference\\\",\\n            \\\"summary\\\": \\\"[#33] My new incident\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/incidents/PRORDTY\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/incidents/PRORDTY\\\"\\n          },\\n          \\\"teams\\\": [\\n            {\\n              \\\"id\\\": \\\"P4SI59S\\\",\\n              \\\"type\\\": \\\"team_reference\\\",\\n              \\\"summary\\\": \\\"Engineering\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/teams/P4SI59S\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/teams/P4SI59S\\\"\\n            }\\n          ],\\n          \\\"contexts\\\": [],\\n          \\\"event_details\\\": {}\\n        }\\n      ],\\n      \\\"webhook\\\": {\\n        \\\"endpoint_url\\\": \\\"https://requestb.in/18ao6fs1\\\",\\n        \\\"name\\\": \\\"V2 wabhook\\\",\\n        \\\"description\\\": null,\\n        \\\"webhook_object\\\": {\\n          \\\"id\\\": \\\"PN49J75\\\",\\n          \\\"type\\\": \\\"service_reference\\\",\\n          \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n        },\\n        \\\"config\\\": {},\\n        \\\"outbound_integration\\\": {\\n          \\\"id\\\": \\\"PJFWPEP\\\",\\n          \\\"type\\\": \\\"outbound_integration_reference\\\",\\n          \\\"summary\\\": \\\"Generic V2 Webhook\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/outbound_integrations/PJFWPEP\\\",\\n          \\\"html_url\\\": null\\n        },\\n        \\\"accounts_addon\\\": null,\\n        \\\"id\\\": \\\"PKT9NNX\\\",\\n        \\\"type\\\": \\\"webhook\\\",\\n        \\\"summary\\\": \\\"V2 wabhook\\\",\\n        \\\"self\\\": \\\"https://api.pagerduty.com/webhooks/PKT9NNX\\\",\\n        \\\"html_url\\\": null\\n      },\\n      \\\"incident\\\": {\\n        \\\"incident_number\\\": 33,\\n        \\\"title\\\": \\\"My new incident\\\",\\n        \\\"description\\\": \\\"My new incident\\\",\\n        \\\"created_at\\\": \\\"2017-09-26T15:14:36Z\\\",\\n        \\\"status\\\": \\\"resolved\\\",\\n        \\\"pending_actions\\\": [],\\n        \\\"incident_key\\\": null,\\n        \\\"service\\\": {\\n          \\\"id\\\": \\\"PN49J75\\\",\\n          \\\"name\\\": \\\"Production XDB Cluster\\\",\\n          \\\"description\\\": \\\"This service was created during onboarding on July 5, 2017.\\\",\\n          \\\"auto_resolve_timeout\\\": 14400,\\n          \\\"acknowledgement_timeout\\\": 1800,\\n          \\\"created_at\\\": \\\"2017-07-05T17:33:09Z\\\",\\n          \\\"status\\\": \\\"active\\\",\\n          \\\"last_incident_timestamp\\\": \\\"2017-09-26T15:14:36Z\\\",\\n          \\\"teams\\\": [\\n            {\\n              \\\"id\\\": \\\"P4SI59S\\\",\\n              \\\"type\\\": \\\"team_reference\\\",\\n              \\\"summary\\\": \\\"Engineering\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/teams/P4SI59S\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/teams/P4SI59S\\\"\\n            }\\n          ],\\n          \\\"incident_urgency_rule\\\": {\\n            \\\"type\\\": \\\"constant\\\",\\n            \\\"urgency\\\": \\\"high\\\"\\n          },\\n          \\\"scheduled_actions\\\": [],\\n          \\\"support_hours\\\": null,\\n          \\\"escalation_policy\\\": {\\n            \\\"id\\\": \\\"PINYWEF\\\",\\n            \\\"type\\\": \\\"escalation_policy_reference\\\",\\n            \\\"summary\\\": \\\"Default\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/escalation_policies/PINYWEF\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\\\"\\n          },\\n          \\\"addons\\\": [],\\n          \\\"privilege\\\": null,\\n          \\\"alert_creation\\\": \\\"create_alerts_and_incidents\\\",\\n          \\\"integrations\\\": [\\n            {\\n              \\\"id\\\": \\\"PUAYF96\\\",\\n              \\\"type\\\": \\\"generic_events_api_inbound_integration_reference\\\",\\n              \\\"summary\\\": \\\"API\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75/integrations/PUAYF96\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75/integrations/PUAYF96\\\"\\n            },\\n            {\\n              \\\"id\\\": \\\"P90GZUH\\\",\\n              \\\"type\\\": \\\"generic_email_inbound_integration_reference\\\",\\n              \\\"summary\\\": \\\"Email\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75/integrations/P90GZUH\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75/integrations/P90GZUH\\\"\\n            }\\n          ],\\n          \\\"metadata\\\": {},\\n          \\\"type\\\": \\\"service\\\",\\n          \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n        },\\n        \\\"assignments\\\": [\\n          {\\n            \\\"at\\\": \\\"2017-09-26T15:16:05Z\\\",\\n            \\\"assignee\\\": {\\n              \\\"id\\\": \\\"PFBSJ2Z\\\",\\n              \\\"type\\\": \\\"user_reference\\\",\\n              \\\"summary\\\": \\\"Wiley Jacobson\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/users/PFBSJ2Z\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/users/PFBSJ2Z\\\"\\n            }\\n          }\\n        ],\\n        \\\"acknowledgements\\\": [],\\n        \\\"last_status_change_at\\\": \\\"2017-09-26T15:18:09Z\\\",\\n        \\\"last_status_change_by\\\": {\\n          \\\"id\\\": \\\"P553OPV\\\",\\n          \\\"type\\\": \\\"user_reference\\\",\\n          \\\"summary\\\": \\\"Laura Haley\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/users/P553OPV\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/users/P553OPV\\\"\\n        },\\n        \\\"first_trigger_log_entry\\\": {\\n          \\\"id\\\": \\\"R2XGXEI3W0FHMSDXHDIBQGBQ5E\\\",\\n          \\\"type\\\": \\\"trigger_log_entry_reference\\\",\\n          \\\"summary\\\": \\\"Triggered through the website\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/incidents/PRORDTY/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\\\"\\n        },\\n        \\\"escalation_policy\\\": {\\n          \\\"id\\\": \\\"PINYWEF\\\",\\n          \\\"type\\\": \\\"escalation_policy_reference\\\",\\n          \\\"summary\\\": \\\"Default\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/escalation_policies/PINYWEF\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\\\"\\n        },\\n        \\\"privilege\\\": null,\\n        \\\"teams\\\": [\\n          {\\n            \\\"id\\\": \\\"P4SI59S\\\",\\n            \\\"type\\\": \\\"team_reference\\\",\\n            \\\"summary\\\": \\\"Engineering\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/teams/P4SI59S\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/teams/P4SI59S\\\"\\n          }\\n        ],\\n        \\\"alert_counts\\\": {\\n          \\\"all\\\": 0,\\n          \\\"triggered\\\": 0,\\n          \\\"resolved\\\": 0\\n        },\\n        \\\"impacted_services\\\": [\\n          {\\n            \\\"id\\\": \\\"PN49J75\\\",\\n            \\\"type\\\": \\\"service_reference\\\",\\n            \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n          }\\n        ],\\n        \\\"is_mergeable\\\": true,\\n        \\\"basic_alert_grouping\\\": null,\\n        \\\"alert_grouping\\\": null,\\n        \\\"metadata\\\": {},\\n        \\\"external_references\\\": [\\n          {\\n            \\\"id\\\": \\\"PLF5V5G\\\",\\n            \\\"type\\\": \\\"incident_external_reference\\\",\\n            \\\"summary\\\": \\\"Slack\\\",\\n            \\\"self\\\": null,\\n            \\\"html_url\\\": null,\\n            \\\"external_id\\\": \\\"1506438878.000302\\\",\\n            \\\"external_url\\\": \\\"http://webdemo.slack.com/archives/C6975FLAZ/p1506438878.000302\\\",\\n            \\\"sync\\\": false,\\n            \\\"webhook\\\": {\\n              \\\"id\\\": \\\"PRXV5AH\\\",\\n              \\\"type\\\": \\\"webhook_reference\\\",\\n              \\\"summary\\\": \\\"Slack M2M\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/webhooks/PRXV5AH\\\",\\n              \\\"html_url\\\": null\\n            }\\n          }\\n        ],\\n        \\\"importance\\\": null,\\n        \\\"resolve_reason\\\": null,\\n        \\\"incidents_responders\\\": [],\\n        \\\"responder_requests\\\": [],\\n        \\\"subscriber_requests\\\": [],\\n        \\\"urgency\\\": \\\"high\\\",\\n        \\\"id\\\": \\\"PRORDTY\\\",\\n        \\\"type\\\": \\\"incident\\\",\\n        \\\"summary\\\": \\\"[#33] My new incident\\\",\\n        \\\"self\\\": \\\"https://api.pagerduty.com/incidents/PRORDTY\\\",\\n        \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/incidents/PRORDTY\\\"\\n      },\\n      \\\"id\\\": \\\"e82195c0-a2cd-11e7-8f69-22000affca53\\\",\\n      \\\"created_on\\\": \\\"2017-09-26T15:18:09Z\\\"\\n    }\\n  ]\\n}\\n\",\n      \"language\": \"json\",\n      \"name\": \"incident.resolve\"\n    },\n    {\n      \"code\": \"{\\n  \\\"messages\\\": [\\n    {\\n      \\\"event\\\": \\\"incident.assign\\\",\\n      \\\"log_entries\\\": [\\n        {\\n          \\\"id\\\": \\\"R6XNGC35VF6U1TUSVIE2DWXD4Z\\\",\\n          \\\"type\\\": \\\"assign_log_entry\\\",\\n          \\\"summary\\\": \\\"Assigned to Wiley Jacobson by Laura Haley\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/log_entries/R6XNGC35VF6U1TUSVIE2DWXD4Z\\\",\\n          \\\"html_url\\\": null,\\n          \\\"created_at\\\": \\\"2017-09-26T15:16:05Z\\\",\\n          \\\"agent\\\": {\\n            \\\"id\\\": \\\"P553OPV\\\",\\n            \\\"type\\\": \\\"user_reference\\\",\\n            \\\"summary\\\": \\\"Laura Haley\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/users/P553OPV\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/users/P553OPV\\\"\\n          },\\n          \\\"channel\\\": {\\n            \\\"type\\\": \\\"website\\\"\\n          },\\n          \\\"service\\\": {\\n            \\\"id\\\": \\\"PN49J75\\\",\\n            \\\"type\\\": \\\"service_reference\\\",\\n            \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n          },\\n          \\\"incident\\\": {\\n            \\\"id\\\": \\\"PRORDTY\\\",\\n            \\\"type\\\": \\\"incident_reference\\\",\\n            \\\"summary\\\": \\\"[#33] My new incident\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/incidents/PRORDTY\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/incidents/PRORDTY\\\"\\n          },\\n          \\\"teams\\\": [\\n            {\\n              \\\"id\\\": \\\"P4SI59S\\\",\\n              \\\"type\\\": \\\"team_reference\\\",\\n              \\\"summary\\\": \\\"Engineering\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/teams/P4SI59S\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/teams/P4SI59S\\\"\\n            }\\n          ],\\n          \\\"contexts\\\": [],\\n          \\\"assignees\\\": [\\n            {\\n              \\\"id\\\": \\\"PFBSJ2Z\\\",\\n              \\\"type\\\": \\\"user_reference\\\",\\n              \\\"summary\\\": \\\"Wiley Jacobson\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/users/PFBSJ2Z\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/users/PFBSJ2Z\\\"\\n            }\\n          ]\\n        }\\n      ],\\n      \\\"webhook\\\": {\\n        \\\"endpoint_url\\\": \\\"https://requestb.in/18ao6fs1\\\",\\n        \\\"name\\\": \\\"V2 wabhook\\\",\\n        \\\"description\\\": null,\\n        \\\"webhook_object\\\": {\\n          \\\"id\\\": \\\"PN49J75\\\",\\n          \\\"type\\\": \\\"service_reference\\\",\\n          \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n        },\\n        \\\"config\\\": {},\\n        \\\"outbound_integration\\\": {\\n          \\\"id\\\": \\\"PJFWPEP\\\",\\n          \\\"type\\\": \\\"outbound_integration_reference\\\",\\n          \\\"summary\\\": \\\"Generic V2 Webhook\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/outbound_integrations/PJFWPEP\\\",\\n          \\\"html_url\\\": null\\n        },\\n        \\\"accounts_addon\\\": null,\\n        \\\"id\\\": \\\"PKT9NNX\\\",\\n        \\\"type\\\": \\\"webhook\\\",\\n        \\\"summary\\\": \\\"V2 wabhook\\\",\\n        \\\"self\\\": \\\"https://api.pagerduty.com/webhooks/PKT9NNX\\\",\\n        \\\"html_url\\\": null\\n      },\\n      \\\"incident\\\": {\\n        \\\"incident_number\\\": 33,\\n        \\\"title\\\": \\\"My new incident\\\",\\n        \\\"description\\\": \\\"My new incident\\\",\\n        \\\"created_at\\\": \\\"2017-09-26T15:14:36Z\\\",\\n        \\\"status\\\": \\\"triggered\\\",\\n        \\\"pending_actions\\\": [\\n          {\\n            \\\"type\\\": \\\"resolve\\\",\\n            \\\"at\\\": \\\"2017-09-26T19:14:36Z\\\"\\n          }\\n        ],\\n        \\\"incident_key\\\": null,\\n        \\\"service\\\": {\\n          \\\"id\\\": \\\"PN49J75\\\",\\n          \\\"name\\\": \\\"Production XDB Cluster\\\",\\n          \\\"description\\\": \\\"This service was created during onboarding on July 5, 2017.\\\",\\n          \\\"auto_resolve_timeout\\\": 14400,\\n          \\\"acknowledgement_timeout\\\": 1800,\\n          \\\"created_at\\\": \\\"2017-07-05T17:33:09Z\\\",\\n          \\\"status\\\": \\\"critical\\\",\\n          \\\"last_incident_timestamp\\\": \\\"2017-09-26T15:14:36Z\\\",\\n          \\\"teams\\\": [\\n            {\\n              \\\"id\\\": \\\"P4SI59S\\\",\\n              \\\"type\\\": \\\"team_reference\\\",\\n              \\\"summary\\\": \\\"Engineering\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/teams/P4SI59S\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/teams/P4SI59S\\\"\\n            }\\n          ],\\n          \\\"incident_urgency_rule\\\": {\\n            \\\"type\\\": \\\"constant\\\",\\n            \\\"urgency\\\": \\\"high\\\"\\n          },\\n          \\\"scheduled_actions\\\": [],\\n          \\\"support_hours\\\": null,\\n          \\\"escalation_policy\\\": {\\n            \\\"id\\\": \\\"PINYWEF\\\",\\n            \\\"type\\\": \\\"escalation_policy_reference\\\",\\n            \\\"summary\\\": \\\"Default\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/escalation_policies/PINYWEF\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\\\"\\n          },\\n          \\\"addons\\\": [],\\n          \\\"privilege\\\": null,\\n          \\\"alert_creation\\\": \\\"create_alerts_and_incidents\\\",\\n          \\\"integrations\\\": [\\n            {\\n              \\\"id\\\": \\\"PUAYF96\\\",\\n              \\\"type\\\": \\\"generic_events_api_inbound_integration_reference\\\",\\n              \\\"summary\\\": \\\"API\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75/integrations/PUAYF96\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75/integrations/PUAYF96\\\"\\n            },\\n            {\\n              \\\"id\\\": \\\"P90GZUH\\\",\\n              \\\"type\\\": \\\"generic_email_inbound_integration_reference\\\",\\n              \\\"summary\\\": \\\"Email\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75/integrations/P90GZUH\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75/integrations/P90GZUH\\\"\\n            }\\n          ],\\n          \\\"metadata\\\": {},\\n          \\\"type\\\": \\\"service\\\",\\n          \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n        },\\n        \\\"assignments\\\": [\\n          {\\n            \\\"at\\\": \\\"2017-09-26T15:16:05Z\\\",\\n            \\\"assignee\\\": {\\n              \\\"id\\\": \\\"PFBSJ2Z\\\",\\n              \\\"type\\\": \\\"user_reference\\\",\\n              \\\"summary\\\": \\\"Wiley Jacobson\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/users/PFBSJ2Z\\\",\\n              \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/users/PFBSJ2Z\\\"\\n            }\\n          }\\n        ],\\n        \\\"acknowledgements\\\": [],\\n        \\\"last_status_change_at\\\": \\\"2017-09-26T15:16:05Z\\\",\\n        \\\"last_status_change_by\\\": {\\n          \\\"id\\\": \\\"PN49J75\\\",\\n          \\\"type\\\": \\\"service_reference\\\",\\n          \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n        },\\n        \\\"first_trigger_log_entry\\\": {\\n          \\\"id\\\": \\\"R2XGXEI3W0FHMSDXHDIBQGBQ5E\\\",\\n          \\\"type\\\": \\\"trigger_log_entry_reference\\\",\\n          \\\"summary\\\": \\\"Triggered through the website\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/incidents/PRORDTY/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\\\"\\n        },\\n        \\\"escalation_policy\\\": {\\n          \\\"id\\\": \\\"PINYWEF\\\",\\n          \\\"type\\\": \\\"escalation_policy_reference\\\",\\n          \\\"summary\\\": \\\"Default\\\",\\n          \\\"self\\\": \\\"https://api.pagerduty.com/escalation_policies/PINYWEF\\\",\\n          \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\\\"\\n        },\\n        \\\"privilege\\\": null,\\n        \\\"teams\\\": [\\n          {\\n            \\\"id\\\": \\\"P4SI59S\\\",\\n            \\\"type\\\": \\\"team_reference\\\",\\n            \\\"summary\\\": \\\"Engineering\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/teams/P4SI59S\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/teams/P4SI59S\\\"\\n          }\\n        ],\\n        \\\"alert_counts\\\": {\\n          \\\"all\\\": 0,\\n          \\\"triggered\\\": 0,\\n          \\\"resolved\\\": 0\\n        },\\n        \\\"impacted_services\\\": [\\n          {\\n            \\\"id\\\": \\\"PN49J75\\\",\\n            \\\"type\\\": \\\"service_reference\\\",\\n            \\\"summary\\\": \\\"Production XDB Cluster\\\",\\n            \\\"self\\\": \\\"https://api.pagerduty.com/services/PN49J75\\\",\\n            \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/services/PN49J75\\\"\\n          }\\n        ],\\n        \\\"is_mergeable\\\": true,\\n        \\\"basic_alert_grouping\\\": null,\\n        \\\"alert_grouping\\\": null,\\n        \\\"metadata\\\": {},\\n        \\\"external_references\\\": [\\n          {\\n            \\\"id\\\": \\\"PLF5V5G\\\",\\n            \\\"type\\\": \\\"incident_external_reference\\\",\\n            \\\"summary\\\": \\\"Slack\\\",\\n            \\\"self\\\": null,\\n            \\\"html_url\\\": null,\\n            \\\"external_id\\\": \\\"1506438878.000302\\\",\\n            \\\"external_url\\\": \\\"http://webdemo.slack.com/archives/C6975FLAZ/p1506438878.000302\\\",\\n            \\\"sync\\\": false,\\n            \\\"webhook\\\": {\\n              \\\"id\\\": \\\"PRXV5AH\\\",\\n              \\\"type\\\": \\\"webhook_reference\\\",\\n              \\\"summary\\\": \\\"Slack M2M\\\",\\n              \\\"self\\\": \\\"https://api.pagerduty.com/webhooks/PRXV5AH\\\",\\n              \\\"html_url\\\": null\\n            }\\n          }\\n        ],\\n        \\\"importance\\\": null,\\n        \\\"incidents_responders\\\": [],\\n        \\\"responder_requests\\\": [],\\n        \\\"subscriber_requests\\\": [],\\n        \\\"urgency\\\": \\\"high\\\",\\n        \\\"id\\\": \\\"PRORDTY\\\",\\n        \\\"type\\\": \\\"incident\\\",\\n        \\\"summary\\\": \\\"[#33] My new incident\\\",\\n        \\\"self\\\": \\\"https://api.pagerduty.com/incidents/PRORDTY\\\",\\n        \\\"html_url\\\": \\\"https://webdemo.pagerduty.com/incidents/PRORDTY\\\"\\n      },\\n      \\\"id\\\": \\\"9e7850d0-a2cd-11e7-8f69-22000affca53\\\",\\n      \\\"created_on\\\": \\\"2017-09-26T15:16:05Z\\\"\\n    }\\n  ]\\n}\\n\",\n      \"language\": \"json\",\n      \"name\": \"incident.assign\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Webhook IPs\"\n}\n[/block]\nSee our knowledge base article [Whitelisting IPs](https://support.pagerduty.com/docs/whitelisting-ips#section-webhooks) for information on obtaining the list of IPs webhooks may come from.","excerpt":"Get an HTTP POST from PagerDuty when actions take place inside your PagerDuty account","slug":"webhooks-v2-overview","type":"basic","title":"Overview"}

Overview

Get an HTTP POST from PagerDuty when actions take place inside your PagerDuty account

Webhooks let you receive HTTP callbacks when interesting events happen within your PagerDuty account. Details surrounding the interesting event will be sent via HTTP POST to a URL that you specify. PagerDuty currently supports incident-based webhooks. After adding a webhook URL to a PagerDuty service, the triggering of new incidents on that service will cause outgoing webhook messages to be sent to that URL. In addition, certain interesting changes to an incident's state will cause other types of incident webhook messages to be sent. Generally, any change to the `status` or `assignees` of an incident will cause an outgoing message to be sent. [block:api-header] { "type": "basic", "title": "Webhook Payload" } [/block] Webhook recipients receive a payload containing a single `messages` array that may contain multiple `message` elements if webhook firing actions occurred in quick succession. Each `message` in the array consists of four fields: [block:parameters] { "data": { "h-0": "Field name", "h-1": "Type", "h-2": "Description", "0-0": "`id`", "1-0": "`event`", "2-0": "`created_on`", "3-0": "`incident`", "0-1": "[UUID](doc:types#uuid)", "0-2": "Uniquely identifies this outgoing webhook message; can be used for idempotency when processing the messages.", "1-1": "[String](doc:types#string)", "2-1": "[DateTime](doc:types#datetime)", "3-1": "[Object](doc:types#object)", "1-2": "The [webhook event type](#webhook-types).", "2-2": "The date/time when the incident changed state.", "3-2": "The [incident details](#incident-details) at the time of the state change.", "4-0": "`webhook`", "4-1": "[Object](doc:types#object)", "4-2": "The webhook configuration which resulted in this message.", "5-0": "`log_entries`", "5-1": "[Array](doc:types#object)", "5-2": "[Log entries](#log-entries) that correspond to the action this Webhook is reporting. There will be only one `log_entry` type object in the array for `incident.trigger`, `incident.acknowledge` and `incident.resolve` type webhooks. For `incident.escalate` webhooks where there were more than one target, there will be one entry in this array for each escalation target." }, "cols": 3, "rows": 6 } [/block] [block:api-header] { "type": "basic", "title": "Incident Details" } [/block] For incident webhooks, the `incident` field contains a representation of the incident associated with the action that caused this webhook message. The fields below can be expected to be found in the incident data. Refer to the [webhook examples](#examples) to see what the data looks like in practice. [block:parameters] { "data": { "h-0": "Field", "h-1": "Type", "h-2": "Description", "0-0": "`id`", "0-1": "[String](doc:types#string)", "0-2": "The incident's id, which can be used to find it in the REST API.", "1-0": "`incident_number`", "1-1": "[Integer](doc:types#integer)", "1-2": "The number of the incident. This is unique across the account.", "3-0": "`created_at`", "3-1": "[DateTime](doc:types#datetime)", "3-2": "The date/time the incident was first triggered.", "4-0": "`status`", "4-2": "The current status of the incident. One of \"triggered\", \"acknowledged\", or \"resolved\".", "4-1": "[String](doc:types#string)", "6-0": "`html_url`", "6-1": "[URL](doc:types#url)", "8-0": "`service`", "8-1": "[Object](doc:types#object)", "8-2": "A representation of the PagerDuty service that the incident belongs to. See the [webhook examples](#examples) for what the `service` object looks like.", "9-0": "`assignments`", "9-1": "[Array](doc:types#array)", "9-2": "A list of users assigned to the incident at the time of the webhook action. Each entry in the array indicates when the user was assigned.", "11-0": "`last_status_change_at`", "11-1": "[DateTime](doc:types#datetime)", "11-2": "The time at which the status of the incident last changed.", "12-0": "`last_status_change_by`", "12-1": "[Object](doc:types#object)", "12-2": "The user or service which is responsible for the incident's last status change. If the incident is in the acknowledged or resolved status, this will be the user that took the first acknowledged or resolved action. If the incident was automatically resolved (say through the Events API), or if the incident is in the triggered state, this will be the incident's service.", "17-0": "`urgency`", "17-1": "[String](doc:types#string)", "17-2": "The incident's urgency (high or low).", "2-0": "`title`", "2-1": "[String](doc:types#string)", "2-2": "A succinct description of the nature, symptoms, cause, or effect of the incident.", "7-0": "`pending_actions`", "7-1": "[Array](doc:types#array)", "7-2": "The list of pending_actions on the incident. A pending_action object contains a type of action which can be escalate, unacknowledge, resolve or urgency_change. A pending_action object contains at, the time at which the action will take place. An urgency_change pending_action will contain to, the urgency that the incident will change to.", "5-0": "`incident_key`", "5-1": "[String](doc:types#string)", "5-2": "The incident's de-duplication key.", "10-0": "`acknowledgements`", "10-1": "[Array](doc:types#array)", "10-2": "List of all acknowledgements for this incident.", "13-0": "`first_trigger_log_entry`", "13-2": "The first trigger log entry for the incident.", "13-1": "[Object](doc:types#object)", "14-0": "`escalation_policy`", "14-1": "[Object](doc:types#object)", "14-2": "The escalation policy that the incident is currently following.", "15-0": "`teams`", "15-1": "[Array](doc:types#array)", "15-2": "The teams involved in the incident’s lifecycle.", "16-0": "`priority`", "16-2": "The priority of the incident.", "16-1": "[Object](doc:types#object)", "18-0": "`resolve_reason`", "18-1": "Nullable [String](doc:types#string)", "18-2": "The reason the incident was resolved. Currently the only valid values are `null` and `\"merged\"` with plans to introduce additional reasons in the future.", "19-0": "`alert_counts`", "19-1": "[Object](doc:types#object)", "19-2": "A summary of the number of alerts by status.", "20-0": "`metadata`", "20-1": "[Object](doc:types#object)", "20-2": "The metadata saved on the service." }, "cols": 3, "rows": 21 } [/block] [block:api-header] { "title": "Log Entries" } [/block] PagerDuty keeps a log of all the events that happen to an incident. These are exposed as log entries. Log entries give you more insight into how your team or organization is handling your incidents. Log entry data includes details about the event(s) that affected the[incident throughout its lifecycle, such as: - the data contained in events sent by the integration - which users were notified and when - how they were notified - which user(s) acknowledged or resolved the incident - any automatic actions that occurred to the incident - other manual user actions, such as a reassignment or a note The payload contains the log entry for the action(s) that triggered the webhook to be sent. The fields below can be expected to be found in each log entry object. Refer to the [webhook examples](#examples) to see what the data looks like in practice. [block:parameters] { "data": { "h-0": "Field", "h-1": "Type", "h-2": "Description", "0-0": "`created_at`", "0-1": "[DateTime](doc:types#datetime)", "0-2": "Time at which the log entry was created.", "1-0": "`channel`", "1-1": "[Object](doc:types#object)", "1-2": "The channel field represents the means by which the action was carried out.\n\nFor example, in `incident.trigger` webhooks, this will represent the original event data sent to PagerDuty that triggered the incident.", "2-0": "`agent`", "2-2": "The agent (user, service or integration) that created or modified the log entry.", "2-1": "[Object](doc:types#object)", "3-0": "`note`", "3-1": "[String](doc:types#string)", "3-2": "Optional field containing a note, if one was included with the log entry.", "4-0": "`contexts`", "4-1": "[Array](doc:types#array)", "4-2": "Contexts to be included with the trigger such as links to graphs or images.", "6-0": "`service`", "6-1": "[Object](doc:types#object)", "6-2": "Reference to the service associated with the incident.", "7-0": "`teams`", "7-2": "References to teams associated with the service.", "5-0": "`incident`", "5-1": "[Object](doc:types#object)", "5-2": "Reference to the incident.", "8-0": "`event_details`", "7-1": "[Array](doc:types#array)", "8-1": "[Object](doc:types#object)", "8-2": "Additional details about the event." }, "cols": 3, "rows": 9 } [/block] [block:api-header] { "type": "basic", "title": "Webhook Types" } [/block] A webhook's `event` field indicates what action caused it to be sent. [block:parameters] { "data": { "h-0": "type", "h-1": "Description", "0-1": "Sent when an incident is newly created/triggered.", "0-0": "`incident.trigger`", "1-1": "Sent when an incident is acknowledged by a user.", "1-0": "`incident.acknowledge`", "2-1": "Sent when an incident is unacknowledged due to its acknowledgement timing out.", "2-0": "`incident.unacknowledge`", "3-1": "Sent when an incident has been resolved.", "3-0": "`incident.resolve`", "4-1": "Sent when an incident has been assigned to another user. Often occurs in concert with an `acknowledge`.", "4-0": "`incident.assign`", "5-1": "Sent when an incident has been escalated to another user in the same escalation chain.", "5-0": "`incident.escalate`", "6-1": "Sent when an incident has been reassigned to another escalation policy.", "6-0": "`incident.delegate`", "7-0": "`incident.annotate`", "7-1": "Sent when a note is created on an incident." }, "cols": 2, "rows": 8 } [/block] More webhook types may be added in the future. [block:api-header] { "type": "basic", "title": "Examples" } [/block] [block:code] { "codes": [ { "code": "{\n \"messages\": [\n {\n \"event\": \"incident.trigger\",\n \"log_entries\": [\n {\n \"id\": \"R2XGXEI3W0FHMSDXHDIBQGBQ5E\",\n \"type\": \"trigger_log_entry\",\n \"summary\": \"Triggered through the website\",\n \"self\": \"https://api.pagerduty.com/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\",\n \"html_url\": \"https://webdemo.pagerduty.com/incidents/PRORDTY/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\",\n \"created_at\": \"2017-09-26T15:14:36Z\",\n \"agent\": {\n \"id\": \"P553OPV\",\n \"type\": \"user_reference\",\n \"summary\": \"Laura Haley\",\n \"self\": \"https://api.pagerduty.com/users/P553OPV\",\n \"html_url\": \"https://webdemo.pagerduty.com/users/P553OPV\"\n },\n \"channel\": {\n \"type\": \"web_trigger\",\n \"summary\": \"My new incident\",\n \"subject\": \"My new incident\",\n \"details\": \"Oh my gosh\"\n },\n \"service\": {\n \"id\": \"PN49J75\",\n \"type\": \"service_reference\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n },\n \"incident\": {\n \"id\": \"PRORDTY\",\n \"type\": \"incident_reference\",\n \"summary\": \"[#33] My new incident\",\n \"self\": \"https://api.pagerduty.com/incidents/PRORDTY\",\n \"html_url\": \"https://webdemo.pagerduty.com/incidents/PRORDTY\"\n },\n \"teams\": [\n {\n \"id\": \"P4SI59S\",\n \"type\": \"team_reference\",\n \"summary\": \"Engineering\",\n \"self\": \"https://api.pagerduty.com/teams/P4SI59S\",\n \"html_url\": \"https://webdemo.pagerduty.com/teams/P4SI59S\"\n }\n ],\n \"contexts\": [],\n \"event_details\": {\n \"description\": \"My new incident\"\n }\n }\n ],\n \"webhook\": {\n \"endpoint_url\": \"https://requestb.in/18ao6fs1\",\n \"name\": \"V2 wabhook\",\n \"description\": null,\n \"webhook_object\": {\n \"id\": \"PN49J75\",\n \"type\": \"service_reference\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n },\n \"config\": {},\n \"outbound_integration\": {\n \"id\": \"PJFWPEP\",\n \"type\": \"outbound_integration_reference\",\n \"summary\": \"Generic V2 Webhook\",\n \"self\": \"https://api.pagerduty.com/outbound_integrations/PJFWPEP\",\n \"html_url\": null\n },\n \"accounts_addon\": null,\n \"id\": \"PKT9NNX\",\n \"type\": \"webhook\",\n \"summary\": \"V2 wabhook\",\n \"self\": \"https://api.pagerduty.com/webhooks/PKT9NNX\",\n \"html_url\": null\n },\n \"incident\": {\n \"incident_number\": 33,\n \"title\": \"My new incident\",\n \"description\": \"My new incident\",\n \"created_at\": \"2017-09-26T15:14:36Z\",\n \"status\": \"triggered\",\n \"pending_actions\": [\n {\n \"type\": \"escalate\",\n \"at\": \"2017-09-26T15:44:36Z\"\n },\n {\n \"type\": \"resolve\",\n \"at\": \"2017-09-26T19:14:36Z\"\n }\n ],\n \"incident_key\": null,\n \"service\": {\n \"id\": \"PN49J75\",\n \"name\": \"Production XDB Cluster\",\n \"description\": \"This service was created during onboarding on July 5, 2017.\",\n \"auto_resolve_timeout\": 14400,\n \"acknowledgement_timeout\": 1800,\n \"created_at\": \"2017-07-05T17:33:09Z\",\n \"status\": \"critical\",\n \"last_incident_timestamp\": \"2017-09-26T15:14:36Z\",\n \"teams\": [\n {\n \"id\": \"P4SI59S\",\n \"type\": \"team_reference\",\n \"summary\": \"Engineering\",\n \"self\": \"https://api.pagerduty.com/teams/P4SI59S\",\n \"html_url\": \"https://webdemo.pagerduty.com/teams/P4SI59S\"\n }\n ],\n \"incident_urgency_rule\": {\n \"type\": \"constant\",\n \"urgency\": \"high\"\n },\n \"scheduled_actions\": [],\n \"support_hours\": null,\n \"escalation_policy\": {\n \"id\": \"PINYWEF\",\n \"type\": \"escalation_policy_reference\",\n \"summary\": \"Default\",\n \"self\": \"https://api.pagerduty.com/escalation_policies/PINYWEF\",\n \"html_url\": \"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\"\n },\n \"addons\": [],\n \"privilege\": null,\n \"alert_creation\": \"create_alerts_and_incidents\",\n \"integrations\": [\n {\n \"id\": \"PUAYF96\",\n \"type\": \"generic_events_api_inbound_integration_reference\",\n \"summary\": \"API\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75/integrations/PUAYF96\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75/integrations/PUAYF96\"\n },\n {\n \"id\": \"P90GZUH\",\n \"type\": \"generic_email_inbound_integration_reference\",\n \"summary\": \"Email\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75/integrations/P90GZUH\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75/integrations/P90GZUH\"\n }\n ],\n \"metadata\": {},\n \"type\": \"service\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n },\n \"assignments\": [\n {\n \"at\": \"2017-09-26T15:14:36Z\",\n \"assignee\": {\n \"id\": \"P553OPV\",\n \"type\": \"user_reference\",\n \"summary\": \"Laura Haley\",\n \"self\": \"https://api.pagerduty.com/users/P553OPV\",\n \"html_url\": \"https://webdemo.pagerduty.com/users/P553OPV\"\n }\n }\n ],\n \"acknowledgements\": [],\n \"last_status_change_at\": \"2017-09-26T15:14:36Z\",\n \"last_status_change_by\": {\n \"id\": \"PN49J75\",\n \"type\": \"service_reference\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n },\n \"first_trigger_log_entry\": {\n \"id\": \"R2XGXEI3W0FHMSDXHDIBQGBQ5E\",\n \"type\": \"trigger_log_entry_reference\",\n \"summary\": \"Triggered through the website\",\n \"self\": \"https://api.pagerduty.com/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\",\n \"html_url\": \"https://webdemo.pagerduty.com/incidents/PRORDTY/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\"\n },\n \"escalation_policy\": {\n \"id\": \"PINYWEF\",\n \"type\": \"escalation_policy_reference\",\n \"summary\": \"Default\",\n \"self\": \"https://api.pagerduty.com/escalation_policies/PINYWEF\",\n \"html_url\": \"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\"\n },\n \"privilege\": null,\n \"teams\": [\n {\n \"id\": \"P4SI59S\",\n \"type\": \"team_reference\",\n \"summary\": \"Engineering\",\n \"self\": \"https://api.pagerduty.com/teams/P4SI59S\",\n \"html_url\": \"https://webdemo.pagerduty.com/teams/P4SI59S\"\n }\n ],\n \"alert_counts\": {\n \"all\": 0,\n \"triggered\": 0,\n \"resolved\": 0\n },\n \"impacted_services\": [\n {\n \"id\": \"PN49J75\",\n \"type\": \"service_reference\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n }\n ],\n \"is_mergeable\": true,\n \"basic_alert_grouping\": null,\n \"alert_grouping\": null,\n \"metadata\": {},\n \"external_references\": [],\n \"importance\": null,\n \"incidents_responders\": [],\n \"responder_requests\": [],\n \"subscriber_requests\": [],\n \"urgency\": \"high\",\n \"id\": \"PRORDTY\",\n \"type\": \"incident\",\n \"summary\": \"[#33] My new incident\",\n \"self\": \"https://api.pagerduty.com/incidents/PRORDTY\",\n \"html_url\": \"https://webdemo.pagerduty.com/incidents/PRORDTY\"\n },\n \"id\": \"69a7ced0-a2cd-11e7-a799-22000a15839c\",\n \"created_on\": \"2017-09-26T15:14:36Z\"\n }\n ]\n}", "language": "json", "name": "incident.trigger" }, { "code": "{\n \"messages\": [\n {\n \"event\": \"incident.acknowledge\",\n \"log_entries\": [\n {\n \"id\": \"RRPP3746OFFZZ742NSP1G67AWC\",\n \"type\": \"acknowledge_log_entry\",\n \"summary\": \"Acknowledged by Laura Haley\",\n \"self\": \"https://api.pagerduty.com/log_entries/RRPP3746OFFZZ742NSP1G67AWC\",\n \"html_url\": null,\n \"created_at\": \"2017-09-26T15:15:17Z\",\n \"agent\": {\n \"id\": \"P553OPV\",\n \"type\": \"user_reference\",\n \"summary\": \"Laura Haley\",\n \"self\": \"https://api.pagerduty.com/users/P553OPV\",\n \"html_url\": \"https://webdemo.pagerduty.com/users/P553OPV\"\n },\n \"channel\": {\n \"type\": \"website\"\n },\n \"service\": {\n \"id\": \"PN49J75\",\n \"type\": \"service_reference\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n },\n \"incident\": {\n \"id\": \"PRORDTY\",\n \"type\": \"incident_reference\",\n \"summary\": \"[#33] My new incident\",\n \"self\": \"https://api.pagerduty.com/incidents/PRORDTY\",\n \"html_url\": \"https://webdemo.pagerduty.com/incidents/PRORDTY\"\n },\n \"teams\": [\n {\n \"id\": \"P4SI59S\",\n \"type\": \"team_reference\",\n \"summary\": \"Engineering\",\n \"self\": \"https://api.pagerduty.com/teams/P4SI59S\",\n \"html_url\": \"https://webdemo.pagerduty.com/teams/P4SI59S\"\n }\n ],\n \"contexts\": [],\n \"acknowledgement_timeout\": 1800,\n \"event_details\": {}\n }\n ],\n \"webhook\": {\n \"endpoint_url\": \"https://requestb.in/18ao6fs1\",\n \"name\": \"V2 wabhook\",\n \"description\": null,\n \"webhook_object\": {\n \"id\": \"PN49J75\",\n \"type\": \"service_reference\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n },\n \"config\": {},\n \"outbound_integration\": {\n \"id\": \"PJFWPEP\",\n \"type\": \"outbound_integration_reference\",\n \"summary\": \"Generic V2 Webhook\",\n \"self\": \"https://api.pagerduty.com/outbound_integrations/PJFWPEP\",\n \"html_url\": null\n },\n \"accounts_addon\": null,\n \"id\": \"PKT9NNX\",\n \"type\": \"webhook\",\n \"summary\": \"V2 wabhook\",\n \"self\": \"https://api.pagerduty.com/webhooks/PKT9NNX\",\n \"html_url\": null\n },\n \"incident\": {\n \"incident_number\": 33,\n \"title\": \"My new incident\",\n \"description\": \"My new incident\",\n \"created_at\": \"2017-09-26T15:14:36Z\",\n \"status\": \"acknowledged\",\n \"pending_actions\": [\n {\n \"type\": \"unacknowledge\",\n \"at\": \"2017-09-26T15:45:17Z\"\n },\n {\n \"type\": \"resolve\",\n \"at\": \"2017-09-26T19:14:36Z\"\n }\n ],\n \"incident_key\": null,\n \"service\": {\n \"id\": \"PN49J75\",\n \"name\": \"Production XDB Cluster\",\n \"description\": \"This service was created during onboarding on July 5, 2017.\",\n \"auto_resolve_timeout\": 14400,\n \"acknowledgement_timeout\": 1800,\n \"created_at\": \"2017-07-05T17:33:09Z\",\n \"status\": \"warning\",\n \"last_incident_timestamp\": \"2017-09-26T15:14:36Z\",\n \"teams\": [\n {\n \"id\": \"P4SI59S\",\n \"type\": \"team_reference\",\n \"summary\": \"Engineering\",\n \"self\": \"https://api.pagerduty.com/teams/P4SI59S\",\n \"html_url\": \"https://webdemo.pagerduty.com/teams/P4SI59S\"\n }\n ],\n \"incident_urgency_rule\": {\n \"type\": \"constant\",\n \"urgency\": \"high\"\n },\n \"scheduled_actions\": [],\n \"support_hours\": null,\n \"escalation_policy\": {\n \"id\": \"PINYWEF\",\n \"type\": \"escalation_policy_reference\",\n \"summary\": \"Default\",\n \"self\": \"https://api.pagerduty.com/escalation_policies/PINYWEF\",\n \"html_url\": \"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\"\n },\n \"addons\": [],\n \"privilege\": null,\n \"alert_creation\": \"create_alerts_and_incidents\",\n \"integrations\": [\n {\n \"id\": \"PUAYF96\",\n \"type\": \"generic_events_api_inbound_integration_reference\",\n \"summary\": \"API\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75/integrations/PUAYF96\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75/integrations/PUAYF96\"\n },\n {\n \"id\": \"P90GZUH\",\n \"type\": \"generic_email_inbound_integration_reference\",\n \"summary\": \"Email\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75/integrations/P90GZUH\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75/integrations/P90GZUH\"\n }\n ],\n \"metadata\": {},\n \"type\": \"service\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n },\n \"assignments\": [\n {\n \"at\": \"2017-09-26T15:14:36Z\",\n \"assignee\": {\n \"id\": \"P553OPV\",\n \"type\": \"user_reference\",\n \"summary\": \"Laura Haley\",\n \"self\": \"https://api.pagerduty.com/users/P553OPV\",\n \"html_url\": \"https://webdemo.pagerduty.com/users/P553OPV\"\n }\n }\n ],\n \"acknowledgements\": [\n {\n \"at\": \"2017-09-26T15:15:17Z\",\n \"acknowledger\": {\n \"id\": \"P553OPV\",\n \"type\": \"user_reference\",\n \"summary\": \"Laura Haley\",\n \"self\": \"https://api.pagerduty.com/users/P553OPV\",\n \"html_url\": \"https://webdemo.pagerduty.com/users/P553OPV\"\n }\n }\n ],\n \"last_status_change_at\": \"2017-09-26T15:15:17Z\",\n \"last_status_change_by\": {\n \"id\": \"P553OPV\",\n \"type\": \"user_reference\",\n \"summary\": \"Laura Haley\",\n \"self\": \"https://api.pagerduty.com/users/P553OPV\",\n \"html_url\": \"https://webdemo.pagerduty.com/users/P553OPV\"\n },\n \"first_trigger_log_entry\": {\n \"id\": \"R2XGXEI3W0FHMSDXHDIBQGBQ5E\",\n \"type\": \"trigger_log_entry_reference\",\n \"summary\": \"Triggered through the website\",\n \"self\": \"https://api.pagerduty.com/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\",\n \"html_url\": \"https://webdemo.pagerduty.com/incidents/PRORDTY/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\"\n },\n \"escalation_policy\": {\n \"id\": \"PINYWEF\",\n \"type\": \"escalation_policy_reference\",\n \"summary\": \"Default\",\n \"self\": \"https://api.pagerduty.com/escalation_policies/PINYWEF\",\n \"html_url\": \"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\"\n },\n \"privilege\": null,\n \"teams\": [\n {\n \"id\": \"P4SI59S\",\n \"type\": \"team_reference\",\n \"summary\": \"Engineering\",\n \"self\": \"https://api.pagerduty.com/teams/P4SI59S\",\n \"html_url\": \"https://webdemo.pagerduty.com/teams/P4SI59S\"\n }\n ],\n \"alert_counts\": {\n \"all\": 0,\n \"triggered\": 0,\n \"resolved\": 0\n },\n \"impacted_services\": [\n {\n \"id\": \"PN49J75\",\n \"type\": \"service_reference\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n }\n ],\n \"is_mergeable\": true,\n \"basic_alert_grouping\": null,\n \"alert_grouping\": null,\n \"metadata\": {},\n \"external_references\": [\n {\n \"id\": \"PLF5V5G\",\n \"type\": \"incident_external_reference\",\n \"summary\": \"Slack\",\n \"self\": null,\n \"html_url\": null,\n \"external_id\": \"1506438878.000302\",\n \"external_url\": \"http://webdemo.slack.com/archives/C6975FLAZ/p1506438878.000302\",\n \"sync\": false,\n \"webhook\": {\n \"id\": \"PRXV5AH\",\n \"type\": \"webhook_reference\",\n \"summary\": \"Slack M2M\",\n \"self\": \"https://api.pagerduty.com/webhooks/PRXV5AH\",\n \"html_url\": null\n }\n }\n ],\n \"importance\": null,\n \"incidents_responders\": [],\n \"responder_requests\": [],\n \"subscriber_requests\": [],\n \"urgency\": \"high\",\n \"id\": \"PRORDTY\",\n \"type\": \"incident\",\n \"summary\": \"[#33] My new incident\",\n \"self\": \"https://api.pagerduty.com/incidents/PRORDTY\",\n \"html_url\": \"https://webdemo.pagerduty.com/incidents/PRORDTY\"\n },\n \"id\": \"82a33960-a2cd-11e7-8f69-22000affca53\",\n \"created_on\": \"2017-09-26T15:15:17Z\"\n }\n ]\n}", "language": "json", "name": "incident.acknowledge" }, { "code": "{\n \"messages\": [\n {\n \"event\": \"incident.resolve\",\n \"log_entries\": [\n {\n \"id\": \"RNAJ8DLJGWHBXXYX1CC5G50C9O\",\n \"type\": \"resolve_log_entry\",\n \"summary\": \"Resolved by Laura Haley\",\n \"self\": \"https://api.pagerduty.com/log_entries/RNAJ8DLJGWHBXXYX1CC5G50C9O\",\n \"html_url\": null,\n \"created_at\": \"2017-09-26T15:18:09+00:00\",\n \"agent\": {\n \"id\": \"P553OPV\",\n \"type\": \"user_reference\",\n \"summary\": \"Laura Haley\",\n \"self\": \"https://api.pagerduty.com/users/P553OPV\",\n \"html_url\": \"https://webdemo.pagerduty.com/users/P553OPV\"\n },\n \"channel\": {\n \"type\": \"website\"\n },\n \"service\": {\n \"id\": \"PN49J75\",\n \"type\": \"service_reference\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n },\n \"incident\": {\n \"id\": \"PRORDTY\",\n \"type\": \"incident_reference\",\n \"summary\": \"[#33] My new incident\",\n \"self\": \"https://api.pagerduty.com/incidents/PRORDTY\",\n \"html_url\": \"https://webdemo.pagerduty.com/incidents/PRORDTY\"\n },\n \"teams\": [\n {\n \"id\": \"P4SI59S\",\n \"type\": \"team_reference\",\n \"summary\": \"Engineering\",\n \"self\": \"https://api.pagerduty.com/teams/P4SI59S\",\n \"html_url\": \"https://webdemo.pagerduty.com/teams/P4SI59S\"\n }\n ],\n \"contexts\": [],\n \"event_details\": {}\n }\n ],\n \"webhook\": {\n \"endpoint_url\": \"https://requestb.in/18ao6fs1\",\n \"name\": \"V2 wabhook\",\n \"description\": null,\n \"webhook_object\": {\n \"id\": \"PN49J75\",\n \"type\": \"service_reference\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n },\n \"config\": {},\n \"outbound_integration\": {\n \"id\": \"PJFWPEP\",\n \"type\": \"outbound_integration_reference\",\n \"summary\": \"Generic V2 Webhook\",\n \"self\": \"https://api.pagerduty.com/outbound_integrations/PJFWPEP\",\n \"html_url\": null\n },\n \"accounts_addon\": null,\n \"id\": \"PKT9NNX\",\n \"type\": \"webhook\",\n \"summary\": \"V2 wabhook\",\n \"self\": \"https://api.pagerduty.com/webhooks/PKT9NNX\",\n \"html_url\": null\n },\n \"incident\": {\n \"incident_number\": 33,\n \"title\": \"My new incident\",\n \"description\": \"My new incident\",\n \"created_at\": \"2017-09-26T15:14:36Z\",\n \"status\": \"resolved\",\n \"pending_actions\": [],\n \"incident_key\": null,\n \"service\": {\n \"id\": \"PN49J75\",\n \"name\": \"Production XDB Cluster\",\n \"description\": \"This service was created during onboarding on July 5, 2017.\",\n \"auto_resolve_timeout\": 14400,\n \"acknowledgement_timeout\": 1800,\n \"created_at\": \"2017-07-05T17:33:09Z\",\n \"status\": \"active\",\n \"last_incident_timestamp\": \"2017-09-26T15:14:36Z\",\n \"teams\": [\n {\n \"id\": \"P4SI59S\",\n \"type\": \"team_reference\",\n \"summary\": \"Engineering\",\n \"self\": \"https://api.pagerduty.com/teams/P4SI59S\",\n \"html_url\": \"https://webdemo.pagerduty.com/teams/P4SI59S\"\n }\n ],\n \"incident_urgency_rule\": {\n \"type\": \"constant\",\n \"urgency\": \"high\"\n },\n \"scheduled_actions\": [],\n \"support_hours\": null,\n \"escalation_policy\": {\n \"id\": \"PINYWEF\",\n \"type\": \"escalation_policy_reference\",\n \"summary\": \"Default\",\n \"self\": \"https://api.pagerduty.com/escalation_policies/PINYWEF\",\n \"html_url\": \"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\"\n },\n \"addons\": [],\n \"privilege\": null,\n \"alert_creation\": \"create_alerts_and_incidents\",\n \"integrations\": [\n {\n \"id\": \"PUAYF96\",\n \"type\": \"generic_events_api_inbound_integration_reference\",\n \"summary\": \"API\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75/integrations/PUAYF96\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75/integrations/PUAYF96\"\n },\n {\n \"id\": \"P90GZUH\",\n \"type\": \"generic_email_inbound_integration_reference\",\n \"summary\": \"Email\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75/integrations/P90GZUH\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75/integrations/P90GZUH\"\n }\n ],\n \"metadata\": {},\n \"type\": \"service\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n },\n \"assignments\": [\n {\n \"at\": \"2017-09-26T15:16:05Z\",\n \"assignee\": {\n \"id\": \"PFBSJ2Z\",\n \"type\": \"user_reference\",\n \"summary\": \"Wiley Jacobson\",\n \"self\": \"https://api.pagerduty.com/users/PFBSJ2Z\",\n \"html_url\": \"https://webdemo.pagerduty.com/users/PFBSJ2Z\"\n }\n }\n ],\n \"acknowledgements\": [],\n \"last_status_change_at\": \"2017-09-26T15:18:09Z\",\n \"last_status_change_by\": {\n \"id\": \"P553OPV\",\n \"type\": \"user_reference\",\n \"summary\": \"Laura Haley\",\n \"self\": \"https://api.pagerduty.com/users/P553OPV\",\n \"html_url\": \"https://webdemo.pagerduty.com/users/P553OPV\"\n },\n \"first_trigger_log_entry\": {\n \"id\": \"R2XGXEI3W0FHMSDXHDIBQGBQ5E\",\n \"type\": \"trigger_log_entry_reference\",\n \"summary\": \"Triggered through the website\",\n \"self\": \"https://api.pagerduty.com/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\",\n \"html_url\": \"https://webdemo.pagerduty.com/incidents/PRORDTY/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\"\n },\n \"escalation_policy\": {\n \"id\": \"PINYWEF\",\n \"type\": \"escalation_policy_reference\",\n \"summary\": \"Default\",\n \"self\": \"https://api.pagerduty.com/escalation_policies/PINYWEF\",\n \"html_url\": \"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\"\n },\n \"privilege\": null,\n \"teams\": [\n {\n \"id\": \"P4SI59S\",\n \"type\": \"team_reference\",\n \"summary\": \"Engineering\",\n \"self\": \"https://api.pagerduty.com/teams/P4SI59S\",\n \"html_url\": \"https://webdemo.pagerduty.com/teams/P4SI59S\"\n }\n ],\n \"alert_counts\": {\n \"all\": 0,\n \"triggered\": 0,\n \"resolved\": 0\n },\n \"impacted_services\": [\n {\n \"id\": \"PN49J75\",\n \"type\": \"service_reference\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n }\n ],\n \"is_mergeable\": true,\n \"basic_alert_grouping\": null,\n \"alert_grouping\": null,\n \"metadata\": {},\n \"external_references\": [\n {\n \"id\": \"PLF5V5G\",\n \"type\": \"incident_external_reference\",\n \"summary\": \"Slack\",\n \"self\": null,\n \"html_url\": null,\n \"external_id\": \"1506438878.000302\",\n \"external_url\": \"http://webdemo.slack.com/archives/C6975FLAZ/p1506438878.000302\",\n \"sync\": false,\n \"webhook\": {\n \"id\": \"PRXV5AH\",\n \"type\": \"webhook_reference\",\n \"summary\": \"Slack M2M\",\n \"self\": \"https://api.pagerduty.com/webhooks/PRXV5AH\",\n \"html_url\": null\n }\n }\n ],\n \"importance\": null,\n \"resolve_reason\": null,\n \"incidents_responders\": [],\n \"responder_requests\": [],\n \"subscriber_requests\": [],\n \"urgency\": \"high\",\n \"id\": \"PRORDTY\",\n \"type\": \"incident\",\n \"summary\": \"[#33] My new incident\",\n \"self\": \"https://api.pagerduty.com/incidents/PRORDTY\",\n \"html_url\": \"https://webdemo.pagerduty.com/incidents/PRORDTY\"\n },\n \"id\": \"e82195c0-a2cd-11e7-8f69-22000affca53\",\n \"created_on\": \"2017-09-26T15:18:09Z\"\n }\n ]\n}\n", "language": "json", "name": "incident.resolve" }, { "code": "{\n \"messages\": [\n {\n \"event\": \"incident.assign\",\n \"log_entries\": [\n {\n \"id\": \"R6XNGC35VF6U1TUSVIE2DWXD4Z\",\n \"type\": \"assign_log_entry\",\n \"summary\": \"Assigned to Wiley Jacobson by Laura Haley\",\n \"self\": \"https://api.pagerduty.com/log_entries/R6XNGC35VF6U1TUSVIE2DWXD4Z\",\n \"html_url\": null,\n \"created_at\": \"2017-09-26T15:16:05Z\",\n \"agent\": {\n \"id\": \"P553OPV\",\n \"type\": \"user_reference\",\n \"summary\": \"Laura Haley\",\n \"self\": \"https://api.pagerduty.com/users/P553OPV\",\n \"html_url\": \"https://webdemo.pagerduty.com/users/P553OPV\"\n },\n \"channel\": {\n \"type\": \"website\"\n },\n \"service\": {\n \"id\": \"PN49J75\",\n \"type\": \"service_reference\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n },\n \"incident\": {\n \"id\": \"PRORDTY\",\n \"type\": \"incident_reference\",\n \"summary\": \"[#33] My new incident\",\n \"self\": \"https://api.pagerduty.com/incidents/PRORDTY\",\n \"html_url\": \"https://webdemo.pagerduty.com/incidents/PRORDTY\"\n },\n \"teams\": [\n {\n \"id\": \"P4SI59S\",\n \"type\": \"team_reference\",\n \"summary\": \"Engineering\",\n \"self\": \"https://api.pagerduty.com/teams/P4SI59S\",\n \"html_url\": \"https://webdemo.pagerduty.com/teams/P4SI59S\"\n }\n ],\n \"contexts\": [],\n \"assignees\": [\n {\n \"id\": \"PFBSJ2Z\",\n \"type\": \"user_reference\",\n \"summary\": \"Wiley Jacobson\",\n \"self\": \"https://api.pagerduty.com/users/PFBSJ2Z\",\n \"html_url\": \"https://webdemo.pagerduty.com/users/PFBSJ2Z\"\n }\n ]\n }\n ],\n \"webhook\": {\n \"endpoint_url\": \"https://requestb.in/18ao6fs1\",\n \"name\": \"V2 wabhook\",\n \"description\": null,\n \"webhook_object\": {\n \"id\": \"PN49J75\",\n \"type\": \"service_reference\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n },\n \"config\": {},\n \"outbound_integration\": {\n \"id\": \"PJFWPEP\",\n \"type\": \"outbound_integration_reference\",\n \"summary\": \"Generic V2 Webhook\",\n \"self\": \"https://api.pagerduty.com/outbound_integrations/PJFWPEP\",\n \"html_url\": null\n },\n \"accounts_addon\": null,\n \"id\": \"PKT9NNX\",\n \"type\": \"webhook\",\n \"summary\": \"V2 wabhook\",\n \"self\": \"https://api.pagerduty.com/webhooks/PKT9NNX\",\n \"html_url\": null\n },\n \"incident\": {\n \"incident_number\": 33,\n \"title\": \"My new incident\",\n \"description\": \"My new incident\",\n \"created_at\": \"2017-09-26T15:14:36Z\",\n \"status\": \"triggered\",\n \"pending_actions\": [\n {\n \"type\": \"resolve\",\n \"at\": \"2017-09-26T19:14:36Z\"\n }\n ],\n \"incident_key\": null,\n \"service\": {\n \"id\": \"PN49J75\",\n \"name\": \"Production XDB Cluster\",\n \"description\": \"This service was created during onboarding on July 5, 2017.\",\n \"auto_resolve_timeout\": 14400,\n \"acknowledgement_timeout\": 1800,\n \"created_at\": \"2017-07-05T17:33:09Z\",\n \"status\": \"critical\",\n \"last_incident_timestamp\": \"2017-09-26T15:14:36Z\",\n \"teams\": [\n {\n \"id\": \"P4SI59S\",\n \"type\": \"team_reference\",\n \"summary\": \"Engineering\",\n \"self\": \"https://api.pagerduty.com/teams/P4SI59S\",\n \"html_url\": \"https://webdemo.pagerduty.com/teams/P4SI59S\"\n }\n ],\n \"incident_urgency_rule\": {\n \"type\": \"constant\",\n \"urgency\": \"high\"\n },\n \"scheduled_actions\": [],\n \"support_hours\": null,\n \"escalation_policy\": {\n \"id\": \"PINYWEF\",\n \"type\": \"escalation_policy_reference\",\n \"summary\": \"Default\",\n \"self\": \"https://api.pagerduty.com/escalation_policies/PINYWEF\",\n \"html_url\": \"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\"\n },\n \"addons\": [],\n \"privilege\": null,\n \"alert_creation\": \"create_alerts_and_incidents\",\n \"integrations\": [\n {\n \"id\": \"PUAYF96\",\n \"type\": \"generic_events_api_inbound_integration_reference\",\n \"summary\": \"API\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75/integrations/PUAYF96\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75/integrations/PUAYF96\"\n },\n {\n \"id\": \"P90GZUH\",\n \"type\": \"generic_email_inbound_integration_reference\",\n \"summary\": \"Email\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75/integrations/P90GZUH\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75/integrations/P90GZUH\"\n }\n ],\n \"metadata\": {},\n \"type\": \"service\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n },\n \"assignments\": [\n {\n \"at\": \"2017-09-26T15:16:05Z\",\n \"assignee\": {\n \"id\": \"PFBSJ2Z\",\n \"type\": \"user_reference\",\n \"summary\": \"Wiley Jacobson\",\n \"self\": \"https://api.pagerduty.com/users/PFBSJ2Z\",\n \"html_url\": \"https://webdemo.pagerduty.com/users/PFBSJ2Z\"\n }\n }\n ],\n \"acknowledgements\": [],\n \"last_status_change_at\": \"2017-09-26T15:16:05Z\",\n \"last_status_change_by\": {\n \"id\": \"PN49J75\",\n \"type\": \"service_reference\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n },\n \"first_trigger_log_entry\": {\n \"id\": \"R2XGXEI3W0FHMSDXHDIBQGBQ5E\",\n \"type\": \"trigger_log_entry_reference\",\n \"summary\": \"Triggered through the website\",\n \"self\": \"https://api.pagerduty.com/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\",\n \"html_url\": \"https://webdemo.pagerduty.com/incidents/PRORDTY/log_entries/R2XGXEI3W0FHMSDXHDIBQGBQ5E\"\n },\n \"escalation_policy\": {\n \"id\": \"PINYWEF\",\n \"type\": \"escalation_policy_reference\",\n \"summary\": \"Default\",\n \"self\": \"https://api.pagerduty.com/escalation_policies/PINYWEF\",\n \"html_url\": \"https://webdemo.pagerduty.com/escalation_policies/PINYWEF\"\n },\n \"privilege\": null,\n \"teams\": [\n {\n \"id\": \"P4SI59S\",\n \"type\": \"team_reference\",\n \"summary\": \"Engineering\",\n \"self\": \"https://api.pagerduty.com/teams/P4SI59S\",\n \"html_url\": \"https://webdemo.pagerduty.com/teams/P4SI59S\"\n }\n ],\n \"alert_counts\": {\n \"all\": 0,\n \"triggered\": 0,\n \"resolved\": 0\n },\n \"impacted_services\": [\n {\n \"id\": \"PN49J75\",\n \"type\": \"service_reference\",\n \"summary\": \"Production XDB Cluster\",\n \"self\": \"https://api.pagerduty.com/services/PN49J75\",\n \"html_url\": \"https://webdemo.pagerduty.com/services/PN49J75\"\n }\n ],\n \"is_mergeable\": true,\n \"basic_alert_grouping\": null,\n \"alert_grouping\": null,\n \"metadata\": {},\n \"external_references\": [\n {\n \"id\": \"PLF5V5G\",\n \"type\": \"incident_external_reference\",\n \"summary\": \"Slack\",\n \"self\": null,\n \"html_url\": null,\n \"external_id\": \"1506438878.000302\",\n \"external_url\": \"http://webdemo.slack.com/archives/C6975FLAZ/p1506438878.000302\",\n \"sync\": false,\n \"webhook\": {\n \"id\": \"PRXV5AH\",\n \"type\": \"webhook_reference\",\n \"summary\": \"Slack M2M\",\n \"self\": \"https://api.pagerduty.com/webhooks/PRXV5AH\",\n \"html_url\": null\n }\n }\n ],\n \"importance\": null,\n \"incidents_responders\": [],\n \"responder_requests\": [],\n \"subscriber_requests\": [],\n \"urgency\": \"high\",\n \"id\": \"PRORDTY\",\n \"type\": \"incident\",\n \"summary\": \"[#33] My new incident\",\n \"self\": \"https://api.pagerduty.com/incidents/PRORDTY\",\n \"html_url\": \"https://webdemo.pagerduty.com/incidents/PRORDTY\"\n },\n \"id\": \"9e7850d0-a2cd-11e7-8f69-22000affca53\",\n \"created_on\": \"2017-09-26T15:16:05Z\"\n }\n ]\n}\n", "language": "json", "name": "incident.assign" } ] } [/block] [block:api-header] { "type": "basic", "title": "Webhook IPs" } [/block] See our knowledge base article [Whitelisting IPs](https://support.pagerduty.com/docs/whitelisting-ips#section-webhooks) for information on obtaining the list of IPs webhooks may come from.