ReferenceAPI

Reset credentials

Reset credentials by setting a new password.

POST https://api.nevia.cloud/v1/databases/{db}/reset_credentials
curl -X POST "https://api.nevia.cloud/v1/databases/01d4cnjkgq02b6tfqvy8yh391pq/reset_credentials" \
  -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}$

Header Parameters

Idempotency-Key? string

Optional retry key, kept 24 hours

Length 1 <= length <= 255

Behavior

The previous password stops working, including one set in SQL. A ready database returns the new password. A sleeping database does not wake for the reset.

A replay of the same Idempotency-Key returns the password redacted and does not reset again.

Response

application/json

The connection after the reset, with operations empty.

Connection details for a database.