---
title: dots.v2.databases.metrics.credentials.get()
description: Retrieve Database Clusters&#39; Metrics Endpoint Credentials
product: Reference
url: https://docs.digitalocean.com/reference/dots/reference/databases/databases-get-cluster-metrics-credentials/
last_updated: "2026-11-24"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# dots.v2.databases.metrics.credentials.get()

Generated on 24 Nov 2026 from DoTs version [`v1.26.0`](https://github.com/digitalocean/dots/releases/tag/v1.26.0)

## Usage

```typescript
client.v2.databases.metrics.credentials.get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | CredentialsGetResponse>
```

## Description

To show the credentials for all database clusters’ metrics endpoints, send a GET request to [`/v2/databases/metrics/credentials`](https://docs.digitalocean.com/reference/api/reference/databases/index.html.md#databases_get_cluster_metrics_credentials). The result will be a JSON object with a `credentials` key.

## Request Sample

## Show Request Sample

```typescript
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.databases.metrics.credentials.get();
```

## Response Example

## Show Response Example

```json
{
  "credentials": {
    "basic_auth_username": "username",
    "basic_auth_password": "password"
  }
}
```

## More Information

See [`/v2/databases/metrics/credentials`](https://docs.digitalocean.com/reference/api/reference/databases/index.html.md#databases_get_cluster_metrics_credentials) in the API reference for additional detail on responses, headers, parameters, and more.