A plugin to publish blogs to your WordPress website.
/statusThe /status endpoint provides information about the current status of the Blog Post Connector plugin, including its version.
/wp-json/sm-connect/v1/statusGETTo access this endpoint, make a GET request and include an Authorization header with a valid Bearer token.
| Header | Value |
|---|---|
| Authorization | Bearer <your_access_token> |
Here’s an example of how to make a request to the /status endpoint using AngularJS:
$http({
method: 'GET',
url: 'SITE_URL/wp-json/sm-connect/v1/status',
headers: {
'Authorization': 'Bearer 57e530e516f690213e645cc75fa1abde' // Replace with your actual token
}
}).then(function successCallback(response) {
// Success callback
console.log('Status:', response.data.data.version);
return response.data;
}, function errorCallback(response) {
// Error callback
console.error('Error:', response.data.message);
throw response.data.message;
});
{
"status": 200,
"message": "Operation successful",
"data": {
"site_details": {
"name": "Marketing Agency",
"description": "We provide SEO, PPC, social media, web design and more.",
"logo": "http://social-post-integration.local/wp-content/uploads/2024/09/123menlife_logo.png",
"version": "6.6.2",
"plugin_version": {
"current": "0.0.1",
"latest": "1.0.3"
},
"categories" : "categories",
"tags" : "tags",
"authors": [
{ "ID": 2, "data": { "display_name": "Jane Author" } },
{ "ID": 5, "data": { "display_name": "Sam Editor" } }
],
"default_author": { "ID": 2, "data": { "display_name": "Jane Author" } }
},
"webhook_status": "enabled"
}
}
| Field | Type | Description |
|---|---|---|
| data.site_details | object | Site name, description, logo, WordPress version, plugin version, categories, tags, authors and the default author. |
| data.site_details.authors | array | Users with the Author, Editor or Administrator role. Each entry has only ID and data.display_name. |
| data.site_details.default_author | object or null | The author that posts sent without an author are assigned to, in the same shape as an authors entry. This is the Default Author saved in Post Settings when it points at an existing user, otherwise the site default: the administrator with the lowest user ID. null only when the site has no administrator. A saved default can be a user who is not in authors, such as a Contributor. |
| data.webhook_status | string | Whether outbound webhook delivery is currently enabled or disabled. See Enable/Disable Webhook. |
Note that webhook_status is a sibling of site_details, not nested inside it — it describes the connection rather than the site.