← All articles

SwaggerPulse journal

How to monitor OpenAPI endpoints for uptime

An OpenAPI document describes the routes your API offers. Importing it into a monitoring tool can save you from entering those routes one by one and help you spot unavailable or slow endpoints.

In this guide, you'll import a JSON specification into SwaggerPulse, choose an endpoint, review its first result and enable downtime alerts. You can use your own API or the example below.

Watch the monitoring demo or view the sample endpoint health screen.

Before you start

You'll need a SwaggerPulse account and the direct URL of a Swagger or OpenAPI JSON document, a JSON file to upload, or a list of endpoints to enter manually. A Swagger UI webpage isn't the same thing as the JSON document it displays. SwaggerPulse supports JSON specifications with a paths object; YAML isn't currently supported.

The API endpoints themselves must be reachable over the internet. If your specification is private, you can upload it without making the spec URL public, but SwaggerPulse still needs network access to the API it checks. For an authenticated API, have the appropriate credentials ready.

Try an example OpenAPI specification

If you don't have a specification handy, save the following as openapi.json and upload it in the next step. It describes a GET endpoint on the public httpbin test service, not an API owned by SwaggerPulse.

{
  "openapi": "3.0.3",
  "info": {
    "title": "Example API",
    "version": "1.0.0"
  },
  "servers": [{ "url": "https://httpbin.org" }],
  "paths": {
    "/get": {
      "get": {
        "summary": "Example read endpoint",
        "responses": {
          "200": { "description": "Successful response" }
        }
      }
    }
  }
}

SwaggerPulse will identify GET /get and check https://httpbin.org/get. Availability depends on the third-party service. When using your own API, choose endpoints that are safe to check repeatedly and don't expose sensitive data in URLs.

Import your API

  1. Sign in, open API monitors and choose Add API monitor.
  2. Name your monitor and choose From URL, Upload spec or Manual.
  3. Enter the direct JSON URL, upload your file, or enter your endpoints. For a manual monitor, provide the API base URL too.
  4. Choose an authentication method if your API requires one.
  5. Select Import endpoints, review the list and choose the routes to monitor.
  6. Select Start monitoring.

For your own API, start with a small number of safe endpoints that represent important services. A health endpoint can be useful, but a successful health check doesn't necessarily mean every customer workflow is working.

Understand the first result

Newly selected endpoints initially show Not checked. Wait for a scheduled check or open the monitor and select Run live check. Once a result is available, the monitor shows the endpoint's health and response time.

Open Probe History to review recorded results and latency trends. Checks run every five minutes on Free, every two minutes on Pro and every minute on Corporate. A failed check is immediately retried once; checks run from a single monitoring region.

SwaggerPulse sends GET requests to GET operations and uses OPTIONS for other methods. An OPTIONS check establishes reachability rather than proving that a write operation would succeed.

Turn on notifications

Email alerts and daily reports are off by default. To receive them, open the monitor's Settings, choose the options under Notifications & alerts and save. Use Send test email to check delivery.

Troubleshooting

  • The specification won't import: Check that you've supplied the JSON document itself, not the Swagger UI page, and that it contains a paths object. Convert YAML to JSON before importing.
  • An endpoint is down: Check its URL, authentication and whether it's reachable over the public internet. Review the result in Probe History for more detail.
  • No email arrives: Confirm you've saved the notification settings, send a test email and check the account address and spam folder.

Start monitoring

The Free plan includes one API monitor and up to ten selected endpoints. Get started with SwaggerPulse, import your spec and enable alerts for the endpoints that matter to you. For more detail, read the user guide.