mainwp-wordpress-seo category. Both use the mainwp/ namespace on your MainWP Dashboard.
Use them to audit the Yoast SEO settings templates saved in the extension, check which sites a template was applied to, and review a fixed set of key settings without opening the Settings Templates tab.
What You’ll Learn
- List saved Yoast SEO settings templates with pagination
- Read one template’s recorded site applications and settings summary
- Understand which settings are returned and which text is masked
Prerequisites
- WordPress 6.9 or later on the MainWP Dashboard site
- MainWP Dashboard with Abilities API support; use version 6.2 or later for the
input_jsonexamples below - An Abilities-enabled release of the WordPress SEO Extension, active on MainWP Dashboard
- At least one settings template imported in MainWP > Add-ons > Content Operations > WordPress SEO > Settings Templates
- An authenticated user with
manage_optionsand access to the WordPress SEO Extension
Available Abilities
Discover the abilities and their schemas:
readonly: true, destructive: false, and idempotent: true. They read data stored on MainWP Dashboard only. They do not apply templates, sync sites, or contact Child sites.
List Templates
Ability:mainwp/list-wordpress-seo-templates-v1Method: GET
Both parameters are optional. Extra input properties are rejected.
Example response:
Get a Template
Ability:mainwp/get-wordpress-seo-template-v1Method: GET The only input is the required
id, a positive integer template ID from the list ability.
Application times record when MainWP Dashboard applied the template to a site. They do not confirm the site’s current Yoast SEO settings, which may have changed since.
Settings summary
The summary never returns the full imported settings. It includes only these settings when they are present in the template:
All values are returned as strings exactly as stored in the template, such as
"1" or "on". Yoast variables such as %%sitename%% stay readable.
settings_summary is an empty array when the template contains none of these keys. It is null when the stored settings cannot be read, for example when they are malformed or larger than 1 MB.
Masked Values
Both abilities mask sensitive-looking text in every returned string, including titles, descriptions, site names, and setting values. Masked text is replaced with[redacted]. This applies to:
- Credentials, such as passwords, tokens, API keys, and Bearer or Basic authorization values
- URLs, domain names, and file paths
- Email addresses
Error Handling
Standard authentication, schema, and method errors follow the Abilities API error reference. WordPress SEO can also return:Related Resources
- Yoast SEO - Import and apply Yoast SEO settings templates
- Abilities API Overview - Authentication, input formats, discovery, and errors
- Sites Abilities - Look up site details by site ID
