Uptimecat

API versions

You may have landed here looking for a v3 API. There is no v3. Uptimecat has one API, and it is not versioned in the URL.

One API, no version prefix

Other monitoring services publish numbered APIs, such as v2 or v3. Uptimecat does not. Every endpoint sits under /api/ on the same host, for example /api/monitors. There is no /v3/ path to call.

The API is small and mostly read-only today. See the API overview for the full list of endpoints.

How changes are handled

The API is generated from the same server code that runs the dashboard, and the OpenAPI 3.1 document is the source of truth. Fetch it at any time and compare it to your client.

  • Prefer adding fields over changing them, so existing clients keep working.
  • Parse the response as JSON and ignore fields you do not know.
  • Check the ok flag in every response before reading data.
  • Pin your integration tests to the OpenAPI document so a change shows up in CI.

Read the OpenAPI document

curl -fsS -H "Authorization: Bearer $UPTIMECAT_API_KEY" https://dashboard.uptimecat.co/api/openapi.json -o openapi.json

If you were using another service

Moving from a service with a numbered API means mapping your calls by hand. The pieces you are most likely to need are listed here.

  • Listing monitors: GET /api/monitors.
  • Heartbeats from cron jobs: push URLs, see heartbeat monitoring.
  • Public status: GET /api/status-page/:slug.
  • Creating monitors by API: not available yet. Use the dashboard.

Practical advice for client code

  • Wrap every call in a small function, so a change touches one place.
  • Log the HTTP status and the msg field on failure, never the API key.
  • Handle 401 by checking that the key is enabled and not expired.
  • Handle 404 on badge and status page calls by checking that the monitor is shown on a public status page.
  • Cache badge and status page responses for a few minutes. The server already caches badges for five minutes.

Frequently asked questions

Will a v3 appear later?

There is no plan to announce. If a breaking change is ever needed, it will be described in the roadmap and in the OpenAPI document.

Is there a sandbox?

No. Use a separate account and test monitors.

Where is the legacy API?

There is none. See legacy API.

Related

Open the dashboard

Sign in with your Google account to add a monitor and pick an alert channel. Access is currently limited to Moruk accounts; open sign-up is not available yet.

Sign in