v52

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-03269339953.6 KB
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

Path parameters

usernamestring required
Example:u123456789

Request body

namestring required

Database name. If the account username prefix is omitted, it is added automatically.

userstring required

Database user. If the account username prefix is omitted, it is added automatically.

passwordstring password required

Database user password.

website_domainstring required

Website domain assigned to the database.

Example request

{
  "name": "u123456789_test_db",
  "user": "u123456789_admin",
  "password": "Str0ngP@ssword!",
  "website_domain": "example.com"
}

Response

Success empty response

messagestring

Example response

{
  "message": "Request accepted"
}