# MagicWP Docs > Guides and API reference for MagicWP managed WordPress hosting - [Home](/): Managed WordPress hosting - create, connect, and run your sites - WordPress Hosting - [WordPress Hosting](/wordpress-hosting): Create and manage your WordPress sites from the dashboard - [Create New Site](/wordpress-hosting/create-new-site): Spin up a new WordPress site from the dashboard - [Create a Site from a Template](/wordpress-hosting/create-a-site-from-a-template): Start from a ready-made WordPress site instead of a blank one - [Create Empty Environment](/wordpress-hosting/create-empty-environment): Create a clean stack with no WordPress - for developers and custom installs - [Clone a Site](/wordpress-hosting/clone-a-site): Copy a site's files, database, and settings to a new or existing site - [Transfer a Site](/wordpress-hosting/transfer-a-site): Hand a site over to another MagicWP account - Performance - [Performance](/performance): Keep your site fast with caching and PHP tuning - [Caching](/performance/caching): Object cache (Redis), full-page cache (nginx) and OPcache - [PHP Settings](/performance/php-settings): PHP version, resource limits, PHP-FPM workers, and extensions - WordPress Management - [WordPress Management](/wordpress-management): Manage WordPress itself - settings, themes, plugins, and more - [Staging](/wordpress-management/staging): A copy of your site to work in, and a way to push it live - [WP Settings](/wordpress-management/wp-settings): Edit core WordPress settings from the dashboard - [Themes & Plugins](/wordpress-management/themes-plugins): Install, activate, update, and remove themes and plugins - [User Management](/wordpress-management/users): Reset a WordPress user's password from the dashboard - [Magic Login](/wordpress-management/magic-link): One-click, passwordless login to your site's wp-admin - [Maintenance Mode](/wordpress-management/maintenance): Show a maintenance page to visitors while you work - [Search and Replace](/wordpress-management/search-and-replace): Bulk-replace text across your site's database - Migrations - [Migrations](/migrations): Move an existing WordPress site to MagicWP - [MagicWP Migration](/migrations/magicwp-migration): Move a site with our own backup and migration plugin, using a transfer token - [Manual Migration](/migrations/manual-migration): Move a site by hand with SFTP and phpMyAdmin - [Migrate with Duplicator Plugin](/migrations/migrate-with-duplicator): Package the old site with Duplicator and run its installer on MagicWP - [Migrate with Migrate Guru Plugin](/migrations/migrate-with-migrate-guru): Push a site to MagicWP with Migrate Guru, without downloading anything - [Backups](/backups): Automatic backups and on-demand snapshots you can restore or download - [Domain](/domain): Connect your own domain to a MagicWP site - [Database](/database): View credentials and manage your site's database - [Security](/security): Harden your site against common WordPress attacks - [SFTP](/sftp): Connect to your site's files over SFTP - [Email](/email): Send WordPress email through a real provider for reliable delivery - [Redirects](/redirects): Send visitors from one URL to another at the server level - [Tools](/tools): Quick actions for managing your site - Account & Team - [Workspaces](/account): Your sites, plan and billing live in a workspace, which you can share with your team - [Members and roles](/account/members-and-roles): Give people access to your workspace, choose what they can do, and remove access - [Invitations](/account/invitations): Invite someone to your workspace, or accept an invitation - [Two-factor authentication](/account/two-factor): When MagicWP requires two-factor authentication, and what to expect - [API tokens](/account/api-tokens): Automate your workspace with the MagicWP API - [API endpoints](/account/api-endpoints): Every endpoint an API token can call, and the permission each needs - MagicWP API: Full API reference - [Overview](/api): Manage your sites and workspace from your own code with the MagicWP API - Sites - [List the workspace's sites](/api/sites/list-sites) - [Create a new site](/api/sites/create-site) - [Create the workspace's demo site](/api/sites/create-demo-site) - [List available base domains](/api/sites/list-base-domains) - [Pick a random base domain from the active list](/api/sites/random-domain) - [Check site creation limits](/api/sites/get-limits) - [List server regions available for new sites](/api/sites/list-regions) - [Get site details](/api/sites/get-site) - [Update site settings (status 'deleted' deletes the site)](/api/sites/update-site) - [List activity for a site](/api/sites/list-site-activity) - [Clone a site into a new site](/api/sites/clone-site) - [Clone a site into an existing site](/api/sites/clone-into-site) - [Fix the site (re-run Redis and MagicWP plugin setup)](/api/sites/fix-site) - [Edit the site's notes](/api/sites/update-notes) - [Change the site's storage quota](/api/sites/update-quota) - [Reset site (wipe data, reinstall WordPress)](/api/sites/reset-site) - [Restart the site's services](/api/sites/restart-site) - [This site's staging copy, and whether it may have one](/api/sites/get-staging) - [Create this site's staging copy](/api/sites/create-staging) - [Extend a staging site's expiry](/api/sites/extend-staging) - [Push a staging site over its live site](/api/sites/push-staging) - [Preview what pushing staging to live will change](/api/sites/push-preview) - [Backups taken before each push to this site](/api/sites/list-revert-points) - Backups - [List backups for a site](/api/backups/list-backups) - [Take a full backup now and keep it until deleted](/api/backups/create-backup) - [Create a download backup](/api/backups/download-backup) - [Rename a snapshot](/api/backups/rename-backup) - [Delete a download or manual backup](/api/backups/delete-backup) - [Export an existing backup for download (emailed link)](/api/backups/export-backup-for-download) - [Restore site from backup](/api/backups/restore-backup) - Snapshots - [List full backups (snapshots) across the workspace's sites](/api/snapshots/list-snapshots) - [Restore a snapshot onto another site](/api/snapshots/restore-snapshot) - Tasks - [List a site's tasks, newest first](/api/tasks/list-site-tasks) - [Running tasks across the sites I can reach](/api/tasks/list-running-tasks) - [Get task status](/api/tasks/get-task) - Domains - [List domains for a site](/api/domains/list-domains) - [Add and verify custom domain](/api/domains/create-domain) - [Update a domain (status='deleted' to remove)](/api/domains/update-domain) - [Connect domain to site](/api/domains/connect-domain) - [Disconnect domain from site](/api/domains/disconnect-domain) - [The DNS records this domain needs](/api/domains/domain-records) - [Re-check a pending domain's DNS](/api/domains/verify-domain-now) - Redirects - [List redirect rules](/api/redirects/list-redirects) - [Add a redirect rule](/api/redirects/create-redirect) - [Bulk import redirect rules](/api/redirects/bulk-import-redirects) - [Delete multiple redirect rules](/api/redirects/bulk-delete-redirects) - [Update a redirect rule](/api/redirects/update-redirect) - [Delete a redirect rule](/api/redirects/delete-redirect) - Cloudflare - [Cloudflare connection, record and zone settings](/api/cloudflare/get-status) - [Forget the Cloudflare token](/api/cloudflare/disconnect) - [Cloudflare accounts this grant can see](/api/cloudflare/list-accounts) - [Store a Cloudflare API token and list its zones](/api/cloudflare/connect) - [Point a domain at this site, and toggle the proxy](/api/cloudflare/apply-dns) - [Remove the records we wrote, and keep the connection](/api/cloudflare/detach-dns) - [Hand the Cloudflare grant back](/api/cloudflare/oauth-revoke) - [Purge the Cloudflare cache, or just some URLs](/api/cloudflare/purge) - [SSL mode, Always Use HTTPS, development mode](/api/cloudflare/update-settings) - [Zones this token can see](/api/cloudflare/list-zones) - Email Settings - [Get email configuration](/api/email-settings/get-email-settings) - [Set active email provider](/api/email-settings/activate-provider) - [Disable email sending](/api/email-settings/disable-email) - [Enable email sending](/api/email-settings/enable-email) - [Add or update email provider](/api/email-settings/add-provider) - [Update a provider (status='deleted' to remove)](/api/email-settings/update-provider) - [Send a test email](/api/email-settings/send-test-email) - Site Config - [Get database credentials](/api/site-config/get-database) - [Change database password](/api/site-config/change-db-password) - [Get temporary phpMyAdmin session status](/api/site-config/get-phpmyadmin-session) - [Open a temporary phpMyAdmin session (2 hours)](/api/site-config/open-phpmyadmin-session) - [Close the temporary phpMyAdmin session](/api/site-config/close-phpmyadmin-session) - [Flush nginx FastCGI cache](/api/site-config/flush-nginx-cache) - [Get page cache expiration (TTL)](/api/site-config/get-cache-ttl) - [Set page cache expiration (TTL)](/api/site-config/set-cache-ttl) - [List nginx feature statuses](/api/site-config/list-nginx-features) - [Toggle nginx feature](/api/site-config/toggle-nginx-feature) - [Get current PHP version](/api/site-config/get-php-version) - [List toggleable PHP extensions and their state](/api/site-config/list-php-extensions) - [Enable/disable PHP extensions](/api/site-config/patch-php-extensions) - [Get PHP-FPM (www.conf) settings](/api/site-config/get-php-fpm) - [Update PHP-FPM (www.conf) settings](/api/site-config/patch-php-fpm) - [Get php.ini settings](/api/site-config/get-php-ini) - [Update php.ini settings](/api/site-config/patch-php-ini) - [Get OPcache status](/api/site-config/get-opcache) - [Reset (flush) OPcache](/api/site-config/reset-opcache) - [Reset php.ini and PHP-FPM config to defaults](/api/site-config/reset-php-settings) - [Change PHP version](/api/site-config/change-php-version) - [Get SFTP credentials](/api/site-config/get-sftp) - [Change SFTP password](/api/site-config/change-sftp-password) - Site Metrics - [Today, ~40-min decimated samples](/api/site-metrics/daily) - [Last 30 raw samples (5-min)](/api/site-metrics/live) - [Last 30 days, daily average](/api/site-metrics/monthly) - WordPress - [Get WordPress core auto-update status](/api/wordpress/get-auto-update) - [Enable or disable WordPress core auto-update](/api/wordpress/toggle-auto-update) - [Bulk enable/disable theme/plugin auto-update](/api/wordpress/set-extended-auto-update) - [Bulk theme/plugin auto-update status](/api/wordpress/get-extended-auto-update) - [Flush cache](/api/wordpress/flush-cache) - [Get Redis object-cache plugin status](/api/wordpress/get-redis-cache) - [Toggle Redis object cache (enable/disable)](/api/wordpress/toggle-redis-cache) - [Install Redis object-cache plugin](/api/wordpress/install-redis-cache) - [Check for WordPress updates](/api/wordpress/check-core) - [Update WordPress core](/api/wordpress/update-core) - [Verify WordPress core file checksums](/api/wordpress/verify-core-checksums) - [Delete database clutter](/api/wordpress/cleanup-database) - [Optimize database tables](/api/wordpress/optimize-database) - [Table sizes, overhead and cleanup counts](/api/wordpress/database-stats) - [Change the database table prefix](/api/wordpress/change-db-prefix) - [Get WordPress debug constants](/api/wordpress/get-debug) - [Set WordPress debug constants](/api/wordpress/set-debug) - [Generate admin magic login link](/api/wordpress/magic-link) - [Get WordPress maintenance mode status](/api/wordpress/get-maintenance) - [Toggle WordPress maintenance mode](/api/wordpress/toggle-maintenance) - [List installed plugins](/api/wordpress/list-plugins) - [Activate a plugin](/api/wordpress/activate-plugin) - [Enable or disable auto-update for a plugin](/api/wordpress/toggle-plugin-auto-update) - [Deactivate a plugin](/api/wordpress/deactivate-plugin) - [Delete plugins](/api/wordpress/delete-plugin) - [Install plugins](/api/wordpress/install-plugin) - [Search WordPress.org plugin directory](/api/wordpress/search-plugins) - [Update plugin(s)](/api/wordpress/update-plugin) - [Search and replace in database](/api/wordpress/search-replace) - [Preview search and replace](/api/wordpress/search-replace-dry-run) - [Get WordPress settings](/api/wordpress/get-wp-settings) - [Update WordPress settings](/api/wordpress/patch-wp-settings) - [Regenerate wp-config.php keys and salts](/api/wordpress/shuffle-salts) - [List installed themes](/api/wordpress/list-themes) - [Activate a theme](/api/wordpress/activate-theme) - [Enable or disable auto-update for a theme](/api/wordpress/toggle-theme-auto-update) - [Delete themes](/api/wordpress/delete-theme) - [Install themes](/api/wordpress/install-theme) - [Search WordPress.org theme directory](/api/wordpress/search-themes) - [Update theme(s)](/api/wordpress/update-theme) - [List WordPress users](/api/wordpress/list-wp-users) - [Create a WordPress user](/api/wordpress/create-wp-user) - [Reset WordPress user password](/api/wordpress/reset-wp-password) - [Update a WordPress user](/api/wordpress/update-wp-user) - [Delete a WordPress user](/api/wordpress/delete-wp-user) - [Set a WordPress user's password](/api/wordpress/set-wp-user-password) - [Set a WordPress user's role](/api/wordpress/set-wp-user-role) - Updates - [Updates for one site](/api/updates/site-updates) - [Update items on one site](/api/updates/apply-site) - [Set auto-update on one site](/api/updates/set-auto-update-site) - [Check one site against WordPress.org now](/api/updates/check-site) - [Re-read one site's local state](/api/updates/refresh-site) - [Updates across every site](/api/updates/list-updates) - [Update items across sites](/api/updates/apply-all) - [Set auto-update across sites](/api/updates/set-auto-update-all) - [Check several sites against WordPress.org now](/api/updates/check-sites) - [Re-read the local state of several sites](/api/updates/refresh-sites) - Templates - [Templates the workspace can build from](/api/templates/list-templates) - [One template by slug](/api/templates/get-template) - Workspace - [The workspace activity log](/api/workspace/list-workspace-activity) - Workspaces - [The current workspace, and what this caller may do in it](/api/workspaces/current-workspace) - API tokens - [The API token making this request: name, expiry, limits and permissions](/api/api-tokens/current-token) - Plans & Addons - [List plans and their prices](/api/plans-addons/list-plans) - [List add-ons](/api/plans-addons/list-addons) - Subscriptions - [The workspace's subscriptions](/api/subscriptions/my-subscriptions) - [Preview subscription price before purchase](/api/subscriptions/preview-subscription) - [Whether the workspace can start a free trial](/api/subscriptions/trial-eligibility) - [Preview addon price before purchase](/api/subscriptions/preview-addon) - [Preview addon cancellation](/api/subscriptions/preview-cancel-addon) - [Preview cancellation before confirming](/api/subscriptions/preview-cancel) - [Preview upgrade pricing before confirming](/api/subscriptions/preview-upgrade) - Invoices - [List invoices](/api/invoices/list-invoices) - [One invoice](/api/invoices/get-invoice) - Coupons - [Verify / preview coupon](/api/coupons/verify-coupon) - Tickets - [List support departments](/api/tickets/list-departments) - [List the workspace's tickets](/api/tickets/list-my-tickets) - [Open a ticket](/api/tickets/open-ticket) - [One ticket with its replies](/api/tickets/get-my-ticket) - [Reply to a ticket](/api/tickets/add-reply)