Using the Secure Messaging API