Maddie answered Probably only legal if you are working with the police on tracing a suspicious text message.