Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: NATS Monitoring HTTP Health API
description: The NATS server exposes a monitoring HTTP endpoint that provides real-time server statistics including connection info, route details, subscription data, JetStream metrics, and health checks for observability and operations.
version: 2.10.0
contact:
name: NATS.io
url: https://nats.io/
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: http://localhost:8222
description: Default NATS monitoring endpoint
tags:
- name: Health
paths:
/healthz:
get:
summary: Health check
operationId: getHealthz
tags:
- Health
description: Returns 200 OK if the server is healthy, or an error status otherwise.
parameters:
- name: js-enabled-only
in: query
schema:
type: boolean
- name: js-server-only
in: query
schema:
type: boolean
responses:
'200':
description: Server is healthy
content:
application/json:
schema:
type: object
properties:
status:
type: string
enum:
- ok
'503':
description: Server is not healthy
content:
application/json:
schema:
type: object
properties:
status:
type: string
error:
type: string