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

# Database connectivity probe (REST API)

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

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/databases/{databaseName}/branches/{branchName}/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.

**Branch-targeted.** Runs against the named branch instead of the parent
database, using the branch's own credentials. The branch must be `active`
and unexpired. Nothing about this request can reach the parent's data.

## Path parameters

- `databaseName` string, required
- `branchName` 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 or branch 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.
- `503`: The branch exists but cannot serve queries: it is still provisioning, being reset, expired, or its parent is being restored. Distinct from `404` so a caller waiting on a branch can tell it apart from a typo.

## Changes

- **2026-09-19** `3a6f365f3f35`: 8 breaking, 12 info
  - added the new path request parameter `branchName`
  - 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`
  - …16 more
- **2026-09-04** `c2ec82fb8ce8`: 1 info
  - added the non-success response with the status `503`
- **2026-08-27** `bb44e98aba2e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/databases/:databaseName/branches/:branchName/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)
