Integrations
Preview

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

PUT
/pagerduty
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

Idempotency-Key?string

Makes 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.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255
application/json
  1. body
baseUrl?string

The REST API's address; empty is https://api.pagerduty.com. EU accounts use https://api.eu.pagerduty.com.

token*string

A REST API key that can read incidents, services and schedules.

Response Body

The connection.

application/json
  1. response
baseUrl*string
webhookPath*string

The address PagerDuty is told to call, such as /api/v1/webhooks/pagerduty/<id>.

webhookSecret?string

The secret webhooks are signed with. Shown once, when the connection is first made.

connectedAt*string
Formatdate-time
Example Request
curl -X PUT 'https://wardn.example.com/api/v1/pagerduty' \  -H 'Content-Type: application/json' \  -d '{  "token": "string"}'
Example Response
{  "baseUrl": "string",  "webhookPath": "string",  "webhookSecret": "string",  "connectedAt": "2019-08-24T14:15:22Z"}