curl --request POST \
--url https://api.sendx.io/api/v1/rest/send/template \
--header 'Content-Type: application/json' \
--header 'X-Team-ApiKey: <api-key>' \
--data '
{
"from": {
"email": "[email protected]",
"name": "From Name"
},
"to": [
{
"email": "[email protected]",
"name": "To Name",
"customFields": {}
}
],
"subject": "Your Subject Here",
"template": "template_f3lJvTEhSjKGVb5Lwc5SWS",
"replyTo": {
"email": "[email protected]",
"name": "Reply Name"
}
}
'