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.
Renzi: 'Nessuna coltellata a Letta, Pd mi chiese di sostituirlo'
Non si è fatta attendere la replica del predecessore, che su Twitter ha scritto: "Reazioni a Renzi? Più o meno la stessa percentuale di Civati qualche anno più tardi".
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.