adding messages api