Skip to main content
POST
AI-assisted content generation

Authorizations

nonce
string
query
required

WordPress AJAX nonce (passed as form field, verified per-action)

Body

application/x-www-form-urlencoded
action
string
required
Allowed value: "sagescreen_ai_generate"
nonce
string
required

WP nonce for sagescreen_frontend_nonce

Example:

"abc123def456"

form_data
object
required

Key-value pairs of form field data to send to AI

Example:
form_identifier
enum<string>
required

Form type for AI generation

Available options:
context,
culture
Example:

"context"

language_code
string

ISO language code for generation language

Example:

"en"

Response

200 - application/json

AI generation result

success
boolean
Example:

true

content

Generated JSON content

Example: