X-ray reverberation echoes are assumed to be produced in the strongly distorted spacetime around accreting supermassive black holes. This signal allows us to spatially map the geometry of the inner accretion flow 1,2 -a region which cannot yet be spatially resolved by any telescopeand provides a direct measure of the black hole mass and spin. The reverberation timescale is set by the light travel path between the direct emission from a hot X-ray corona and the reprocessed emission from the inner edge of the accretion disc 3-6 . However, there is an inherent degeneracy in the reverberation signal between black hole mass, inner disc radius and height of the illuminating corona above the disc. Here, we use a long X-ray observation of the highlyvariable active galaxy, IRAS 13224-3809, to track the reverberation signal as the system evolves on timescales of a day 7,8 . With the inclusion of all the relativistic effects, modelling reveals that the height of the X-ray corona increases with increasing luminosity, providing a dynamic view of the inner accretion region. This simultaneous modelling allows us to break the inherent degeneracies and obtain an independent timing-based estimate for the mass and spin of the black hole. The uncertainty on black hole mass is comparable to the leading optical reverberation method 9 , making X-ray reverberation a powerful technique, particularly for sources with low optical variability 10 .IRAS 13224-3809 is a nearby and bright active galactic nucleus (AGN). As a Narrow Line Seyfert 1 (NLS1) type AGN, it is characterised by a high rate of accretion 11,12 onto a relatively low mass, supermassive black hole ( "#~1 0 ' ⊙ , where ⊙ is the solar mass). In accordance with such extreme rates of accretion, highly ionised winds driven from the accretion flow at near relativistic speeds have been detected from this source 13,14 . IRAS 13224-3809 has been observed for 16 full orbits (~130 ks per orbit) with the European Space Agency's X-ray Multi-Mirror Mission (XMM-Newton 15 ), totalling 2 Mega-seconds of observations. The source is one of the most variable X-ray objects in the sky, undergoing rapid and large amplitude variations on timescales of minutes 7,8 . It is unique in that the shape of the variability (visualised as power spectral density -PSD) is also time-dependent, varying on days timescales 7,8 . This short-timescale variability is observed in most AGN, which -along with gravitational microlensing observations of quasars 16 -indicates that the X-rays are emerging from a region within the central ~15 + (where + = "# / 0 is the gravitational radius, G is the gravitational constant and c is the speed of light). At a distance of nearly a billion light years, such regions have an angular size on the sky too small to be resolved using present or planned instruments.Observations of AGN tell us there must be a hot 'corona' of electrons close to the black hole, which constitutes a significant fraction of their total luminosity 11,12 . The origin and geometry of this corona is unknown, but i...