Code Samples #
Copy
curl --request GET \
--url 'https://app.xcloud.host/api/v1/sites/{uuid}/wordpress/status' \
--header 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://app.xcloud.host/api/v1/sites/{uuid}/wordpress/status', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_TOKEN'
}
});
const data = await response.json();
console.log(data);
import requests
headers = {
"Authorization": "Bearer YOUR_TOKEN"
}
response = requests.get("https://app.xcloud.host/api/v1/sites/{uuid}/wordpress/status", headers=headers)
print(response.json())
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://app.xcloud.host/api/v1/sites/{uuid}/wordpress/status',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_TOKEN'
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
using System.Net.Http;
var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://app.xcloud.host/api/v1/sites/{uuid}/wordpress/status");
request.Headers.Add("Authorization", "Bearer YOUR_TOKEN");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
import java.net.URI;
import java.net.http.*;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://app.xcloud.host/api/v1/sites/{uuid}/wordpress/status"))
.header("Authorization", "Bearer YOUR_TOKEN")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
Response #
Copy
{
"success": true,
"message": "Operation completed successfully.",
"data": {
"wordpress_version": "6.4.2",
"php_version": "8.2",
"multisite_enabled": false,
"wp_debug_enabled": false,
"wp_cron_enabled": true,
"checksum_status": "passed",
"last_checksum_at": "2026-05-06T08:00:00Z",
"items_count": {
"plugins": 23,
"themes": 3,
"core": 1
},
"updates_pending": {
"core": false,
"plugins": 5,
"themes": 1
},
"ssl": {
"enabled": true,
"provider": "xcloud",
"expires_at": "2026-08-12T00:00:00Z"
}
}
}
{
"success": false,
"message": "Unauthenticated.",
"data": null
}
{
"success": false,
"message": "This action is unauthorized. Your token is missing the required scope.",
"data": null
}
{
"success": false,
"message": "Not found.",
"data": null
}
Returns a single-call site health snapshot — WP version, PHP version, multisite/debug/cron flags, checksum status, item counts, pending update counts, SSL status. Requires the read:sites scope and the site:manage-update Team permission.
Path Parameters #
| Name | Type | Required | Description |
|---|---|---|---|
uuid | string (uuid) | Required | UUID of the site |
Responses #
200 — WordPress site health snapshot #
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Optional | |
message | string | Optional | |
data | object | Optional | |
data | object | Optional | |
data.wordpress_version | string | Optional | |
data.php_version | string | Optional | |
data.multisite_enabled | boolean | Optional | |
data.wp_debug_enabled | boolean | Optional | |
data.wp_cron_enabled | boolean | Optional | |
data.checksum_status | string | Optional | |
data.last_checksum_at | string (date-time) | Optional | |
data.items_count | object | Optional | |
data.items_count.plugins | integer | Optional | |
data.items_count.themes | integer | Optional | |
data.items_count.core | integer | Optional | |
data.updates_pending | object | Optional | |
data.updates_pending.core | boolean | Optional | |
data.updates_pending.plugins | integer | Optional | |
data.updates_pending.themes | integer | Optional | |
data.ssl | object | Optional | |
data.ssl.enabled | boolean | Optional | |
data.ssl.provider | string | Optional | |
data.ssl.expires_at | string (date-time) | Optional |
Example 200 response
Copy
{
"success": true,
"message": "Operation completed successfully.",
"data": {
"wordpress_version": "6.4.2",
"php_version": "8.2",
"multisite_enabled": false,
"wp_debug_enabled": false,
"wp_cron_enabled": true,
"checksum_status": "passed",
"last_checksum_at": "2026-05-06T08:00:00Z",
"items_count": {
"plugins": 23,
"themes": 3,
"core": 1
},
"updates_pending": {
"core": false,
"plugins": 5,
"themes": 1
},
"ssl": {
"enabled": true,
"provider": "xcloud",
"expires_at": "2026-08-12T00:00:00Z"
}
}
}
401 — Missing or invalid authentication token #
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Optional | |
message | string | Optional | |
data | object | Optional |
Example 401 response
Copy
{
"success": false,
"message": "Unauthenticated.",
"data": null
}
403 — Token lacks the required scope #
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Optional | |
message | string | Optional | |
data | object | Optional |
Example 403 response
Copy
{
"success": false,
"message": "This action is unauthorized. Your token is missing the required scope.",
"data": null
}
404 — Resource not found or not accessible to your Team #
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Optional | |
message | string | Optional | |
data | object | Optional |
Example 404 response
Copy
{
"success": false,
"message": "Not found.",
"data": null
}
