Rep. Ilhan Omar has filed for divorce from the father of her three kids, claiming the marriage is “irretrievable” — amid allegations that she had an affair with DC-based political consultant Tim Mynett.

The freshman congresswoman filed to split from husband Ahmed Hirsi on Friday in Minnesota, the state she represents, The Post has learned.

Omar filed on her 37th birthday, according to the US House of Representatives’ archives.

Omar and Hirsi were married in a religious ceremony in 2002. The two separated in 2008, then legally remarried in 2018.

“There has been an irretrievable breakdown of the marriage relationship,” the court documents filed in Minnesota say.

Omar said neither partner is seeking an order of protection and she asks the court to grant them “joint legal and physical custody” of their three minor children.

She also asked the court to determine child support to “serve the minor children’s best interest” and award the “marital property” as the court “may deem just and equitable.”

In August, The Post was first to report that DC-based doctor Beth Mynett had filed for divorce from her husband, Tim Mynett, alleging that he was carrying on an affair with Omar.

All the while, Omar’s campaign fund was paying Tim Mynett’s firm for work, including for travel.

Conservative watchdog groups have filed complaints with the Federal Election Commission over this money transfer.

In early September, Tim Mynett filed a response with the DC court denying he had an affair.

“Since the time of Mr. Mynett’s departure from the marital home, Ms. Mynett began a negative campaign against Mr. Mynett, seemingly in an effort to ruin his career and permanently damage his relationship with William and his step-daughter,” the court papers said.

The Mynetts have one son together.

They were due in DC court Monday morning, but late Friday, the hearing was rescheduled for later this month.

According to Beth Mynett’s divorce papers, the couple separated in April after Tim Mynett acknowledged he was in a romantic relationship with Omar.

“Defendant met Rep. Omar while working for her,’’ the document states. “Although devastated by the betrayal and deceit that preceded his abrupt declaration, Plaintiff told Defendant that she loved him, and was willing to fight for the marriage.”

“Defendant, however, told her that was not an option for him’’ and moved out the next day, the papers say.

The Mynetts married in 2012.

In his response, he said Beth Mynett pressured him to get married after the birth of their son.

“The thought of living apart from William, and his step-daughter, to whom Mr. Mynett had developed a strong bond, was more than he could imagine. The parties married later that year,” the documents said.

He said by 2018, he was “disenchanted with the parties’ marriage and relationship and was struggling to reconcile his deep personal unhappiness with his desire to keep his marriage and family intact.”

But in the filings, he denied ever being involved with Omar.

Beth Mynett suggested that her husband’s “more recent travel and long work hours now appear to be more related to his affair with Rep. Omar than with his actual work commitments.”

She also accused Tim Mynett of putting their son in danger by bringing him around Omar, “who at the time had garnered a plethora of media attention along with death threats, one rising to the level of arresting the known would-be assassin that same week.”

Omar has avoided answering questions posed by The Post and other news organizations about the alleged affair.

She ignored a reporter in late August, continuing to make small talk outside a scheduled event at the University of Minnesota, and then rushed inside.