The present invention relates to azaspiro derivatives of the formula (I) or a pharmaceutically acceptable salt thereof or a prodrug thereof, processes for their preparation, pharmaceutical compositions containing them and their use in the treatment of various disorders which are mediated via the TRPM8 receptor,