View as Markdown

UpHeron API and agent guide

UpHeron checks websites, APIs, certificates, DNS, mail servers and more from several locations, and tells you when something breaks. The API lets your scripts and AI agents do everything the dashboard does: read the status of every monitor, look at results and incidents, and add or change monitors.

  • Reading is free. Status, results, uptime and incidents cost nothing, within the rate limits.
  • Monitors come with your plan. A workspace has as many monitors as its plan has slots. Premium monitors (multi-step transactions and code repositories) have slots of their own, on Pro (20) and Business (100); every other kind is a standard monitor. For more, upgrade your plan.
  • Every request needs a token of an UpHeron account. The API and the MCP server work within the plan of the token's workspace: its slots, check intervals and locations.
  • Alert timing and escalation. Wait before the first alert and repeat it until someone acknowledges (Pro plans), or alert an escalation policy that pages whoever is on call (Business). See Alert timing and escalation.
  • Vulnerability alerts (every plan, right away: the website is scanned weekly on Free, daily on Pro and Business). Website monitors can alert when a vulnerability is published for the software the site runs, found by scanning it and, on Pro and Business, imported from a lockfile, Dockerfile or a list an agent writes. See Software lists.
  • Prometheus and Grafana. Scrape every monitor from https://upheron.com/api/v1/metrics and import the ready Grafana dashboard. See Prometheus and Grafana.
  • Command-line tool. upheron lists and checks monitors and keeps contacts, monitors, status pages and maintenance windows in a YAML file you apply from CI. See Command-line tool.
  • MCP server. Connect Claude, Cursor or any MCP client to https://upheron.com/mcp. See MCP server.
  • Agents sign up by themselves. With auth.md, an agent gets access for its user, who signs in and types a 6-digit code, without anyone creating a token. Agents start at /auth.md.
  • Terraform. An UpHeron Terraform provider for monitors, notification contacts, monitor tabs, status pages, maintenance windows and the software vulnerability alerts watch is coming to the Terraform Registry.

Quick start

  1. Create a token. In the dashboard, open Settings → API tokens and create a token. Give it the write scope if it should create or change monitors; read is enough for status. The token is shown once.

  2. Read your monitors.

    curl https://upheron.com/api/v1/monitors \
      -H "X-API-Key: $UPTIME_MONITOR_API_KEY"
    
  3. Add a monitor.

    curl https://upheron.com/api/v1/monitors \
      -H "X-API-Key: $UPTIME_MONITOR_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{"name": "Example", "url": "https://example.com", "interval_seconds": 300}'
    

    While your plan has a free slot this returns 201 Created. When every slot is in use, it returns 422 with "error": "monitor_limit_reached"; a bigger plan on the pricing page has more.

Plans and limits

The API costs nothing beyond your plan. Reading, creating, changing and deleting monitors are all within the rate limits, and new monitors take a slot of your plan. GET /api/v1/account returns your plan and its free slots, standard and premium apart. Plans and their slots are on the pricing page.

Conventions

  • Base URL: https://upheron.com/api/v1
  • Authentication: an API token in the X-API-Key header. See Authentication.
  • Format: JSON in and out, UTF-8. Timestamps are ISO 8601 in UTC.
  • Errors: a JSON body with a machine-readable error and a human-readable message. See API reference.
  • Retries: send an Idempotency-Key header when creating monitors, so a retry never creates a second one.

For AI agents

Everything here is available in a form agents read well:

Using UpHeron from an AI agent has a recommended workflow and instructions you can give your agent.

Pages