The FBI initially obtained a search warrant for the wrong Manhattan hotel room in connection with its investigation into Michael Cohen, according to a trove of papers unsealed Tuesday.

Special agents received a search warrant for Room 1728 at the Loews Regency Hotel on Park Avenue on April 8, 2018 — but then learned the next day that President Trump’s former fixer was actually staying in a suite one floor down, documents said.

Cohen had been temporarily holed up in Room 1628 — a suite comprised of Rooms 1628, 1629 and 1630 — at the luxury hotel starting on Feb. 1, 2018, the papers said.

The hotel room mix-up was thanks to a cellphone eavesdropping device called a “triggerfish” that pinpointed Room 1728 as the place where Cohen was “most likely present.”

The feds were seeking a variety of evidence — bank records, documents pertaining to his taxi medallion business and debt, records of income from his law firm and documents stating his net worth, available cash, tax returns and other details, according to the filings.

The search warrant snafu was revealed in nearly 900 court papers related to the April 2018 raid on Cohen’s home, office and hotel room. Cohen had been under investigation for various tax fraud and campaign finance crimes. He’s since pleaded guilty to related charges.