cURL
curl --request POST \ --url https://app.larm.dev/api/v1/monitors \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "check_type": "<string>", "config": {}, "interval_seconds": 123, "timeout_ms": 123, "confirm_down_minutes": 123, "confirm_up_minutes": 123, "enabled": true } '
{ "data": { "id": "550e8400-e29b-41d4-a716-446655440000", "name": "Marketing site", "check_type": "http", "enabled": true, "interval_seconds": 180, "timeout_ms": 10000, "confirm_down_minutes": 0, "confirm_up_minutes": 0, "config": { "url": "https://example.com", "method": "GET", "expected_status_codes": [200], "follow_redirects": true }, "created_at": "2025-03-01T12:00:00Z", "updated_at": "2025-03-01T12:00:00Z" } }
Creates a new monitor
monitors:read_write
http
tcp
dns
heartbeat