fixed rest send messages api