Fly.io
Postgres Clusters

Get User Credentials

View as Markdown

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

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

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

Authorization

bearerAuth
AuthorizationBearer <token>

A Fly.io access token. Create one with fly tokens create.

In: header

Path Parameters

postgres_cluster_id*string

Managed Postgres Cluster ID

username*string

Postgres User Name

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/postgres/string/users/string/credentials"
{  "data": {    "password": "string",    "username": "string"  }}
{  "error": "string"}
{  "error": "string"}