← medic

REST API

Base URL https://medic.greyskymedia.com/v1. Authenticate with an API key from your dashboard's Keys section, sent as a Bearer token.

curl https://medic.greyskymedia.com/v1/checks \
  -H "Authorization: Bearer medic_your_key_here"

Checks

GET /v1/checks — list all checks
GET /v1/checks/:id — one check
GET /v1/checks/:id/metrics — minute rollups, last 24h
POST /v1/checks — create a check
body: { "type": "http", "name": "Site", "target": "https://example.com", "intervalS": 60 }

Incidents

GET /v1/incidents — recent incidents (last 100)

Webhooks (outbound)

Add a webhook channel in the dashboard to receive incident events. Payloads are signed with HMAC-SHA256 in the X-Medic-Signature header when a signing secret is set.

{
  "event": "down",
  "check_id": "chk_...",
  "check_name": "Storefront",
  "target": "https://shop.example.com",
  "incident_id": "inc_...",
  "at": 1700000000,
  "title": "DOWN: Storefront — HTTP 502",
  "detail": "..."
}

Import from updown.io

Paste your updown.io API key in the dashboard to migrate all your checks in one click, or call the REST API directly.