curl --location --request GET '/smartflows//actions/send/email/' \
--header 'Authorization: Bearer JWT' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Custom activity name",
"activityId": "4a06896c-81b3-44f4-b493-2057bef951a2",
"smartflowId": "4a06896c-81b3-44f4-b493-2057bef951a2",
"ancestorId": "4a06896c-81b3-44f4-b493-2057bef951a2",
"descendantId": "4a06896c-81b3-44f4-b493-2057bef951a2",
"metrics": {
"toSent": 123,
"sent": 123,
"delivered": 123,
"opened": 123,
"clicked": 123
},
"subject": "Welcome!",
"preheader": "Here’s a special message for you.!",
"from": "Marketing",
"fromEmail": "marketing@company.com",
"replyTo": "support@company.com",
"cc": "backup@incomaker.com",
"language": "cs",
"assetId": "1213",
"thumbnail": "/asset/15613/templates/5135sdf1sd32"
}'{
"data": {
"activityId": "string",
"smartflowId": "string",
"ancestorId": "string",
"metrics": {
"toSent": 0,
"sent": 0,
"delivered": 0,
"opened": 0,
"clicked": 0
},
"subject": "string",
"preheader": "string",
"from": "string",
"fromEmail": "string",
"replyTo": "string",
"cc": "string",
"language": "string",
"assetId": "string",
"thumbnail": "string"
},
"validation": {
"severity": "warn",
"message": "Missing something",
"fields": {
"successCampaignUuid": {
"severity": "warn",
"message": "Missing"
},
"confirmationCampaignUuid": {
"severity": "error",
"message": "Missing"
}
}
}
}