API Returns Invalid Ticket

API Returns Invalid Ticket

Hi there

I am developing a site with php and want to be able to send emails with the Zoho Mail API. 

But whenever I make the CURL Request to " https://mail.zoho.com/api/accounts/123345344/messages

I get this answer back:  "{"data":{"errorCode":"INVALID_TICKET","moreInfo":"Invalid ticket"},"status":{"code":400,"description":"Invalid Input"}}"

I have 
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'authtoken'=>'myauthtoken'
)
);
in the header. 

Is this wrong?

Thanks in advance