Eskalations-Konfiguration abrufen
Gibt die Eskalations-Konfiguration einer Organisation zurück. Der Parameter :id ist die Organisations-ID. Falls noch keine Konfiguration existiert, wird automatisch eine mit Standardwerten angelegt.
GET /api/escalation-config/:id
Gibt außerdem die Standard-Benachrichtigungseinstellungen der Organisation sowie alle Benachrichtigungskanäle zurück.
Beispiel (cURL)
curl -X GET "$BASE_URL/api/escalation-config/1" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json"Antwort (Response)
{
"id": 1,
"organizationId": 1,
"webhookUrl": "https://example.com/webhook",
"webhookMethod": "POST",
"webhookHeaders": { "Content-Type": "application/json" },
"webhookBodyTemplate": "{\"websiteName\":\"{{websiteName}}\",...}",
"webhookTimeout": 30,
"webhookRetryAttempts": 3,
"webhookRetryDelay": 60,
"expectedStatusCodes": "200,201,202,204",
"isActive": false,
"lastTestedAt": null,
"lastTestStatus": null,
"lastTestError": null,
"organization": {
"defaultEmail": "ops@example.com",
"defaultPhoneNumber": "+1234567890",
"defaultNotificationChannels": null,
"defaultNotificationTargets": null,
"defaultNotificationRules": null
},
"notificationChannels": []
}Häufige Fehler
401 Unauthorizedwenn du nicht angemeldet bist403 Forbiddenwenn du keine ausreichenden Berechtigungen hast
Eskalations-Konfiguration
Verwalte die Webhook-Eskalationseinstellungen auf Organisationsebene sowie die Standard-Benachrichtigungskanäle.
Eskalations-Konfiguration testen
Testet die Eskalations-Konfiguration, indem ein Test-Webhook, ein PagerDuty-Event oder eine Pushover-Benachrichtigung gesendet wird. Alle Body-Felder sind optional und überschreiben für den Test die in der DB gespeicherten Werte.