Skip to Content

PagerDuty action reference

This page is generated from the plugin registry. Do not edit it by hand.

Trigger, acknowledge and resolve PagerDuty incidents

For guidance and examples see the PagerDuty guide.

Set actionType in a node’s config to the action type shown under each heading. See the workflow definition page for the node format.

ActionAction type
Trigger Incidentpagerduty/trigger-incident
Acknowledge Incidentpagerduty/acknowledge-incident
Send Change Eventpagerduty/send-change-event
Resolve Incidentpagerduty/resolve-incident
Create Incident (override policy, urgency, priority)pagerduty/create-incident

Trigger Incident

Action type: pagerduty/trigger-incident. Connection: required (pagerduty).

Open or update a PagerDuty alert on a service, with a dedup key so repeat runs do not page again

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
pagerdutyServiceIdstringYesPagerDuty service. Read from the selected connection’s account. The node stores the service id, so renaming the service in PagerDuty changes nothing here.
summarystringYesSummary. Becomes the alert title. PagerDuty’s limit is 1024 characters; anything longer is shortened rather than rejected, because an alert with a cut title still wakes the right person. The Preview below says when a value is over, and the node’s fieldsTrimmed output says so after a run, since a template can only be measured once it has rendered.
severitystringNoerrorcritical, error, warning, info, or a templateSeverity. How bad the condition is. Accepts a {{template}} from an earlier step; anything that does not resolve to one of these four is sent as error. On a service using dynamic urgency, critical and error page at high urgency while warning and info do not; on other services the urgency rule decides. Priority (P1, P2) cannot be set on an event at all - PagerDuty assigns it from the service’s Event Orchestration rules, or use Create Incident to set one directly.
sourcestringNoSource. PagerDuty requires a source. Defaults to this node’s name. Shortened past 1024 characters, and the node says when it did.
dedupKeystringNoDedup key. PagerDuty groups events that share this key. Blank means one open alert per node, so a check that keeps failing updates that alert instead of paging again. Put a vault or chain id in here to page per subject. PagerDuty’s limit is 255 characters and a longer one is shortened - which matters here more than elsewhere, because two keys that differ only after character 255 become one alert.
componentstringNoComponent. The part of the source the event is about. Shortened past 1024 characters, and the node says when it did.
groupstringNoGroup. A logical grouping of components. Shortened past 1024 characters, and the node says when it did.
classstringNoClass. The type of event, used by PagerDuty event rules. Shortened past 1024 characters, and the node says when it did.
customDetailsstringNoCustom details. JSON object shown on the incident. The workflow, run and node ids are added automatically. PagerDuty rejects an event over 512 KB outright, so if the whole event would exceed it these are dropped and replaced by a note rather than losing the page; the node’s detailsTruncated output says when that happened.
linksstringNoLinks. One per line, as text | url, or just a url. The url has to be https. They become clickable links on the incident - an explorer transaction or a dashboard is usually the first thing a responder wants. A line that is not an https url is skipped rather than failing the page; the Preview below shows what will be sent, and the node’s linksDropped output counts what was not.
backupIntegrationIdstringNoBackup connection. When the page cannot be delivered, the same alert and the reason are posted here instead. Only existing Discord, Slack and Telegram connections are offered, so a workflow cannot point this at a new host.
backupDestinationstringNoBackup channel or chat id. Slack and Telegram need one; a Discord connection already carries its webhook.
treatMaintenanceAsUndeliveredstringNofalsefalse, trueTreat a maintenance window as undelivered. A service in a maintenance window takes the event and raises no incident. Off, the node reports that. On, it is treated like any other undelivered page, so the backup fires.
consecutiveRunsnumberNomin 1, max 20Consecutive runs before paging. Pages on the Nth run in a row that reaches this node; one run that does not reach it resets the count. On a schedule of every X minutes, N delays the first page by about (N-1) times X - at 3 on an hourly cron that is two hours. Held runs are recorded, not silent. Default 1.
retryAttemptsnumberNomin 0, max 5Retry attempts. Extra attempts after the first, for connection failures and the statuses worth another try (408, 425, 429, 5xx). A 400 from PagerDuty is a payload problem and is never retried. Every event carries a dedup key, so an event that arrives twice updates one alert instead of paging twice. Default 2, max 5.
retryDelaynumberNomin 0, max 15Retry delay (seconds). Linear backoff: attempt N waits this many seconds times N. A rate-limited request waits for the delay PagerDuty reports instead. Default 1, max 15.
failOnErrorbooleanNotrueFail the workflow if the page could not be delivered. On by default, and it covers every way a page fails to land: a rejection, a timeout, an outage, a deleted service. Turn it off to keep the run going and branch on the node’s status output instead - it is the one that separates a real page from an event a maintenance window swallowed.

Outputs

OutputDescription
deliveredWhether PagerDuty accepted the event
dedupKeyKey that identifies the alert
statustriggered, suppressed when the service took the event and raised no incident, held by the consecutive-runs guard, or failed when the event could not be delivered
consecutiveRunsRuns in a row that reached this node
requiredRunsRuns in a row configured before paging
errorWhy the event was not delivered, when it was not
backupAttemptedWhether a backup notification was sent
backupDeliveredWhether the backup notification landed
backupChanneldiscord, slack or telegram
backupErrorWhy the backup notification failed, when it did
serviceStatusPagerDuty’s service status when the event was sent
suppressedByServiceTrue when the service was in maintenance, so PagerDuty took the event and raised no incident
detailsTruncatedTrue when custom details were dropped for size
linksDroppedHow many lines of the links field were not an https url, so were not sent
fieldsTrimmedWhich fields were over PagerDuty’s limit and were shortened, with their lengths
summaryFellBackTrue when the summary template rendered to nothing and the alert went out under a stand-in title
messagePagerDuty’s own response message

External documentation: https://docs.keeperhub.com/plugins/pagerduty 

Acknowledge Incident

Action type: pagerduty/acknowledge-incident. Connection: required (pagerduty).

Acknowledge the alert carrying this dedup key. This stops PagerDuty escalating it, so use it only once a human has been told - an automated acknowledge means nobody is paged further

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
pagerdutyServiceIdstringYesPagerDuty service. Read from the selected connection’s account. The node stores the service id, so renaming the service in PagerDuty changes nothing here.
dedupKeyFromNodeIdstringNoTrigger Incident node this closes. Its dedup key is reused here, so the two always match. Pick the node rather than referencing its output: on the healthy branch the trigger never ran, so a template reference cannot resolve.
dedupKeystringNoDedup key of the alert. Only needed when the trigger sets its own dedup key: put the same value here. PagerDuty requires a key for acknowledge and resolve, and drops an event whose key matches no open alert - with a 202, so it looks exactly like success. The service must be the same one the trigger used, too.
verifyWithPagerDutystringNotruetrue, falseConfirm with PagerDuty afterwards. PagerDuty answers 202 even when nothing matched. On, the node reads the incident back and reports its real status. Needs incidents.read: a read-only API key already has it, but a scoped OAuth app only has what it was granted, and the two scopes the form asks for do not include it. Without it the node still acknowledges or resolves and reports the status as unknown.
sendDelaySecondsnumberNomin 0, max 5Wait before sending (seconds). Holds the acknowledge back before sending it. For the case where two runs of this workflow overlap and the healthy one finishes first: the acknowledge can then reach PagerDuty before the trigger it is acting on, and PagerDuty drops an update matching no open alert - with a 202, so it looks like success - leaving PagerDuty escalating an incident this workflow believes it has taken responsibility for. A second or two loses that race on purpose. It costs exactly that much time on every run, so leave it at 0 unless runs of this workflow can overlap. Default 0, max 5.
retryAttemptsnumberNomin 0, max 5Retry attempts. Extra attempts after the first, for connection failures and the statuses worth another try (408, 425, 429, 5xx). A 400 from PagerDuty is a payload problem and is never retried. Every event carries a dedup key, so an event that arrives twice updates one alert instead of paging twice. Default 2, max 5.
retryDelaynumberNomin 0, max 15Retry delay (seconds). Linear backoff: attempt N waits this many seconds times N. A rate-limited request waits for the delay PagerDuty reports instead. Default 1, max 15.
failOnErrorbooleanNotrueFail the workflow if the page could not be delivered. On by default, and it covers every way a page fails to land: a rejection, a timeout, an outage, a deleted service. Turn it off to keep the run going and branch on the node’s status output instead - it is the one that separates a real page from an event a maintenance window swallowed.

Outputs

OutputDescription
deliveredWhether PagerDuty accepted the event
dedupKeyKey of the alert that was acknowledged
incidentStatusIncident status when the check is on: triggered, acknowledged, resolved, or unknown
incidentPriorityThe incident’s priority when the check is on and it has one
incidentUrlLink to the incident, when the check found it
errorWhy the event was not delivered, when it was not and the node was told not to fail the run
verificationErrorWhy the check could not read the incident back, when it could not
delayedSecondsSeconds this node waited before sending, when it was asked to wait
actionacknowledge or resolve
messagePagerDuty’s own response message

External documentation: https://docs.keeperhub.com/plugins/pagerduty 

Send Change Event

Action type: pagerduty/send-change-event. Connection: required (pagerduty).

Record a deploy or configuration change on a service timeline. Never pages anyone

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
pagerdutyServiceIdstringYesPagerDuty service. Read from the selected connection’s account. The node stores the service id, so renaming the service in PagerDuty changes nothing here.
summarystringYesSummary. What changed. Shown on the service’s activity timeline.
sourcestringNoSource.
customDetailsstringNoCustom details.
retryAttemptsnumberNomin 0, max 5Retry attempts. Extra attempts after the first, for connection failures and the statuses worth another try (408, 425, 429, 5xx). A 400 from PagerDuty is a payload problem and is never retried. A change event carries no dedup key, so one that is delivered but whose response is lost leaves a second entry on the service timeline - a duplicate deploy marker, which is worth the retry because a missing one is not. Default 2, max 5.
retryDelaynumberNomin 0, max 15Retry delay (seconds). Linear backoff: attempt N waits this many seconds times N. A rate-limited request waits for the delay PagerDuty reports instead. Default 1, max 15.
failOnErrorbooleanNotrueFail the workflow if the page could not be delivered. On by default, and it covers every way a page fails to land: a rejection, a timeout, an outage, a deleted service. Turn it off to keep the run going and branch on the node’s status output instead - it is the one that separates a real page from an event a maintenance window swallowed.

Outputs

OutputDescription
deliveredWhether PagerDuty accepted the change event
fieldsTrimmedWhich fields were over PagerDuty’s limit and were shortened, with their lengths
errorWhy the change event was not delivered, when it was not and the node was told not to fail the run
messagePagerDuty’s own response message

External documentation: https://docs.keeperhub.com/plugins/pagerduty 

Resolve Incident

Action type: pagerduty/resolve-incident. Connection: required (pagerduty).

Close the alert carrying this dedup key. PagerDuty drops it silently when no open alert matches, so this is a no-op rather than an error

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
pagerdutyServiceIdstringYesPagerDuty service. Read from the selected connection’s account. The node stores the service id, so renaming the service in PagerDuty changes nothing here.
dedupKeyFromNodeIdstringNoTrigger Incident node this closes. Its dedup key is reused here, so the two always match. Pick the node rather than referencing its output: on the healthy branch the trigger never ran, so a template reference cannot resolve.
dedupKeystringNoDedup key of the alert. Only needed when the trigger sets its own dedup key: put the same value here. PagerDuty requires a key for acknowledge and resolve, and drops an event whose key matches no open alert - with a 202, so it looks exactly like success. The service must be the same one the trigger used, too.
verifyWithPagerDutystringNotruetrue, falseConfirm with PagerDuty afterwards. PagerDuty answers 202 even when nothing matched. On, the node reads the incident back and reports its real status. Needs incidents.read: a read-only API key already has it, but a scoped OAuth app only has what it was granted, and the two scopes the form asks for do not include it. Without it the node still acknowledges or resolves and reports the status as unknown.
sendDelaySecondsnumberNomin 0, max 5Wait before sending (seconds). Holds the resolve back before sending it. For the case where two runs of this workflow overlap and the healthy one finishes first: the resolve can then reach PagerDuty before the trigger it is acting on, and PagerDuty drops an update matching no open alert - with a 202, so it looks like success - leaving an incident nobody closes. A second or two loses that race on purpose. It costs exactly that much time on every run, so leave it at 0 unless runs of this workflow can overlap. Default 0, max 5.
retryAttemptsnumberNomin 0, max 5Retry attempts. Extra attempts after the first, for connection failures and the statuses worth another try (408, 425, 429, 5xx). A 400 from PagerDuty is a payload problem and is never retried. Every event carries a dedup key, so an event that arrives twice updates one alert instead of paging twice. Default 2, max 5.
retryDelaynumberNomin 0, max 15Retry delay (seconds). Linear backoff: attempt N waits this many seconds times N. A rate-limited request waits for the delay PagerDuty reports instead. Default 1, max 15.
failOnErrorbooleanNotrueFail the workflow if the page could not be delivered. On by default, and it covers every way a page fails to land: a rejection, a timeout, an outage, a deleted service. Turn it off to keep the run going and branch on the node’s status output instead - it is the one that separates a real page from an event a maintenance window swallowed.

Outputs

OutputDescription
deliveredWhether PagerDuty accepted the event
dedupKeyKey of the alert that was resolved
incidentStatusIncident status when the check is on: triggered, acknowledged, resolved, or unknown
incidentPriorityThe incident’s priority when the check is on and it has one
incidentUrlLink to the incident, when the check found it
errorWhy the event was not delivered, when it was not and the node was told not to fail the run
verificationErrorWhy the check could not read the incident back, when it could not
delayedSecondsSeconds this node waited before sending, when it was asked to wait
actionacknowledge or resolve
messagePagerDuty’s own response message

External documentation: https://docs.keeperhub.com/plugins/pagerduty 

Create Incident (override policy, urgency, priority)

Action type: pagerduty/create-incident. Connection: required (pagerduty).

Create an incident directly, with an escalation policy override and urgency. Needs a write-capable token

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
pagerdutyServiceIdstringYesPagerDuty service. Read from the selected connection’s account. The node stores the service id, so renaming the service in PagerDuty changes nothing here.
titlestringYesTitle. Shortened past 1024 characters, the same ceiling an alert summary carries, and the node’s fieldsTrimmed output says when it was.
detailsstringNoDetails.
pagerdutyEscalationPolicyIdstringNoEscalation policy. Optional. Leave blank to page the service’s own policy, which is what every Events API action does.
fallbackToServicePolicybooleanNotrueFall back to the service policy if that one is gone. On by default: a policy that has been deleted should not stop the incident, because paging the default rota beats paging nobody. The node’s output says when it fell back.
urgencystringNoservice-defaultservice-default, high, low, or a templateUrgency. High urgency notifies on-call the way the escalation policy says; low urgency does not page. Left at the service default, PagerDuty decides from the service’s urgency rule. Accepts a {{template}}; anything that does not resolve to high or low uses the service default.
pagerdutyPriorityIdstringNoPriority. The account’s incident priorities (P1, P2, and so on), read from PagerDuty. A paid-plan feature: an account without it shows nothing here. A scoped OAuth connection also needs priorities.read to list them. Only this REST action can set a priority - an Events API alert takes its priority from the account’s Event Orchestration rules instead.
incidentKeystringNoIncident key. PagerDuty rejects a repeat of an open incident’s key rather than merging it, unlike the Events API dedup key. Leave blank unless you are deliberately guarding against a double-create. Shortened past 255 characters.
fromEmailstringNoFrom email. The PagerDuty user the incident is attributed to. Required by PagerDuty for this call.
failOnErrorbooleanNotrueFail workflow if PagerDuty rejects the incident.

Outputs

OutputDescription
incidentIdPagerDuty incident id
incidentNumberIncident number
incidentUrlLink to the incident
statusIncident status as PagerDuty created it
escalationPolicyFellBackTrue when the chosen policy was gone and the service’s own was used
deliveredWhether PagerDuty created the incident
fieldsTrimmedWhich fields were over PagerDuty’s limit and were shortened, with their lengths
priorityIdThe priority the incident was created with, when one was chosen
errorWhy the incident was not created, when it was not and the node was told not to fail the run

External documentation: https://docs.keeperhub.com/plugins/pagerduty