Generate email template with AI
POST/ai/generate
Generates an email template (subject, preview text, HTML body and suggested variables) from a merchant brief. Consumes one slot of the daily email-gen quota (5/day); returns 429 when the daily limit is reached.
Request
Responses
- 200
- 400
- 401
- 429
- 502
Generated template plus the post-call quota state.
Validation error
Unauthorized - Invalid or missing API key
Rate limit exceeded
Response Headers
Retry-After
The AI provider did not return a usable template.