added messages api documentation