Here’s the wall almost every automated publishing setup hits: your agent can create a WordPress post over the REST API in one call, but it can’t touch the SEO fields. Focus keyword, meta description — blank. The Rank Math REST API is what closes that gap, and it’s why Rank Math is the quiet MVP of my publishing stack.
The reason for the gap is boring. SEO metadata isn’t part of WordPress core — it lives inside whatever plugin you installed, and most plugins never expose it over an API. So your agent publishes a technically-live post with an empty SEO box, and you go fill it in by hand. Congratulations: you automated the writing and kept the chore.
Rank Math ships an endpoint. Most plugins don’t.
The free Rank Math plugin registers its own REST namespace. One authenticated POST to /wp-json/rankmath/v1/updateMeta and your agent sets its own SEO:
curl -X POST "https://yoursite.com/wp-json/rankmath/v1/updateMeta" \
-u "USERNAME:APPLICATION_PASSWORD" \
-H "Content-Type: application/json" \
-d '{
"objectType": "post",
"objectID": 6788,
"meta": {
"rank_math_focus_keyword": "your focus keyword",
"rank_math_title": "Your SEO Title %sep% %sitename%",
"rank_math_description": "Your 155-character meta description."
}
}'
That’s the whole trick. Same application password you already use to publish — no extra auth, no plugin add-on. There’s an updateMetaBulk route on the same namespace too, if you ever need to backfill a few hundred old posts.
The receipt
175 posts on this site since June 12 — including the one you’re reading right now. Every one of them had its focus keyword, SEO title and meta description written and set by an agent, seconds after the post went live. I have not opened the Rank Math panel in the WordPress editor in three months. That’s not a demo; it’s just Thursday.

⚡ GET THE AI EDGE
Weekly AI tips that actually save you time and money. No fluff, no hype — just what works.
Why this quietly decides your whole stack
Most people choose an SEO plugin off a feature comparison table. If an agent is doing your publishing, ignore the table and ask one question: can a script write to it? A plugin your agent can’t reach turns every published post into a fresh item on your to-do list — which is exactly the flavour of “automation” that costs more time than it saves.
Check yours in ten seconds. Open https://yoursite.com/wp-json in a browser and look for your SEO plugin’s namespace in the list. If it isn’t there, your agent can’t set your metadata, and no amount of prompting will change that. It’s a plugin problem, not a Claude problem.
This is the same principle behind running the whole thing on cron: pick the tools that already speak API, and your agent inherits the capability for free.
Today’s takeaway: automating the writing is the easy half. Automating everything a post needs after it’s written — metadata, featured image, category, internal links — is what turns a content bot into an actual publishing system. Rank Math’s REST endpoint is a free five-minute piece of that puzzle. Go check your namespace list today.
If you want the full picture of what it takes to run this unattended, I broke it down in what it really takes to run a fully autonomous AI agent. And if you’d rather have the pipeline built for you than build it yourself, book an automation strategy session and we’ll map it out.

📥 FREE: THE AI PLAYBOOK
The exact tools and workflows I use to run a one-person agency. 25 years of marketing experience distilled into an actionable guide. Yours free.
