Read Opsgenie now
Reads the schedules now instead of waiting for the next run and answers how the integration then stands. A read that fails is not an error of this request: it is recorded in `syncError` and makes Opsgenie `stale`. Needs `integration:manage`.
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 <= 255The integration.
application/json- response
standing*OpsgenieStanding"not_connected""ok""stale"connection?syncedAt?stringdate-timesyncError?stringlastAlertAt?stringWhen the last webhook was believed.
date-timetokenMask?stringThe signing token as its prefix and last four characters, such as whtok_••••3b9e.
paused*booleanrefs*array<>mappings*array<>schedules*array<>curl -X POST 'https://wardn.example.com/api/v1/opsgenie/sync'{ "standing": "not_connected", "connection": { "name": "string", "region": "us", "baseUrl": "string", "webhookPath": "string", "openAlerts": true, "signingToken": "string", "connectedAt": "2019-08-24T14:15:22Z" }, "syncedAt": "2019-08-24T14:15:22Z", "syncError": "string", "lastAlertAt": "2019-08-24T14:15:22Z", "tokenMask": "string", "paused": true, "refs": [ { "field": "string", "ref": "string", "found": true } ], "mappings": [ { "tag": "string", "environment": "string", "minPriority": 1 } ], "schedules": [ { "scheduleId": "string", "scheduleName": "string", "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55", "known": true, "onCall": [ "string" ], "lastError": "string", "checkedAt": "2019-08-24T14:15:22Z" } ]}Map Opsgenie schedules to on-call groups PUT
Replaces which on-call group each Opsgenie schedule fills. Who is on call is read on a schedule, matched by verified email to members of the organization. A group is filled by one schedule. Needs `integration:manage`.
Test the Opsgenie connection POST
Makes real calls to Opsgenie with the stored key and says how long they took, the region and how many schedules are visible. It changes nothing. Needs `integration:manage`.