---
title: "GET Test database connection (E2E only)"
description: "This endpoint is used for E2E tests to verify database connectivity and basic CRUD operations. It is restricted to E2E test environments."
last_updated: "2026-05-06T07:33:57.664176+00:00"
canonical_url: "https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/api/auth/testdatabaseconnection"
---

<APIEndpoint
  method={"GET"}
  path={"/api/auth/test-db"}
  summary={"Test database connection (E2E only)"}
  description={"This endpoint is used for E2E tests to verify database connectivity and basic CRUD operations. It is restricted to E2E test environments."}
  deprecated={false}
  baseUrl={""}
/>

## Responses

<APIResponse
  statusCode={"200"}
  description={"Database connection test successful."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"403"}
  description={"Not allowed outside of E2E test mode."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"500"}
  description={"Database test failed."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

## Try It

<APIPlayground
  method={"GET"}
  path={"/api/auth/test-db"}
  parameters={[]}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/llms.txt) for all pages in this wiki.
