👁️ SSL/Domain Monitor — API

Monitoring of SSL certificates and domain availability with notifications via Telegram (@brazya_ssl_bot), Email, and Webhook. Suitable for production use.

GET ?action=check&host=example.com

Überprüfen Sie das SSL-Zertifikat und die Verfügbarkeit einer Domain (ohne Abonnement).

curl "https://ip.brazya.ru/ssl-monitor.php?action=check&host=google.com"

POST ?action=subscribe

Abonnieren Sie SSL-Ablauf- und Verfügbarkeitsbenachrichtigungen.

curl -X POST "https://ip.brazya.ru/ssl-monitor.php?action=subscribe" \
  -H "Content-Type: application/json" \
  -d '{"host":"google.com","telegram_id":123456,"threshold":14,"email":"you@example.com"}'

Parameter: host (required), telegram_id or email (at least one), threshold (days, default 30), webhook_url (optional).

POST ?action=unsubscribe

Unsubscribe from notifications (requires host + contact).

curl -X POST "https://ip.brazya.ru/ssl-monitor.php?action=unsubscribe" \
  -H "Content-Type: application/json" \
  -d '{"host":"google.com","telegram_id":123456}'

GET ?action=list

Liste meiner Abonnements (per E-Mail oder telegram_id).

curl "https://ip.brazya.ru/ssl-monitor.php?action=list&email=you@example.com"

GET ?action=cron&secret=CRON_SECRET

Beginnen Sie mit der Überprüfung aller Abonnements. Wird in einer Cron-Aufgabe verwendet (einmal täglich).

curl "https://ip.brazya.ru/ssl-monitor.php?action=cron&secret=YOUR_SECRET"

The secret is stored in .htaccess as SetEnv CRON_SECRET.

📖 See also monitor.php (subscription UI) or api-docs.php (documentation for other APIs).