---
title: "Kunde + alle Monitore anlegen"
description: "Dieses Beispiel ist praktisch, wenn du einen Kunden mit einem kompletten Monitoring-Baseline-Setup initialisieren möchtest."
---

High-level Flow:

1. Kunde erstellen
2. Website erstellen
3. Monitore anlegen (je Monitor-Typ einen)

## 1) Kunde + Website erstellen

Nutze dafür:

- [Kunde + Website erstellen](/de/api/examples/create-customer-and-website)

## 2) Monitore anlegen (je Typ einen)

Die Monitor-APIs sind nach Typ organisiert.

API-Referenz-Übersicht:

- [Monitore API](/de/api/monitors)

Typische Monitor-Typen:

- DNS Monitor
- ICMP Monitor
- SMTP Monitor
- SSH Monitor
- TCP-Port-Monitor
- FTP Monitor
- IMAP/POP Monitor

Die genauen Pflichtfelder findest du in der jeweiligen API-Doku pro Typ.

### Beispiel: DNS Monitor erstellen

```bash
curl -X POST "$API_BASE_URL/api/dns-monitors" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "customerId": 123,
    "name": "DNS: deinkunde.com",
    "hostname": "deinkunde.com",
    "dnsConfig": {
      "rrtypes": ["A", "AAAA"],
      "matchMode": "exact",
      "expectedValues": {
        "A": ["93.184.216.34"],
        "AAAA": ["2606:2800:220:1:248:1893:25c8:1946"]
      }
    }
  }'
```

### Beispiel: ICMP Monitor erstellen

```bash
curl -X POST "$API_BASE_URL/api/icmp-monitors" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "customerId": 123,
    "name": "Ping: gateway",
    "hostname": "gateway.deinkunde.com"
  }'
```

### Beispiel: TCP-Port-Monitor erstellen

```bash
curl -X POST "$API_BASE_URL/api/tcp-monitors" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "customerId": 123,
    "name": "Redis Primary",
    "hostname": "redis.deinkunde.com",
    "port": 6379,
    "config": { "expectBanner": "+PONG" }
  }'
```

## Hinweise

- Nicht jede Installation bietet jeden Monitor-Typ an, und Pflichtfelder können je nach Plan/Paket variieren.
- Für Website/HTTP Checks startest du meist in den Website-spezifischen Einstellungen: [Website-Konfiguration API](/de/api/website-configuration)

