List WordPress installations
List WordPress installations accessible to the authenticated client.
List WordPress installations accessible to the authenticated client.
Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website.
Each installation includes a valid flag and, when invalid, a
validationError describing why.
API Token authentication
Filter by specific username
cl_user123Filter by domain name (case-insensitive substring match)
example.comFilter by ownership type. Defaults to "owned". Use "all" to include both owned and managed installations.
ownedPossible values: Success response
WordPress installation (software) id
123Hosting account username
u123456789Domain the installation belongs to
example.comWordPress site title
My siteWordPress site URL
https://example.comInstallation directory
public_htmlWordPress locale
en_USWordPress admin username
adminWordPress admin email
owner@example.comWhether the installation is considered valid
trueReason the installation is invalid, if any
Invalid domainInstallation creation timestamp
2022-01-01T00:00:00ZUnauthenticated response
Error response
GET /api/hosting/v1/wordpress/installations HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "123",
"username": "u123456789",
"domain": "example.com",
"site_title": "My site",
"url": "https://example.com",
"directory": "public_html",
"language": "en_US",
"login": "admin",
"email": "owner@example.com",
"is_valid": true,
"validation_error": "Invalid domain",
"created_at": "2022-01-01T00:00:00Z"
}
]Last updated
Was this helpful?