Quickstart
Get monitoring set up in under 60 seconds using the CLI, cURL, or Node.
Quickstart
Get monitoring in 60 seconds.
1
Install the CLI or grab an API key
Install the CLI globally — it's the fastest path:
bashnpm i -g happyuptime-cli happy login
Or create an API key from Dashboard → Settings → API Keys and use cURL / Node directly.
2
Create your first monitor
Pick your preferred flavor:
happy monitors create \
--name "My App" \
--url https://myapp.com \
--interval 60curl -X POST https://happyuptime.com/api/v1/monitors \
-H "Authorization: Bearer hu_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "My App",
"url": "https://myapp.com",
"type": "http",
"interval_seconds": 60
}'const res = await fetch("https://happyuptime.com/api/v1/monitors", {
method: "POST",
headers: {
"Authorization": "Bearer " + process.env.HAPPYUPTIME_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "My App",
url: "https://myapp.com",
type: "http",
interval_seconds: 60,
}),
});
const monitor = await res.json();
3
Watch it go
Your site is now being checked every 60 seconds from six regions: us-east, us-west, eu-west, eu-central, ap-southeast, and ap-northeast. View live status with:
bashhappy status
What happens next
happy loginopens your browser to sign in or create an account- Checks run every 60s from 6 regions worldwide
- You'll get alerts on any configured channel if your site goes down