Versoo Content Ops exposes three REST API endpoints under the versoo-content-ops/v1 namespace. All three require a logged-in user who is designated under Content Ops → Access and a valid WordPress REST nonce. /draft also requires the edit_posts capability, or edit_pages when format is page.
Authentication
Include a X-WP-Nonce header with a nonce generated by wp_create_nonce('wp_rest'). Cookie authentication is handled automatically for requests from the WP admin. For external requests, use WordPress Application Passwords.
POST /wp-json/versoo-content-ops/v1/draft
Generates an AI draft and saves it as a WordPress draft post or page.
Request body
{
"title": "Why AI-generated content still needs a human brand voice",
"type": "opinion",
"intent": "Argue that AI drafts fail not because the writing is bad but because they lack a specific point of view. Cover what brand voice actually is (not tone), why it's impossible to inject without brand context, and what the fix looks like in practice.",
"length": "medium",
"format": "post"
}
Parameters
title(string, required) — Key phrase, 2–5 words. Doubles as the focus keyword for the SEO checklist.type(string, required) — One of:tutorial,explainer,listicle,opinion,case_study,faq,comparison,announcement.intent(string, required) — What the post should cover. One paragraph of specifics produces better output than a vague topic name.length(string, optional) —short(300–500w),medium(700–1,000w),long(1,500–2,000w). Default:medium.format(string, optional) —postorpage. Default:post.
Response
{
"post_id": 412,
"edit_url": "https://example.com/wp-admin/post.php?post=412&action=edit",
"word_count": 847,
"input_tokens": 312,
"output_tokens": 1104,
"seo_report": {
"passed": 12,
"total": 13,
"checks": [
{ "key": "keywordInTitle", "label": "Focus keyword in title", "passed": true, "reason": null },
{ "key": "titleHasNumber", "label": "Title has a number", "passed": false, "reason": "Title has no number." }
]
}
}
The draft is saved with status draft. Nothing is published automatically. Token counts are estimates based on character length, not exact billing figures. seo_report.checks lists all 13 SEO checklist results (two shown here). reason is null when a check passes.
POST /wp-json/versoo-content-ops/v1/analyze-brand
Analyzes a writing sample and returns suggested values for the four brand context fields. Does not save anything — call this to preview suggestions before deciding whether to save them to Brand Context settings.
Request body
{
"sample": "Paste one or two paragraphs of your own writing here. Minimum 50 characters."
}
Parameters
sample(string, required) — Writing sample, minimum 50 characters.
Response
{
"audience": "Solo founders and content creators running small publishing businesses.",
"angle": "Practical, numbers-driven perspective from someone actively running niche sites.",
"tone": "Direct and conversational. No hedging, no filler.",
"topics": "Content strategy, affiliate SEO, niche sites, AI writing tools."
}
POST /wp-json/versoo-content-ops/v1/seed-brand
Reads 1–5 published posts or pages and returns suggested brand context fields plus a writing-sample excerpt of about 400 words. This is the endpoint behind Start from your posts. Like /analyze-brand, it saves nothing.
Request body
{
"post_ids": [128, 131, 140]
}
Parameters
post_ids(array of integers, required) — 1–5 IDs of published, non-password-protected posts or pages.
Response
{
"audience": "Solo founders and content creators running small publishing businesses.",
"angle": "Practical, numbers-driven perspective from someone actively running niche sites.",
"tone": "Direct and conversational. No hedging, no filler.",
"topics": "Content strategy, affiliate SEO, niche sites, AI writing tools.",
"excerpt": "Whole paragraphs from the selected posts, about 400 words in total…",
"sources": [ { "id": 128, "title": "What I learned from 40 niche sites" } ],
"skipped": [ { "id": 140, "title": "Quick update", "reason": "too_little_text" } ]
}
Posts with fewer than 50 words are listed in skipped instead of sources. excerpt is empty when no paragraph is long enough to use.
Error responses
401— Not logged in.403— User isn’t designated under Access, or lacks the capability the request needs.400— Missing or invalid parameter. For/seed-brand, also returned when a post isn’t published, is password-protected, or isn’t a post or page.422—/seed-brandonly: every selected post has too little text to analyze.429— AI token allowance exhausted. Try a shorter intent or wait for the allowance to reset.503— AI is not available in this environment (no provider configured).