Install WordPress
Install WordPress on an existing website.
The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears.
Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and overwrite is false (the default), the async job will fail.
This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
Path parameters
Request body
Example request
{
"domain": "example.com",
"site_title": "My site",
"language": "en_US",
"directory": "public_html",
"auto_updates": "minor",
"version": "6.5.2",
"credentials": {
"email": "owner@example.com",
"login": "admin",
"password": "********"
},
"database": {
"name": "mydb",
"password": "********"
}
}Response
Success empty response
Example response
{
"message": "Request accepted"
}