Body Parameters
URL to monitor (must be HTTPS)
Check interval: 60, 300, 600, 1800 seconds
Link to a service for automatic status updates
Expected HTTP status code
Request timeout in milliseconds
consecutive_failure_threshold
Number of consecutive failures required before creating an incident. Higher values reduce false positives.
incident_cooldown_seconds
Minimum seconds between auto-created incidents for this monitor. Prevents duplicate incidents during intermittent failures.
Override severity for auto-created incidents: minor, major, critical. Omit to use the default (Major for uptime, Minor for heartbeat).
Response
Returns the created monitor object.
curl -X POST "https://kodostatus.com/api/v1/uptime-monitors" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "API Health Check",
"url": "https://api.example.com/health",
"interval_seconds": 300,
"service_id": "uuid"
}'
{
"id": "uuid",
"name": "API Health Check",
"url": "https://api.example.com/health",
"interval_seconds": 300,
"enabled": true
}