The messaging API