Contact an award-winning Writ of Habeas Corpus lawyer today. To get a writ of habeas corpus, you must file a petition for a civil (not criminal) proceeding in either state or federal court.This form is not to be used if you, the petitioner, claim that your federal sentence itself is unlawful. A Habeas Corpus Petition must be filed in federal court within one (1) year and 90 days after the Michigan Supreme Court's ruling (465 days). An action for habeas corpus to inquire into the cause of detention of a person may be brought in any court of record except the probate court. IN THE NAME OF THE PEOPLE OF THE STATE OF MICHIGAN: TO: , the agency or person having custody of. Name. This course will primarily focus on the writ as a post-conviction remedy for illegal detentions resulting from flawed state criminal convictions. The court explained that a party filing a federal habeas corpus petition must exhaust their state court remedies prior to filing the petition. Bay may petition for writs of habeas corpus). (Minor's initials, e.g. "M.