Send Email
Send an email to a recipient. Required: email (recipient), subject, message. Optional: from (sender name), lead_id, conversation_id for tracking.
Input Schema
| Parameter | Type | Description |
|---|---|---|
| string | Recipient email address | |
| subject | string | Email subject |
| message | string | Email body (HTML or plain text) |
| from | string | Sender display name |
| lead_id | string | Lead UUID for tracking |
| conversation_id | string | Conversation UUID for tracking |
| agent_id | string | Agent UUID for tracking |
REST Endpoint
POST /api/agents/tools/sendEmailThe site_id field is required when calling via REST.
POST /api/agents/tools/sendEmail
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"site_id": "YOUR_SITE_ID",
"email": "recipient@example.com",
"subject": "Hello from Makinari",
"message": "<p>Hi there!</p>",
"from": "Sales Team",
"lead_id": "LEAD_UUID"
}Response:
{
"success": true,
"status": "sent",
"envelope_id": "...",
"email_id": "..."
}Last updated on