AI Email Writer API

Generate professional, personalized, and context-aware emails for any purpose using AI. Supports multiple tones, styles, and customization options.

content creationFrom 3 creditsv1.0.0

Endpoint

endpoint
POST https://backend.aaddyy.com/api/ai/email-writer

Authentication

header
Authorization: Bearer YOUR_API_KEY

Parameters

Required

emailTypestringrequired

Type of email to generate

Values: businesssales_outreachmarketingnewslettercustomer_supportfollow_upnetworkingjob_applicationpersonalannouncementapology

Example: sales_outreach

topicstringrequired

Topic or subject of the email

Example: Request for a meeting next week to discuss project collaboration

Optional

recipientNamestring
recipientRolestring

Values: clientmanagerhrcolleaguefriendprospectcustomer

recipientRelationshipstring

Values: new_contactexisting_clientinternalpersonal

goalstring

Values: get_replyschedule_meetingshare_informationpersuade_sellapologizeannounce

tonestring

Tone of the email

Values: formalsemi_formalfriendlypersuasivepoliteenthusiasticconfidentempatheticdirect

Default: formal

lengthstring

Length of the email

Values: shortmediumdetailed

Default: medium

writingStylestring

Values: standardprofessionalconversationalmarketingstorytelling

Default: standard

ctastring

The call to action the email ends with.

keywordsarray

Up to 10 words or phrases to work into the email.

personalizationTagsobject

Facts to personalise the email with, as names and values.

languagestring

Values: englishspanishfrenchgermanhindiportugueseitalian

Default: english

signatureobject

The sign-off: { name, title, company, contact }, each text.

generateSubjectLineboolean

Default: true

previewFormatstring

Values: plain_texthtml

Default: plain_text

versionCountinteger

Number of email variations to generate

Default: 1

Example Request

cURL
curl -X POST https://backend.aaddyy.com/api/ai/email-writer \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "emailType": "sales_outreach",
    "topic": "Request for a meeting next week to discuss project collaboration",
    "tone": "formal",
    "length": "medium"
  }'

Request Body

json
{
  "emailType": "sales_outreach",
  "topic": "Request for a meeting next week to discuss project collaboration",
  "tone": "formal",
  "length": "medium"
}

Example Response

json
{
  "success": true,
  "message": "AI Email Writer completed successfully",
  "timestamp": "2026-11-15T01:57:16.328Z",
  "requestId": "req_y1cjwcul8",
  "data": {
    "cost": 0.03,
    "remainingCredits": 9.95
  }
}

SDK

javascript
import { AADDYY } from 'aaddyy'

const client = new AADDYY()
const result = await client._request('POST', '/api/ai/email-writer', {
  "emailType": "sales_outreach",
  "topic": "Request for a meeting next week to discuss project collaboration",
  "tone": "formal",
  "length": "medium"
})

Install: npm install aaddyy

Pricing

$0.03 per email (3 credits)

per email; +$0.01 per extra version (up to 5)

Rate Limits

20 requests per 1m

Burst: 5