WordPress

Start an AI assistant task: write (a new page or post from a brief), rewrite, seo (SEO title + meta description), alt_text (image alt texts from titles, captions and file names) or translate (into any language). Answers right away with status running; poll the run. Content is saved as a draft (never published); SEO texts and alt texts are proposals to apply. Metered in Build Credits.

post/projects/{projectId}/wordpress/ai/runs

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/projects/{projectId}/wordpress/ai/runs
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

projectIdstring uuid required

Request body

OR
OR
OR
OR

Response

Started

idstring uuid required
task'write' | 'rewrite' | 'seo' | 'alt_text' | 'translate' required
status'running' | 'ready' | 'applied' | 'failed' required
languagestring nullable required
appliedAttachmentIdsinteger[] required
applyErrorstring nullable required
createdAtstring required

ISO-8601 timestamp

finishedAtstring nullable required

ISO-8601 timestamp

appliedAtstring nullable required

ISO-8601 timestamp

createdBystring uuid nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.