ReferenceAPI

Get connection details

Get the connection details for a database, without waking it.

GET https://api.nevia.cloud/v1/databases/{db}/connection
curl -X GET "https://api.nevia.cloud/v1/databases/01d4cnjkgq02b6tfqvy8yh391pq/connection" \
  -H "Authorization: Bearer $TOKEN"
{
  "connection": {
    "host": "01d4cnjkgq02b6tfqvy8yh391pq.live.nevia.cloud",
    "port": 5432,
    "database": "nevia",
    "user": "nevia_admin",
    "password": "<password>",
    "password_status": "tracked",
    "reset_pending": false,
    "uri": "postgres://nevia_admin:<password>@01d4cnjkgq02b6tfqvy8yh391pq.live.nevia.cloud:5432/nevia?sslmode=require",
    "pooler_uri": "postgres://nevia_admin:<password>@01d4cnjkgq02b6tfqvy8yh391pq.live.nevia.cloud:6432/nevia?sslmode=require",
    "ssl_mode": "require",
    "server_ca": null,
    "pooler_port": 6432
  },
  "operations": []
}

Authorization

bearerAuth
Authorization Bearer <token>

Send the token in the Authorization: Bearer <token> header. See Authenticate.

In: header

Path Parameters

db* string

Database id: 27 lowercase letters and digits.

Match ^[A-Za-z0-9_-]{1,64}$

Response

application/json

The connection. operations is empty.

Connection details for a database.