Skip to content

Get a WordPress site

GET /api/v2/shared-hosting/{accountId}/wordpress/{siteId}

Get one WordPress site on a web hosting account: its address, folder, WordPress version, database and admin username. The fields are the same as in GET /api/v2/shared-hosting/{accountId}/wordpress. A site that is not on this account returns 404.

Authentication: An API key with the scopes read:hosting and console:services. About keys and scopes

Request

Path parameters

accountIdstringrequired
The web hosting account ID (acct_…).
siteIdstringrequired
The WordPress site ID (wp_…).

Example

GET /api/v2/shared-hosting/{accountId}/wordpress/{siteId}
curl "https://cloud.hostup.se/api/v2/shared-hosting/acct_01hxa3b4c5d6e7f8g9h0j1k2m3/wordpress/wp_01hxa3b4c5d6e7f8g9h0j1k2m3" \
-H "Authorization: Bearer $HOSTUP_API_KEY"

Responses

200 The WordPress site.

Response 200
{
"id": "wp_01hxa3b4c5d6e7f8g9h0j1k2m3",
"url": "https://example.com",
"path": "/home/abcde/public_html",
"domain": "example.com",
"version": "6.5.5",
"siteName": "Example Store",
"database": "abcde_wp_example",
"adminUsername": "admin",
"installedAt": "2026-04-27T12:00:00.000Z"
}
Response fields
idstring
The WordPress site ID (wp_…).
urlstring
The site’s address.
pathstring
The folder the site is installed in, on the server.
domainstring
The domain the site is on.
versionstring
The WordPress version.
siteNamestring
The site title.
databasestring
The name of the site’s database.
adminUsernamestring or null
The admin username set at install. Null when unknown.
installedAtstring or null
When the site was installed. Null when unknown.

Errors

Errors are Problem Details with a stable code. Branch on the code, not on the text.

400Invalid request. The response body is an RFC 7807 Problem Details document.
401Unauthorized. Authentication is required.
403Forbidden. The caller lacks a required scope or does not own the resource.
404No such WordPress site on this account (wp_installation_not_found or wordpress_install_not_found).
409account_suspended: the hosting account is suspended. account_not_eligible_cpanel: the account is not on cPanel.
429Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers.
500Internal error. Retry later or contact support if the issue persists.
502Upstream failure. A dependent provider request failed; the Problem Details code is upstream_failed. Retry later or contact support if the issue persists.