---
title: "Check database connectivity."
method: GET
path: "/api/v1/diagnostics/db"
tags: ["Diagnostics"]
---

# Check database connectivity.

`GET /api/v1/diagnostics/db`

## Request

- Base URL: `https://api.avatarfactory.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.avatarfactory.io/api/v1/diagnostics/db`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

## Response `200`

OK

- DiagnosticCheckResponse: Generic response for a single diagnostic check.
  - `backend` string, nullable
  - `configured` boolean, nullable
  - `error` string, nullable
  - `latency_ms` number, nullable
  - `response` string, nullable
  - `status` string, required

## Other responses

- `422`: Unprocessable Entity

---

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