---
title: "Database connectivity probe (REST API)"
method: POST
path: "/databases/{databaseName}/query/ping"
tags: ["Database Queries"]
---

# Database connectivity probe (REST API)

`POST /databases/{databaseName}/query/ping`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/databases/{databaseName}/query/ping`
- Auth: HTTP bearer

Connectivity probe that runs a fixed `SELECT 1` through pgproxy, using the
same authentication, status/bandwidth gating, and metering as the other
`/query/*` endpoints.

Unlike those endpoints, ping takes **no request body** and performs **no
table-name validation**, so it works on any database — including a freshly
provisioned, empty one. It is a real committed round-trip through pgproxy,
so a `200` means the database is reachable and queryable. Used by the
dashboard's database connection test.

## Path parameters

- `databaseName` string, required

## Response `200`

Database is reachable

- DatabaseQueryResult: Rows returned by a data API request. RLS-filtered unless the request was made with a service key.
  - `data` object[]: Result rows
  - `count` integer: Number of rows returned

## Other responses

- `401`: Not authenticated
- `403`: Access denied
- `404`: Database not found
- `429`: The query was rejected by a billing-cycle allowance: either the owning platform user's bandwidth allowance (aggregate ingress + egress across owned projects) or their database-request allowance. Enforcement is eventual: queries are rejected until the allowance increases or the next anniversary cycle begins. The error message identifies the resource.

## Changes

- **2026-09-19** `3a6f365f3f35`: 6 breaking, 10 info
  - added the new path request parameter `databaseName`
  - the response's body type changed from no type to `object` for status `200`
  - the response's body type changed from no type to `object` for status `401`
  - the response's body type changed from no type to `object` for status `403`
  - …12 more
- **2026-08-27** `bb44e98aba2e`: 9 breaking, 7 warning
  - the response's body type changed from `object` to no type for status `200`
  - the response's body type changed from `object` to no type for status `401`
  - the response's body type changed from `object` to no type for status `403`
  - the response's body type changed from `object` to no type for status `404`
  - …12 more
- **2026-07-27** `bb52784e098a`: 4 info
  - added the optional property `code` to the response with the `401` status
  - added the optional property `code` to the response with the `403` status
  - added the optional property `code` to the response with the `404` status
  - added the optional property `code` to the response with the `429` status

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/databases/:databaseName/query/ping/post.md)

---

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