curl -X POST "https://kodostatus.com/api/v1/domain-monitors" \ -H "X-API-Key: your_api_key" \ -H "Content-Type: application/json" \ -d '{ "domain": "example.com", "alert_days": 60 }'
{ "id": "dom_abc123", "domain": "example.com", "alert_days": 60, "enabled": true, "last_checked_at": "2024-01-15T10:30:00Z", "registration": { "registrar": "Cloudflare, Inc.", "created_date": "2020-01-15T00:00:00Z", "expiry_date": "2025-01-15T00:00:00Z", "days_until_expiry": 365, "nameservers": ["ns1.cloudflare.com", "ns2.cloudflare.com"] }, "created_at": "2024-01-15T10:30:00Z" }
Create a new domain expiration monitor to prevent accidental domain loss