Customers who went to withdraw money at the ATM received scribbled notes which majority thought was a joke.
The man was there to fix a door lock, which got the better of him, Corpus Christi police spokesman Chris Hooper told The Washington Post.
After completing transactions, customers were shocked to find alarming handwritten notes popping out of the receipt slot.
"Please Help Im stuck here and I don't have my phone please call my boss", the note read in part.
The man was a contractor who was working on the machine when he accidentally locked himself inside, according to Corpus Christi police officer Gena Pena.
Kingdom Hearts 3 arrives in 2018, to fans' relief
Let us know what you think of the trailer and for more Kingdom Hearts III news stick around here at Gamer Professionals. According to the presentation during the D23 live stream, it was announced that Kingdom Hearts 3 is coming in 2018.
Far from a candid camera-style hoax, the officers were amazed when a little voice came out of the machine, The Washington Post reported Friday.
The man later told the police he had been screaming for help. The man was not harmed, but he was trapped in the machine for two hours before he was freed.
"Everyone is OK, but you will never see this in your life, that somebody was stuck in the ATM, it was just insane", Olden said.
The unidentified contractor, who had left his cellphone in his truck, encountered a problem with the lock.