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
accountIdstringrequiredThe web hosting account ID (
acct_…).siteIdstringrequiredThe WordPress site ID (
wp_…).Example
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.
{ "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
idstringThe WordPress site ID (
wp_…).urlstringThe site’s address.
pathstringThe folder the site is installed in, on the server.
domainstringThe domain the site is on.
versionstringThe WordPress version.
siteNamestringThe site title.
databasestringThe name of the site’s database.
adminUsernamestring or nullThe admin username set at install. Null when unknown.
installedAtstring or nullWhen the site was installed. Null when unknown.
Errors
Errors are Problem Details with a stable code. Branch on the code, not on the text.
| 400 | Invalid request. The response body is an RFC 7807 Problem Details document. |
| 401 | Unauthorized. Authentication is required. |
| 403 | Forbidden. The caller lacks a required scope or does not own the resource. |
| 404 | No such WordPress site on this account (wp_installation_not_found or wordpress_install_not_found). |
| 409 | account_suspended: the hosting account is suspended. account_not_eligible_cpanel: the account is not on cPanel. |
| 429 | Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers. |
| 500 | Internal error. Retry later or contact support if the issue persists. |
| 502 | Upstream failure. A dependent provider request failed; the Problem Details code is upstream_failed. Retry later or contact support if the issue persists. |