Integrations
Preview

Connect Opsgenie, or change the connection

Checks the API key with Opsgenie before keeping anything and keeps it in the secret store; the key is write-only and is never returned. The first connection also makes the signing token and returns it once in `signingToken`; connecting again changes the name, region, toggle and, when `apiKey` is giv

PUT
/opsgenie
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
name*string
Length1 <= length <= 100
region*string

US uses api.opsgenie.com, EU uses api.eu.opsgenie.com.

Value in"us""eu"
apiKey?string

The API key. Required the first time; later an empty one keeps the key that is there. Never returned.

openAlerts?boolean

Create an Opsgenie alert when Wardn opens an incident on its own.

Response Body

The connection.

application/json
  1. response
name*string
region*string
Value in"us""eu"
baseUrl*string

The REST API's address for the region.

webhookPath*string

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

openAlerts*boolean
signingToken?string

The token webhooks must carry. Shown once, when the connection is first made.

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