Created endpoints for messaging