---
title: "Get User Credentials"
method: GET
path: "/postgres/{postgres_cluster_id}/users/{username}/credentials"
tags: ["Postgres Clusters"]
---

# Get User Credentials

`GET /postgres/{postgres_cluster_id}/users/{username}/credentials`

Get the connection credentials for a specific Postgres user within a cluster.

## Path parameters

- `postgres_cluster_id` string, required
- `username` string, required

## Response `200`

OK

- GetPostgresUserCredentialsResponse
  - `data` PostgresUserCredentials
    - `password` string — User password.
    - `username` string — User name.

## Other responses

- `400` — Username is reserved, a system user, or malformed
- `404` — 'Cluster not found' for the cluster; 'User not found' for the user

---

[API](https://skmtc.net/machines/apis/machines-api.md) · [All operations](https://skmtc.net/machines/apis/machines-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/machines/machines-api/versions/633ddedda749/schema)
