Uptimeify Docs

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 Unauthorized wenn du nicht angemeldet bist
  • 403 Forbidden wenn du keine ausreichenden Berechtigungen hast

Auf dieser Seite