View as Markdown

Using UpHeron from an AI agent

UpHeron is built to be used by agents as well as people. An agent can find out what UpHeron does, check whether a site is up and add monitors to its user's account, without a human filling in forms.

Discovery

Resource What it is
/auth.md How an agent gets API access to its user's account by itself (auth.md)
/mcp MCP server: every operation as a tool
/llms.txt An index of the documentation for language models
/llms-full.txt The whole documentation as one Markdown file
/openapi.json OpenAPI 3.1 description of the API
Any page with Accept: text/markdown The page as Markdown instead of HTML
Any page URL plus .md The same, for clients that cannot set headers: /docs/agents.md
curl -H "Accept: text/markdown" https://upheron.com/docs/api

Markdown responses have Content-Type: text/markdown; charset=utf-8, an x-markdown-tokens header with an estimate of their length in tokens, and Vary: Accept.

Getting access

  • Your user gives you a token. They create one in Settings → API tokens; send it in X-API-Key.
  • You get access yourself with auth.md. Register at POST https://upheron.com/agent/identity with your user's email (service_auth); they open a link and type the code you show them, and you receive access tokens for their workspace. Follow /auth.md step by step.
  1. Check your account. GET /api/v1/account returns the plan and its free slots (standard monitors in plan_monitors, premium ones, the multi-step transactions and code repositories, in premium_monitors). GET /api/v1/locations lists the location codes you can use.
  2. Create with an idempotency key. POST /api/v1/monitors with Idempotency-Key: <uuid>, and keep the same key on any retry of your own. With every slot of the monitor's tier in use it answers 422 monitor_limit_reached: tell your user, who can upgrade on the pricing page or delete a monitor.
  3. Read status. GET /api/v1/monitors returns every monitor's current_status. Poll no faster than the monitor's interval_seconds.
  4. Look closer when something is wrong. GET /api/v1/monitors/{id} has uptime for 24 hours, 7 days and 30 days, recent results with errors, and incidents. GET /api/v1/monitors/{id}/results returns up to 500 results, and GET /api/v1/monitors/{id}/uptime?from=2026-01-01&to=2026-03-31 daily uptime for any range: it is kept for as long as the monitor exists.
  5. Watch the website's software. Set "vulnerability_alerts": true on a website monitor: every plan checks its software daily and within 15 minutes of a new advisory, and scans the website for it weekly on Free, daily on Pro and Business. On Pro and Business, if you can see the server, send what it runs with POST /api/v1/monitors/{id}/software/import: a lockfile or Dockerfile, or a list with one name version per line from cat /etc/os-release, nginx -v, php -v and the like. GET /api/v1/monitors/{id}/vulnerabilities lists what affects it and the versions that fix it. Software lists has the format.

Reading status

current_status Meaning
pending Not checked yet
up The latest checks passed
down The latest checks failed at enough locations (see confirmation_threshold)
degraded Responding, but outside a threshold such as latency

An incident opens after failure_threshold failed checks in a row (by default the first) and resolves after recovery_threshold successes. A monitor with several locations counts a check as failed when confirmation_threshold of them fail it at the same time (by default any one). A monitor with one location checks each failure again from two other locations, and goes down only when they fail too or cannot check (confirm_elsewhere). A monitor with "status": "paused" is not being checked.

Instructions for your agent

Paste this into your agent's instructions or tool description, and give it a token in UPTIME_MONITOR_API_KEY:

You can monitor websites and APIs with UpHeron (https://upheron.com).
- API base: https://upheron.com/api/v1 ; send the header X-API-Key: $UPTIME_MONITOR_API_KEY on every request.
- Docs as Markdown: https://upheron.com/llms-full.txt ; API schema: https://upheron.com/openapi.json
- Reading is free: GET /monitors (all statuses), GET /monitors/{id} (uptime, results, incidents), GET /monitors/{id}/uptime (daily uptime, ?from=&to=), GET /incidents.
- To add a monitor: GET /account for free slots; then POST /monitors with an Idempotency-Key header.
  Body: {"name": "...", "url": "https://...", "interval_seconds": 300, "locations": ["<code from GET /locations>"]}
- If POST /monitors answers 422 monitor_limit_reached, every slot of the plan is in use: tell the user, who can
  upgrade at https://upheron.com/pricing or delete a monitor.
- On 429, wait Retry-After seconds. Never poll a monitor faster than its interval_seconds.
- Every plan: "vulnerability_alerts": true on a website monitor (alerts right away on every plan; the website scanned weekly on Free, daily on Pro). Pro and Business: POST /monitors/{id}/software/import {"content": "<lockfile, Dockerfile or one 'name version' per line>"}
  tells it what the server runs; GET /monitors/{id}/vulnerabilities lists what affects it.

Example prompts

  • "Is shop.example.com up right now, and has it had any incidents this week?"
  • "Monitor https://api.example.com/health every minute from Frankfurt and New York, and email [email protected] when it goes down."
  • "Add monitors for these five client websites, checked every minute."
  • "Turn on vulnerability alerts for shop.example.com and import this server's composer.lock and the output of nginx -v and php -v."