give curl example for send messages using rest api