Skip to content
View as Markdown

POST Generate AI Content​

POST
/ai/generate

Generate or transform email copy using the saved AI settings. Supported actions are rewrite, shorten, expand, fix_grammar, and custom.

Authorizations​

ApplicationPasswords

WordPress Application Passwords — use Basic auth with your WordPress username and an application password in the format: username:application_password

Type
API Key (header: Authorization)

Request Body​

application/json
JSON
{
"action": "string",
"content": "string",
"tone": "string",
"custom_prompt": "string"
}

Responses​

AI content generated successfully.

application/json
JSON
{
"content": "string"
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI