v5

OpenAPI 3.0.02026-08-034760291.5 KB
CMS

Auto-optimize an article

Returns an AI-optimized version of the article content based on selected audit issues, keywords, and prompts. Charges a flat credit cost derived from the article's word count.

post/v3/cms/articles/{slug}/auto-optimize

Path parameters

slugstring required

Request body

teamIdstring
keywordsstring[]
promptsstring[]
selectedIssuesstring[]

Response

Success: { queued: true, jobId, creditEstimate } — the job is enqueued; poll GET /articles/:slug/auto-optimize/status until status is done or failed. Insufficient credits: { queued: false, requiredCredits, message }.

queuedboolean
jobIdstring
creditEstimatenumber
requiredCreditsnumber
messagestring
alreadyRunningboolean