---
title: "Database Health"
method: GET
path: "/v1/database/health"
tags: ["Database & Monitoring"]
---

# Database Health

`GET /v1/database/health`

Check MongoDB database connectivity and retrieve health statistics.

## Response `200`

Default Response

- object
  - `status` 'ok' | 'error', required — Database health status
  - `database` string — Database name (hidden in production)
  - `timestamp` string, required — Health check timestamp
  - `stats` object — Database statistics (not available in production)
    - `collections` number — Number of collections
    - `documents` number — Total number of documents
    - `dataSize` number — Total data size in bytes
  - `error` string — Error message if status is error

## Other responses

- `500` — Default Response

---

[API](https://skmtc.net/bluehive-health/apis/bluehive-api.md) · [All operations](https://skmtc.net/bluehive-health/apis/bluehive-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bluehive-health/bluehive-api/revisions/e6e553c2594a/schema)
