Is it possible to send email via Rest or not?

Is it possible to send email via Rest or not?

Hi all
I am trying to send email from android app via Zoho REST API but i am seeing odd errors that lead me to ask

1# Is it still possible to send email via rest api?
2# Is there any simple but complete example to do it?
3# In the attempt to put it to work I have been testing some REST commands via command line curl:

$curl -X GET -H 'Authorization: Zoho-authtoken xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'  https://mail.zoho.com/api/organization

in order to get account ID but i get:

{"data":{"errorCode":"IAMError%3AZ101%3AISCSCOPE_MISMATCH"},"status":{"code":404,"description":"Invalid Input"}}

Also, documentation points to the URL:  http://mail.zoho.eu/api/accounts/<accountId>/messages  but there is a redirect error. We need to use https right?


When executing:

curl -X POST -H "Accept: application/json" -H 'Authorization: Zoho-authtoken xxxxxxxxxxxxxxxxxxxxxxxxxxxxx' -d '{"fromAddress":" xxxxx@yyyyy.com","toAddress":" xxxxx@kkkkkk.com","subject":"test","content":"test"}' https://mail.zoho.eu/api/accounts/21xxxxx16/messages

I see:

{"data":{"errorCode":"INVALID_TICKET","moreInfo":"Invalid ticket"},"status":{"code":400,"description":"Invalid Input"}}

What does ticket have to do with sending email by REST?


Thanks a lot