How can you get your text message records from ATandT?

I called sprint today to get my own text message records for my own phone, they could only tell me how many messages i used they could not tell me what they said or give me a print out of the text. I have a ex in the past 2 years she is sending me text about when I can and cannot see my son and I wanted a print off of these text messages and bring them to court with me. Sprint admitted to having the records, but told me that I needed a sapena to get the records for my own phone. I think that is bs, but that's cell phone companies for you.