Here we discuss the possibility to use gravitational microlensing in order to probe the geometry around a massive black hole. Taking into account that lensed quasars are emitting X-rays which come from the heart of these objects, we investigated the influence of microlensing on the Fe Kα line shape originated in Schwarzschild and Kerr metrics.