Skip to main content
POST
/
api
/
v1
/
databases
/
{id}
/
reset-password
Reset password
curl --request POST \
  --url https://api.example.com/api/v1/databases/{id}/reset-password

Documentation Index

Fetch the complete documentation index at: https://docs.dbhost.app/llms.txt

Use this file to discover all available pages before exploring further.

Generates a new password for the database. The old password stops working immediately. PgBouncer is reloaded automatically.

Path parameters

ParameterTypeDescription
iduuidDatabase ID

Response

200 OK
{
  "password": "new-generated-password"
}

Errors

StatusCodeDescription
401UNAUTHORIZEDMissing or invalid API key
404DATABASE_NOT_FOUNDDatabase doesn’t exist, isn’t owned by this user, or isn’t in scope for this key
500AGENT_ERRORThe VPS agent failed to reset the password
All active connections using the old password will fail. Update your application’s connection string before or immediately after resetting.