New York Petition And Order For Writ of Habeas Corpus Ad Testificandum is a legal document used in the state of New York to demand the release of someone from unlawful detention. It is a form of relief sought in court that orders a person or entity to bring a detained person before the court for a hearing to determine whether the detention is lawful. The petition is typically filed by an attorney on behalf of the detained person, and it is the first step of filing a writ of habeas corpus. There are two types of New York Petition And Order For Writ of Habeas Corpus Ad Testificandum: 1) the general petition, which is used for any person detained by a public authority in New York; and 2) the special petition, which is used for special circumstances, such as a juvenile detained in a correctional facility. Both petitions must include certain information, including the identity of the detained person, the grounds of the detention, and the relief sought.