---
title: "Test Connection"
method: POST
path: "/api/admin/db/test"
tags: ["admin"]
---

# Test Connection

`POST /api/admin/db/test`

## Request

- Base URL: `https://www.gateco.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://www.gateco.ai/api/admin/db/test`
- Auth: none declared. Required headers: `X-Admin-Token`

Test database connectivity without saving the URL.

Args:
    body (TestRequest): Contains the database_url to test.

Returns:
    dict: Success flag and message.

## Headers

- `X-Admin-Token` string, required

## Request body

- TestRequest: Request body for connection test.
  - `database_url` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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