PgBeam Docs
Databases

testDatabaseConnection

Test database connection

Attempts to connect to the upstream database using the stored credentials and returns the result.

Usage

const result = await api.databases.testDatabaseConnection();

Parameters

None.

Response

Promise<TestConnectionResult> — connection test result.

Example

import { PgBeamClient } from "pgbeam";

const client = new PgBeamClient({
  token: "pbk_...",
  baseUrl: "https://api.pgbeam.com",
});

const result = await client.api.databases.testDatabaseConnection();

Errors

StatusDescription
400Invalid request parameters.
401Missing or invalid authentication.
403Operation not allowed by current plan limits.
404Resource not found.
429Rate limited. Try again later.

On this page