Every country has its own patent office or authority. To patent an app idea in USA is USPTO, In India, IPO, and for global, WIPO.