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": "4a06896c-81b3-44f4-b493-2057bef951a2",
"smartflowId": "eb358a61-3778-4cd5-aaa4-9d7f4adb9a2d",
"ancestorId": "4a06896c-81b3-44f4-b493-2057bef951a2",
"metrics": {
"toSent": 1000,
"sent": 125,
"delivered": 100,
"opened": 80,
"clicked": 20
},
"subject": "Welcome!",
"preheader": "Here’s a special message for you.",
"from": "Marketing",
"fromEmail": "default fromEmail",
"replyTo": "support@company.com",
"cc": "backup@incomaker.com",
"language": "cs",
"assetId": "1234",
"thumbnail": "/asset/15613/templates/5135sdf1sd32"
}
}