Create Template From Prompt
POST /newsletters/templates/custom
POST
/newsletters/templates/custom
Build a template from a plain-language idea. ASYNC and AI-backed.
voice_reference_issue_ids points the model at past issues to imitate,
which is the difference between generic copy and something that sounds like
the organisation. Same polling contract as /templates/layout.
Authorizations
Parameters
Header Parameters
Request Body required
Build a template from a plain-language idea. ASYNC and AI-backed.
object
goal
What it is for, e.g. product.
string
idea
required
What the email should say, in plain words.
string
voice_reference_issue_ids
Past issues to imitate the voice of.
Array<string>
Responses
202
Successful Response
object
data
required
An open envelope for a newsletter, an issue, a template or a send row.
object
key
additional properties
any
pagination
Any of:
object
has_next
required
Whether there are more pages
boolean
limit
required
Items per page
integer
notes
Any of:
Array<string>
null
page
required
Current page number (1-indexed)
integer
total
required
Total number of items
integer
null
422
Validation Error
object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string