Skip to main content
POST
/
api
/
v1
/
ai
/
generate
Generate email draft
curl --request POST \
  --url https://nudgen.net/api/v1/ai/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "campaignGoal": "Write a short retention email inviting users to try Nudgen."
}
'
{
  "subject": "<string>",
  "html": "<string>",
  "generationMode": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.nudgen.net/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Personal Access Token created from Settings -> API Keys.

Body

application/json
campaignGoal
string
required
context
string | null
templateId
string | null
templateHtml
string | null
templateSubject
string | null
autoSelectTemplate
boolean
personalizationMode
enum<string>
default:off
Available options:
off,
lead_description_intro

Response

Generated draft

subject
string
html
string
generationMode
string