---
title: "Db Debug"
method: GET
path: "/api/db-debug"
---

# Db Debug

`GET /api/db-debug`

## Request

- Base URL: `https://api.kojiru.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kojiru.com/api/db-debug`
- Auth: none declared

Diagnostic endpoint — runs a series of MongoDB operations and reports which ones work.
Safe to expose: it reveals operation success/failure shape but masks the password in MONGO_URL.

Optional: pass ?test_user=X&test_password=Y to test specific creds against the same cluster
(creates a temporary client, runs ping, immediately closes — never stores the creds).

## Query parameters

- `test_user` string
- `test_password` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kojiru/apis/kojiru-api.md) · [All operations](https://skmtc.dev/kojiru/apis/kojiru-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kojiru/apis/kojiru-api/revisions/7974409f57cd?raw)
