Hosting: Databases
Create account database
Creates a database with a database user and password for the specified account.
The database name and user are automatically prefixed with the account username when needed.
post/api/hosting/v1/accounts/{username}/databases
Request
- Base URL: https://developers.hostinger.com
- URL: https://developers.hostinger.com/api/hosting/v1/accounts/{username}/databases
- Auth: HTTP bearer
Path parameters
usernamestring required
Example:u123456789
Request body
Example request
{
"name": "u123456789_test_db",
"user": "u123456789_admin",
"password": "Str0ngP@ssword!",
"website_domain": "example.com"
}Response
Success empty response
Example response
{
"message": "Request accepted"
}Changes
No recorded changes to this operation across all 130 revisions of this API.