---
title: "Diagnostic tools"
description: "Twenty one-shot network diagnostics (DNS, TLS, WHOIS, HTTP, ports, IP data) under /api/tools. Anonymous with a per-IP limit, or with an API token and a per-organization limit."
---

The diagnostics behind the free tools on uptimeify.io and the MCP diagnostic tools. Each one is a single `GET` with query parameters and answers with a JSON object. They read nothing from your account and store nothing.

## Authentication

Optional.

- **Without an `Authorization` header** the call is anonymous and counts against a limit **per client IP** (column "Anonymous" below).
- **With `Authorization: Bearer wsm_…`** (an [API token](/api/introduction/generate-api-token), any role, organization or customer token) the call counts against a limit **per organization**: 60 calls per minute per diagnostic, shared by all tokens of the organization and independent of the IP. Use this from shared egress addresses such as n8n Cloud, Zapier or CI runners.
- **An `Authorization` header that does not carry a valid API token** (unknown, revoked or expired token, issuer deactivated, not a Bearer value) is answered with `401` and `data.code: "unauthorized"`. There is no fallback to the anonymous limit, so broken credentials surface immediately.

CLI sign-ins (OAuth JWT) cannot call these endpoints (`403 cliPathForbidden`); use an API token.

## Endpoints

All limits are per minute (fixed window). The port checker charges one unit per port.

| Route | Query parameters | Anonymous (per IP) | With API token (per organization) |
| --- | --- | --- | --- |
| `GET /api/tools/ssl-certificate-checker` | `host` (hostname, not an IP), `port` (optional, default 443) | 20 | 60 |
| `GET /api/tools/dns-lookup` | `domain` | 30 | 60 |
| `GET /api/tools/dns-propagation` | `domain`, `type` (optional, default `A`) | 20 | 60 |
| `GET /api/tools/mx-lookup` | `domain` | 30 | 60 |
| `GET /api/tools/spf-check` | `domain` | 30 | 60 |
| `GET /api/tools/dkim-check` | `domain`, `selector` | 30 | 60 |
| `GET /api/tools/dmarc-check` | `domain` | 30 | 60 |
| `GET /api/tools/dnsbl-check` | `ip` (public IP) | 8 | 60 |
| `GET /api/tools/whois-lookup` | `domain` | 15 | 60 |
| `GET /api/tools/domain-expiry` | `domain` | 15 | 60 |
| `GET /api/tools/http-headers` | `url` | 20 | 60 |
| `GET /api/tools/hsts-check` | `domain` | 20 | 60 |
| `GET /api/tools/redirect-check` | `url` | 20 | 60 |
| `GET /api/tools/port-checker` | `host`, `port` (one port or up to 10, comma separated) | 20 ports | 60 ports |
| `GET /api/tools/ping-test` | `host`, `port` (optional, default 443) | 15 | 60 |
| `GET /api/tools/website-status` | `url` | 20 | 60 |
| `GET /api/tools/response-time-check` | `url` | 15 | 60 |
| `GET /api/tools/ip-geolocation` | `q` (IP or domain) | 20 | 60 |
| `GET /api/tools/asn-lookup` | `q` (IP or domain) | 20 | 60 |
| `GET /api/tools/reverse-dns-lookup` | `ip` (public IP) | 30 | 60 |

Targets that resolve to private or reserved addresses are refused, with or without a token.

## Example (cURL)

```bash
curl "https://uptimeify.io/api/tools/dns-lookup?domain=example.com" \
  -H "Authorization: Bearer wsm_..."
```

## Common errors

| Status | `data.code` | Meaning |
| --- | --- | --- |
| `400` | `invalidToolInput` | A parameter is missing or invalid; `statusMessage` names it. |
| `401` | `unauthorized` | An `Authorization` header was sent, but it is not a valid API token. Header `WWW-Authenticate: Bearer realm="Uptimeify API", error="invalid_token"`. |
| `422` | `toolTargetRejected` | The target is private or reserved, or a redirect is invalid. |
| `429` | `rateLimited` (token calls) | Limit reached. `data.retryAfter` and the `Retry-After` header give the seconds until the window resets. Anonymous calls carry `data.retryAfter` only. |
| `504` | `toolTimeout` | The target did not answer in time. |
