API

モニター、ハートビート、統計、チャンネル、ステータスページ向けの REST API。API キーによる認証。

認証

「API キー」(Pro)でキーを作成し、Bearer トークンとして送信します。

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

モニター

  • 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

レスポンス

すべてのレスポンスは JSON 形式で、ok: true または ok: false とエラーコードを含みます。レート制限:キーごとに毎分 600 リクエスト。

あなたのサイトは眠りません。だから、あなたは眠れます。

数分で監視を開始。最初の10モニターは無料です。

無料で始める – カード不要 ↗