diff --git a/source/includes/_api_endpoint_emails.md b/source/includes/_api_endpoint_emails.md index 7256a534198..b9116a95424 100644 --- a/source/includes/_api_endpoint_emails.md +++ b/source/includes/_api_endpoint_emails.md @@ -443,6 +443,35 @@ assetAttachments|array|Array of asset ids } ``` +### Send Custom HTML email to Contact +```php +sendCustomToContact($emailId, $params); +``` +Send a custom HTML email to an existing contact. This event is saved to contact's profile, same behavior as Send email button from contact's detail page. + +#### HTTP Request + +`POST /emails/contact/{contactId}/send/custom` + +**Post Parameters** + +Name|Type|Description +----|----|----------- +$params|array|Array of parameters (fromEmail - required, fromName, replyToEmail, replyToName, subject - required, content - required) + +#### Response + +`Expected Response Code: 200` + +**Properties** +```json +{ + "success": 1, + "trackingHash" : "xxxxxx" +} +``` + ### Send Email to Segment ```php