GET /maintenance
Returns the current maintenance mode status and all appearance settings for the maintenance page.Response
Whether maintenance mode is currently enabled.
Heading text shown on the maintenance page.
Body message shown on the maintenance page.
Optional ISO 8601 timestamp for the countdown timer. Empty string if not set.
Hex color for the start of the background gradient (e.g.
#1e1e2e).Hex color for the end of the background gradient.
Hex color for accent elements such as the divider and badge.
Hex color for body text.
Logo content — an emoji or short text displayed in the icon box.
Text shown inside the animated badge.
Whether the animated badge is visible.
Whether the countdown timer is visible.
List of role slugs that can bypass maintenance and view the site normally.
Map of role slug to role display name for all non-administrator roles.
Secret URL key. Appending
?wmp_preview=KEY to any URL grants a 7-day bypass cookie.Which pages maintenance applies to:
all, home, or paths.Newline-separated URL path patterns when
scope is paths.The site’s home URL with trailing slash.
POST /maintenance/toggle
Enables or disables maintenance mode. You can also pass any appearance settings in the same request to update them atomically.WP Manager Pro stores maintenance state in the database rather than writing a
.maintenance file. This ensures the REST API remains accessible while maintenance mode is active, so you can always toggle it back via the API.Parameters
true to enable maintenance mode, false to disable it.Page heading text.
Body message text (supports newlines).
Countdown end time as an ISO 8601 string (e.g.
2026-04-01T12:00:00).Hex color for the gradient start.
Hex color for the gradient end.
Hex color for accent elements.
Hex color for body text.
Logo emoji or text.
Animated badge text.
Whether to show the animated badge.
Whether to show the countdown timer.
Array of role slugs that can bypass maintenance.
Scope of maintenance:
all, home, or paths.Newline-separated URL path patterns (used when
scope is paths).Response
Always
true on success.The new maintenance mode state.
POST /maintenance/settings
Saves appearance settings without changing the maintenance mode active state. Use this endpoint to update the page design while maintenance is already running.Parameters
Accepts the same appearance parameters asPOST /maintenance/toggle (all optional): title, message, end_time, bg_start, bg_end, accent, text_color, logo, badge_text, show_badge, show_countdown, bypass_roles, bypass_key, scope, scope_paths.
Response
Always
true on success.Confirmation message.
