Personalize Email
Lexi AI
Personalize Email
Generate a personalized email draft for a specific contact, optionally based on a template
POST
Personalize Email
Request
Headers
Optional UUID for retry deduplication.
Body Parameters
UUID of the contact the email is for.
High-level purpose of the email, in natural language. Examples:
"schedule an intro call", "follow up on proposal", "check-in after six weeks of silence".Optional template body. Merge tokens (
{{first_name}}, {{company}}) are resolved and the output is personalized around the template’s voice.One of
professional, warm, formal, casual.short (~50 words), medium (~120 words), or long (~250 words).ISO 639-1 language code.
Response
X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-Request-ID.
Example Response
Errors
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Missing contact_id or intent |
| 401 | invalid_key | Invalid or expired API key |
| 402 | insufficient_credits | Workspace credit balance is exhausted |
| 403 | insufficient_permissions | Missing write:ai permission |
| 404 | not_found | Contact not found |
| 429 | rate_limited | Rate limit exceeded |