REST API v1 & Anti-Spam Alert Engine
Stateless Uptime Monitoring API Reference
Register Websites, APIs, and Services, trigger active uptime checks, and query outage incidents & 3-stage anti-spam email notification logs through stateless HTTP requests.
Stateless Secret Key Authentication
All API requests are completely stateless. Pass your secret key (tyu_...) in the Authorization header or X-API-Key header. You can also sign directly into the web dashboard via /login?secret=tyu_...:
Authorization: Bearer tyu_live_demo_secret_key_2026_teeya_uptime
# OR
X-API-Key: tyu_live_demo_secret_key_2026_teeya_uptime
POST
/api/v1/keys/
Generate a new stateless secret key programmatically using your account credentials (or from the Dashboard UI).
curl -X POST https://uptime.teeyatech.com/api/v1/keys/ \
-H "Content-Type: application/json" \
-d '{"username": "your_username", "password": "your_password", "name": "Production Uptime Server"}'
POST
/api/v1/monitors/ (alias: /api/v1/websites/)
Register a new Website, REST API, or external Service to monitor. Supports monitor_type (website, api, service), http_method (GET, HEAD, POST), and alert_email.
curl -X POST https://uptime.teeyatech.com/api/v1/monitors/ \
-H "Authorization: Bearer YOUR_SECRET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme Payments API",
"domain": "api.acme-store.com",
"target_url": "https://api.acme-store.com/v1/health",
"monitor_type": "api",
"http_method": "GET",
"alert_email": "devops@acme-store.com"
}'
# JSON Response (201 Created):
{
"status": "success",
"message": "Monitor registered successfully",
"monitor": {
"id": "b3d9182e-5f4a-4b9c-8112-90ab34cd56ef",
"name": "Acme Payments API",
"domain": "api.acme-store.com",
"target_url": "https://api.acme-store.com/v1/health",
"monitor_type": "api",
"http_method": "GET",
"alert_email": "devops@acme-store.com",
"tracking_id": "tyu_mon_8f91a2b3c4d5e6f7",
"current_status": "up",
"consecutive_down_count": 0,
"consecutive_down_emails_sent": 0,
"max_continuous_down_emails": 3
}
}
GET
/api/v1/monitors/
List all monitored websites, APIs, and services belonging to the authenticated API key owner along with their live status and notification sequence state.
curl -X GET https://uptime.teeyatech.com/api/v1/monitors/ \
-H "Authorization: Bearer YOUR_SECRET_API_KEY"
GET
PUT
DELETE
/api/v1/monitors/<uuid:monitor_id>/
Inspect, update (name, domain, target_url, monitor_type, alert_email, is_active), or delete a specific monitor by its UUID.
POST
/api/v1/monitors/<uuid:monitor_id>/check/
Executes an immediate uptime check on the target endpoint (or accepts {"simulate": "down"} / {"simulate": "up"} for testing) and enforces the Anti-Spam Notification State Machine:
- Consecutive DOWN Checks #1, #2, #3: Sends an outage notification email on each check (
sequence_number = 1, 2, 3).
- Consecutive DOWN Check #4+: Suppresses further DOWN emails (
email_suppressed = true) to prevent inbox spam while the outage continues.
- Transition from DOWN → UP: Sends 1 recovery email (
email_type = "recovery", sequence_number = 1) and resets consecutive_down_count = 0 and consecutive_down_emails_sent = 0.
curl -X POST "https://uptime.teeyatech.com/api/v1/monitors/b3d9182e-5f4a-4b9c-8112-90ab34cd56ef/check/" \
-H "Authorization: Bearer YOUR_SECRET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"region": "Lagos (NG)"}'
GET
/api/v1/monitors/<uuid:monitor_id>/uptime/?days=30
Retrieve aggregated uptime percentage, response latency (avg/min/max ms), recent checks, outage incidents, and email notification logs for a monitor.
curl -X GET "https://uptime.teeyatech.com/api/v1/monitors/b3d9182e-5f4a-4b9c-8112-90ab34cd56ef/uptime/?days=30" \
-H "Authorization: Bearer YOUR_SECRET_API_KEY"
GET
POST
/api/v1/admin/provision/
Authenticate with a Master Vendor Key (tyu_admin_... generated in Django Admin) to create or update customer accounts, assign subscription plans, provision initial monitors, and receive their one-click dashboard login URL.
curl -X POST "https://uptime.teeyatech.com/api/v1/admin/provision/" \
-H "Authorization: Bearer tyu_admin_live_master_vendor_key_2026_teeya" \
-H "Content-Type: application/json" \
-d '{
"username": "acme_devops",
"email": "devops@acme.io",
"plan_tier": "growth",
"billing_cycle": "annual",
"domain": "api.acme.io",
"website_name": "Acme Core API",
"monitor_type": "api"
}'