Skip to main content
POST
/
api
/
ext
/
ai
/
email
/
subject-line-suggestion
Generate email subject line suggestions
curl --request POST \
  --url https://app.spotzee.com/api/ext/ai/email/subject-line-suggestion \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'subject_line=Limited Time Offer: 50% Off All Products'
{
  "status": "success",
  "data": {
    "subject_line": [
      "🚀 [FNAME], Your 50% Discount Expires Tonight",
      "Last Day: Half Price on Everything You Love",
      "⏰ Final Hours for 50% Off - Don't Miss Out",
      "[FNAME], Claim Your Exclusive 50% Savings Now",
      "Today Only: Shop 50% Off Sitewide"
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Use format: Bearer YOUR_API_KEY

Body

application/x-www-form-urlencoded
subject_line
string
required

Email subject line to get suggestions for

Example:

"Limited Time Offer: 50% Off All Products"

count
string

Number of suggestions to generate (1-10). Passed as string but must be numeric.

Pattern: ^[1-9]$|^10$
Example:

"5"

Response

Successfully generated subject line suggestions

status
enum<string>
required
Available options:
success
data
object
required