City Hall claims it found the apartments needed to fulfill Mayor Bill de Blasio’s ­four-year-old promise to provide domestic violence survivors with needed shelter, following a review prompted by The Post.

“Housing provides an escape for the victim. It is the light in their darkness. A place of safety and refuge,” said the Rev. Carmen Rivera, a victims’-rights advocate and abuse survivor.

“Thank you, Mayor de Blasio for listening and ­taking action.

“Once the victim has a safe place and the peace that comes from that, they are able to take their next step into freedom and rebuilding a healthy life,” ­Rivera added.

Hizzoner vowed in 2015 to add 400 sorely needed transitional housing apartments for victims — which would have more than doubled the city’s supply to 643 units.

But de Blasio’s administration struggled to deliver.

The Department of Social Services had secured only 165 new apartments by March, before adding another 130 this summer.

That left a deficit of 105 apartments, which DSS spokesman Isaac McGinn chalked up last week to difficulty locating units with affordable rents.

“This program may face challenges that result from a crunched housing market and hesitancy from landlords to participate when there is a robust private market,” McGinn said, adding that the 105 units would be open “in the coming years.”

By Wednesday — just hours after The Post published its story — City Hall had changed its tune and said it found nonprofits with the needed apartments.

“The team took another look and determined they have enough applicants right now to award 105 units by the end of the year,” de Blasio press secretary Freddi Goldstein said.

She encouraged “more providers to apply” for the shelter contracts, but was unable to say how the city had fast-tracked the process.

Additional reporting by Gabrielle Fonrouge