Connect PagerDuty
Checks the REST API key with PagerDuty before keeping anything, keeps it in the secret store, and records the connection. The first connection also makes the secret PagerDuty signs its webhooks with, and returns it once in `webhookSecret`; connecting again keeps the webhook address and secret. Point
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
Idempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
baseUrl?stringThe REST API's address; empty is https://api.pagerduty.com. EU accounts use https://api.eu.pagerduty.com.
token*stringA REST API key that can read incidents, services and schedules.
The connection.
application/json- response
baseUrl*stringwebhookPath*stringThe address PagerDuty is told to call, such as /api/v1/webhooks/pagerduty/<id>.
webhookSecret?stringThe secret webhooks are signed with. Shown once, when the connection is first made.
connectedAt*stringdate-timecurl -X PUT 'https://wardn.example.com/api/v1/pagerduty' \ -H 'Content-Type: application/json' \ -d '{ "token": "string"}'{ "baseUrl": "string", "webhookPath": "string", "webhookSecret": "string", "connectedAt": "2019-08-24T14:15:22Z"}Disconnect PagerDuty DELETE
Removes the connection, its webhook address, its secrets and what was mapped. Incidents already mirrored stay. On-call groups it filled are emptied as they next sync. Disconnecting what is not connected changes nothing. Needs `integration:manage`.
Map PagerDuty services to deployments PUT
Replaces which deployments each PagerDuty service affects. An incident on a mapped service is linked to those deployments, with the snapshot each was running, the next time it is read. Needs `integration:manage`.