---
title: "Get public key for encrypting database credentials locally"
method: GET
path: "/v1/dbo/databases/credentials/public-key"
tags: ["dbo"]
---

# Get public key for encrypting database credentials locally

`GET /v1/dbo/databases/credentials/public-key`

## Response `200`

The request has succeeded.

- DboDatabaseCredentialsPublicKeyResponse
  - `publicKey` string, required — Public Key for locally encrypting database credentials before using in database connectivity options in observe or update Database call

## Other responses

- `401` — Access is unauthorized.
- `500` — Server error

---

[API](https://skmtc.net/solarwinds/apis/solarwinds-observability.md) · [All operations](https://skmtc.net/solarwinds/apis/solarwinds-observability/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/solarwinds/solarwinds-observability/revisions/994e5ca64961/schema)
