Overview
A client-mode connector for a curated ITSM / alerting slice of PagerDuty Events API v2 and the REST API:
Default
BASE_ADDRESS is https://api.pagerduty.com. Topics use itsm/pagerduty/<object>/<verb>.
Events enqueue is not on
api.pagerduty.com. Official path is https://events.pagerduty.com/v2/enqueue. When calling Enqueuetrigger / Enqueueresolve, set connector BASE_ADDRESS to https://events.pagerduty.com (or deploy a second connector copy). Auth for Events is the routing_key field in the JSON body, not an Authorization header.Prefer Hub secrets for API tokens and routing keys. This template has not been verified against a live PagerDuty account. Status remains blocked until an authenticated live smoke succeeds.
Basic Syntax
Events
Auth
Events API v2 (trigger / resolve):- Create an Events API v2 integration on a PagerDuty service; copy the Integration Key.
- Set connector
BASE_ADDRESStohttps://events.pagerduty.com. - Put
routing_keyin the MQTT JSON body (withevent_action, and for resolve adedup_key). No Authorization header. - Prefer Hub secrets /
GET SECRET "PAGERDUTY_ROUTING_KEY". Never commit real keys. - Successful enqueue returns HTTP 202.
- Create a PagerDuty API token (account or user).
- Set connector
BASE_ADDRESStohttps://api.pagerduty.com. - Pass
tokenon the MQTT request payload so headers resolve:Authorization: Token token={value.json.token}
- Use
Accept: application/vnd.pagerduty+json;version=2. - For notes, also pass
from_email→Fromheader (valid account user email). - Store the token in Hub secrets /
GET SECRET "PAGERDUTY_API_TOKEN". Never commit real credentials.
- Obtain an OAuth access token with
incidents.read/incidents.writeas needed. - Change the Authorization header to
Bearer {value.json.access_token}.
Example payloads
Trigger from alarm (BASE_ADDRESS = https://events.pagerduty.com):
Deploy notes
- Deploy
PagerDutyRestApi.lotonly (-addRoute). Do not deployhub-metadata.lotas a connector — it exists for Hub /-listTemplates(ADD METADATA+WITH IMAGEbase64). - Hub category: REST API Connectors.
- Doc link: https://docs.coreflux.org/latest/lot-language/routes/rest-api-apps/pagerduty

