Skip to main content

GET /dashboard

Returns a comprehensive snapshot of the site, including post/page/plugin/theme/user counts, pending update counts, PHP and database system info, disk usage, and the five most recently published posts.
curl -X GET https://example.com/wp-json/wp-manager-pro/v1/dashboard \
  -H "X-WP-Nonce: YOUR_NONCE"

Response

site
object
Core WordPress and server information.
counts
object
Published content and installed asset counts.
updates
object
Pending update counts.
system
object
PHP configuration and storage details.
active_theme
string
Name of the currently active theme.
recent_posts
array
The five most recently published posts.

Example response

{
  "site": {
    "name": "My WordPress Site",
    "url": "https://example.com",
    "wp": "6.5.2",
    "php": "8.2.10",
    "debug": false,
    "maintenance": false
  },
  "counts": {
    "posts": 42,
    "pages": 8,
    "plugins": 15,
    "active_plugins": 12,
    "themes": 3,
    "users": 5
  },
  "updates": {
    "plugins": 2,
    "themes": 0,
    "core": false
  },
  "system": {
    "memory_limit": "256M",
    "upload_max": "64M",
    "max_exec_time": "300",
    "db_size": 14.82,
    "uploads_size": "512.00 MB"
  },
  "active_theme": "Twenty Twenty-Four",
  "recent_posts": [
    {
      "id": 101,
      "title": "Hello World",
      "date": "2026-03-15 10:00:00",
      "url": "https://example.com/hello-world/"
    }
  ]
}

Build docs developers (and LLMs) love