Sending Email via API - Request format

Hi there,

I am trying to send an email using the API [as per the api docs], but I am receiving an error (see below). The SMTP settings and the email via the workflow works as intended.

Please, could anyone guide me on what’s wrong with my request?

curl -X POST “/api/compose/notification/email”
-H “Authorization: Bearer $JWT”
–data-raw ‘{ “values”: [
{ “to”: [“xyz@”],
“from”: “app@”,
“replyTo”:“app@”,
“subject”: “Test CURL email”,
“content”: “hello-world”
}]
}’

Response:
{“error”:{“message”:“cannot send email message without recipients”}}

Thanks!