Added ability to specify custom content-type of messages sent via API