curl -X POST "https://api.nevia.cloud/v1/databases/01d4cnjkgq02b6tfqvy8yh391pq/reset_credentials" \
-H "Authorization: Bearer $TOKEN" \
-H "Idempotency-Key: 8f1c2a7e-3b4d-4c5e-9f0a-1b2c3d4e5f60"{
"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 Send the token in the Authorization: Bearer <token> header. See Authenticate.
In: header
Path Parameters
Database id: 27 lowercase letters and digits.
^[A-Za-z0-9_-]{1,64}$Header Parameters
Required for this non-idempotent request. Clients generate one key per action and preserve it across transport retries. Within the retained window, repeats return the recorded result and different input with the same key is 409. Keys expire 10 minutes after admission, or 120 seconds after success or terminal failure, whichever is earlier. Reusing an expired key can execute new work. The API tracks at most 100,000 requests across replicas. New keys at capacity receive 429 with Retry-After of 600–630 seconds.
1 <= length <= 255Behavior
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/jsonThe connection after the reset.
Connection details for a database.