Retirement tax questions

You are allowed to take your original contributions to a ROTH ( not rolled or converted amounts) tax and penalty free at any time for any reason.   So did you take out more than your original contributed amount ?  Did you invade any of the earnings ?