added actions and messages api endpoints