curl -X POST https://api.delightbridge.com/api/draft/generate \
-H "Content-Type: application/json" \
-H "Cookie: session=your-session-token" \
-d '{
"messages": [
{
"direction": "inbound",
"fromName": "Sarah Chen",
"timestamp": "2026-03-01T09:15:00Z",
"body": "Hi, I am interested in upgrading to your premium plan. Can you tell me what features are included?"
},
{
"direction": "outbound",
"fromName": "Alex (Support)",
"timestamp": "2026-03-01T09:30:00Z",
"body": "<p>Hi Sarah, thanks for your interest! Let me get you those details.</p>"
},
{
"direction": "inbound",
"fromName": "Sarah Chen",
"timestamp": "2026-03-01T10:00:00Z",
"body": "Also, is there a discount for annual billing?"
}
],
"document": "Premium Plan Features:\n- Unlimited email threads\n- AI-powered drafts\n- Multi-language support\n- Priority support\n\nPricing: $99/month or $990/year (save 2 months)",
"categories": [
{ "id": "billing", "name": "Billing & Pricing" },
{ "id": "features", "name": "Product Features" },
{ "id": "technical", "name": "Technical Support" }
],
"signature": "<p>Best regards,<br>Alex Kim<br>Customer Success Team</p>"
}'