Websites auflisten

GET /api/websites

Websites auflisten

GET /api/websites

Listet Websites innerhalb einer Organisation auf (paginiert). Die Ergebnisse sind durch deine Session/Permissions eingeschränkt.

Query Parameter

  • organizationId (optional): Standard ist deine Session-Organisation.
  • customerId (optional): Filtert nach Kunde.
  • search (optional): Suche nach Website-/Kundenfeldern.
  • monitoringType (optional): combined | http_status | ssl_check | playwright | heartbeat | dns
  • excludeMonitoringType (optional): wie monitoringType
  • page (optional, Standard: 1)
  • perPage (optional, Standard: 50, max: 200)

Beispiel (cURL)

BASE_URL="https://uptimeify.io"
TOKEN="<dein-api-token>"

curl -X GET "$BASE_URL/api/websites?organizationId=1&page=1&perPage=50" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Accept: application/json"

Antwort (Response)

{
  "items": [
    {
      "id": 101,
      "publicId": "11111111-1111-4111-8111-111111111111",
      "customerId": 1,
      "customerPublicId": "22222222-2222-4222-8222-222222222222",
      "customerName": "Acme Corp",
      "name": "Haupt-Marketing-Seite",
      "url": "https://example.com",
      "status": "active",
      "monitoringType": "combined",
      "checkInterval": 1,
      "createdAt": "2026-02-26T12:00:00.000Z"
    }
  ],
  "total": 1,
  "page": 1,
  "perPage": 50
}

Jedes Item enthält flache Felder customerName und customerPublicId, aber kein vollständig eingebettetes customer-Objekt.

Häufige Fehler

  • 400 Invalid customerId wenn customerId ungültig ist
  • 400 Invalid monitoringType wenn monitoringType nicht unterstützt wird
  • 401 Unauthorized wenn du nicht angemeldet bist
  • 403 Forbidden wenn du keinen Zugriff auf die Organisation hast