Marketing
WordPress.com in your product and your AI agents, through one API
The WordPress.com toolkit covers sites, posts and pages, categories, comments and their replies, and stats such as views, top posts and referrers, for WordPress.com sites and self-hosted sites connected with Jetpack. Through Connect your product or AI agent calls them with one endpoint, while Connect stores and renews the OAuth credentials and logs every execution.
15 days to try it. No credit card.
POST https://connect.reportei.com/api/tools/wordpress_com_create_post/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json
{
"customer_toolkit": "<connection UUID>",
"arguments": {
"site": "<site>"
}
}How it works
From a connected customer to the first WordPress.com call.
- 1
Your customer connects the account
Your system opens a Connect session for the toolkit and your customer connects their WordPress.com account. You get the connection id.
- 2
Your product calls the tool
A POST to /api/tools/{tool}/execute with the connection id and arguments. On success, Connect preserves the app's response status and body.
- 3
Connect handles the rest
It stores the credential encrypted, renews tokens for OAuth connections that support renewal and records executions in an audit trail available through the API.
Use cases
What your product does with WordPress.com.
Publish content from your app
A content tool creates a post as a draft or publishes it right away, then updates it when the text changes.
Moderate the comment queue
An AI agent lists unapproved comments and approves them, marks spam or replies as the connected user.
Report on site traffic
An agency dashboard reads views, visitors, top posts and referrers of a site over a number of periods.
Tools
12 WordPress.com tools
- List sitesGETLists the sites of the account, with the ID that the other tools ask for as site, the name and the URL. The connection reaches only the site the client chose when authorizing it.
- List postsGETLists the posts or pages of a site, newest first, with found as the total. Only published ones by default; status lists the others. To read the next page, pass the meta.next_page of the response as page_handle.
- Get postGETReturns a post or page with its title, content, excerpt, status, URL, categories and tags.
- Create postPOSTCreates a post or page and returns it. The default status is publish, which puts it live right away: send draft to save it unpublished. Once published, it is also shared on the social accounts connected to the site, unless publicize is false.
- Update postPOSTUpdates a post or page and returns it. Only the fields sent change. When editing a draft, also send status draft, so the change never publishes it. status trash sends the post to the trash.
- List categoriesGETLists the categories of a site with their ID, name, slug and post_count, sorted by name. Create post and Update post take the category names or IDs.
- List commentsGETLists the comments of a site, newest first, with found as the total and the post of each comment in post. Only approved ones by default; status unapproved lists the moderation queue. The last page is when page times number reaches found.
- Update commentPOSTModerates or edits a comment and returns it. status approved publishes it, unapproved sends it back to the moderation queue, spam marks it as spam and trash sends it to the trash.
- Create comment replyPOSTReplies to a comment as the connected user and returns the reply, which is public on the site.
- Get stats summaryGETReturns the views, visitors, likes and comments of a site over the last num periods up to date, and the total of followers.
OAuth with your product's app
You register your product's OAuth app once, with POST /api/merchants/credentials/wordpress_com, and your customer authorizes the account on a consent screen. Connect renews the token when it is about to expire.
Questions about the WordPress.com toolkit
Do I need to build against the WordPress.com API?
No. Connect ships 12 WordPress.com tools, described and ready. Your customer connects the account and your system calls every tool through the same endpoint, with the same request format.
How does my customer connect their WordPress.com account?
With the mode the toolkit accepts: OAuth with your product's app. Connect stores the credential encrypted and never returns it to your system.
Does it work with AI agents?
Yes. Each tool's input is described in JSON Schema, which your agent uses directly as a tool definition. The agent picks the tool and the arguments, and your system makes the call to Connect.
Does my customer need a Reportei account?
No. Your customer connects the account on a Connect screen, or your system sends the credential through the API, and they keep using only your product.
Toolkits in the same category
See all 100 toolkitsSee Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
