AI Email WriterAPI

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

content creation~3 credits/callv1.0.0

Endpoint

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

Authentication

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

recipientName
recipientRole
recipientRelationship
goal
tonestring

Tone of the email

Values: formalsemi_formalfriendlypersuasivepoliteenthusiasticconfidentempatheticdirect

Default: formal

lengthstring

Length of the email

Values: shortmediumdetailed

Default: medium

writingStyle
cta
keywords
personalizationTags
language
signature
generateSubjectLine
previewFormat
versionCountnumber

Number of email variations to generate

Default: 1

Example Request

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": "professional",
    "length": "medium"
  }'

Request Body

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

Example Response

{
  "success": true,
  "message": "AI Email Writer completed successfully",
  "timestamp": "2026-04-14T22:15:03.875Z",
  "requestId": "req_kj5s3bm3o",
  "data": {
    "cost": 0.03,
    "remainingCredits": 9.95
  }
}

SDK

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": "professional",
  "length": "medium"
})

Install: npm install aaddyy

Pricing

~3 credits (~$0.03) per request

Feature pricing:

  • multipleVersions: +1 credits

Rate Limits

20 requests per 1m

Burst: 5