---
title: "Get Credentials"
method: GET
path: "/api/v1/databases/{database_id}/credentials"
tags: ["databases"]
---

# Get Credentials

`GET /api/v1/databases/{database_id}/credentials`

## Request

- Base URL: `https://api.mengi.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mengi.cloud/api/v1/databases/{database_id}/credentials`
- Auth: none declared

Get connection credentials for a database instance.

## Path parameters

- `database_id` string, uuid, required

## Response `200`

Successful Response

- DatabaseCredentialsResponse
  - `host` string, nullable
  - `port` integer, nullable
  - `database` string, required
  - `username` string, required
  - `secret_name` string, nullable
  - `connection_string` string, nullable
  - `external_host` string, nullable
  - `external_connection_string` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengi/apis/mengi-cloud.md) · [All operations](https://skmtc.dev/mengi/apis/mengi-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/mengi/apis/mengi-cloud/revisions/4ae9b375cdbb?raw)
