These abilities require an Article Uploader release that includes Abilities API support. Earlier builds do not register them. Check ability discovery on your Dashboard before using these examples.
mainwp-article-uploader category. Both use the mainwp/ namespace on your MainWP Dashboard.
Use them to review articles that are waiting in the Upload Articles or Import Articles tables before you publish them. They do not upload, import, edit, publish, drip, or delete articles.
What You’ll Learn
- List staged articles with pagination and an optional source filter
- Read one staged article with a short plain-text excerpt
- Interpret target sites, hidden sites, and masked text
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 Article Uploader build that registers these abilities, active on MainWP Dashboard
- An authenticated user with
manage_optionsand access to the Article Uploader Add-on
hidden_site_count.
Available Abilities
Discover the abilities and their schemas:
readonly: true, destructive: false, and idempotent: true. They reject extra input properties.
List Staged Articles
Ability:mainwp/list-article-uploader-articles-v1Method: GET
total is the number of staged articles that match the source filter. The list is not limited to drafts; it uses the WordPress any status query for staged articles.
Get One Staged Article
Ability:mainwp/get-article-uploader-article-v1Method: GET The only input is the required
id: the article’s positive integer ID in MainWP Dashboard. Use an id from the list response.
excerpt:
mainwp_post_not_found, even when the ID exists.
Response Fields
When
target is an object, sites lists the selected sites you can access, with site_id and name. hidden_site_count counts selected sites you cannot access. Their IDs and names are not returned.
drip_enabled reports only the saved marker. Dripping an article removes it from the staged tables, so a dripping article no longer appears in these results.
Excerpts and Masked Text
The excerpt is built from the stored article body. Shortcodes and HTML are removed before the text is shortened to 300 characters. The response never includes the full body, HTML, or raw metadata. Before returning any text field, Article Uploader replaces sensitive-looking values with[redacted]:
- URLs, domain names, query strings, and file paths
- Email addresses, except in
author - API keys, tokens, private keys, and
key=valuecredentials - Any field that contains
BasicorBearerfollowed by another word. The whole field is replaced.
These abilities read stored data on MainWP Dashboard only. They do not contact Child sites, read upload folders, or change posts, metadata, or settings.
Error Handling
Standard authentication, schema, and method errors follow the Abilities API error reference. Article Uploader can also return:
Unauthenticated requests return HTTP 401 from MainWP Dashboard before the ability runs.
Related Resources
- Article Uploader - Upload, import, edit, and publish articles
- Abilities API Overview - Authentication, input formats, discovery, and errors
- Sites Abilities - Look up site IDs returned in
target
