---
title: "Test a database connection"
method: POST
path: "/v1/mcp-test/database"
---

# Test a database connection

`POST /v1/mcp-test/database`

## Request

- Base URL: `https://api.harnessrouter.ai`
- URL: `https://api.harnessrouter.ai/v1/mcp-test/database`
- Auth: none declared

## Request body

- DatabaseTestBody
  - `engine` string, required
  - `connection_string` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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