API

Monitors, heartbeats, stats, channels और status pages के लिए REST API। API keys से authentication।

Authentication

API keys (Pro) में एक key बनाएँ। इसे Bearer token के रूप में भेजें।

curl https://app.uptimepush.com/api/v1/monitors -H "Authorization: Bearer up_live_..."

Monitors

  • GET /api/v1/monitors – सूची
  • POST /api/v1/monitors – बनाएँ (name, type, url, interval_sec, ...)
  • GET /api/v1/monitors/:id – विवरण
  • PATCH /api/v1/monitors/:id – अपडेट
  • DELETE /api/v1/monitors/:id
  • POST /api/v1/monitors/:id/pause और /resume
  • GET /api/v1/monitors/:id/heartbeats?hours=24
  • GET /api/v1/monitors/:id/stats?days=30

मॉनिटर बनाएँ

curl -X POST https://app.uptimepush.com/api/v1/monitors \
  -H "Authorization: Bearer up_live_..." -H "Content-Type: application/json" \
  -d '{"name":"API","type":"http","url":"https://api.example.com/health","interval_sec":60}'

चैनल और स्टेटस पेज

  • GET/POST /api/v1/channels, POST /api/v1/channels/:id/test
  • GET/POST /api/v1/status-pages
  • GET /api/status/:slug.json – सार्वजनिक स्टेटस JSON

Responses

सभी responses JSON में होते हैं, जिनमें ok: true या ok: false और एक error code शामिल होता है। Rate limit: प्रति key 600 requests प्रति मिनट।

आपकी वेबसाइट नहीं सोती। अब आप सो सकते हैं।

मिनटों में मॉनिटरिंग शुरू करें। आपके पहले 10 मॉनिटर हमारी ओर से फ्री।

फ्री शुरू करें – बिना कार्ड ↗