Oklahoma Direct Appeal from an Order of Detention and Scope of Appeal is a process that allows a person to appeal the decision of a trial court to detain them in a correctional facility. The process is initiated by filing a writ of habeas corpus with the Oklahoma Court of Criminal Appeals (CCA). The writ must be filed within 30 days of the order of detention and must include the grounds for the appeal. The writ of habeas corpus can be filed in one of two ways: 1) Direct Appeal: This type of appeal is used when a defendant believes that the trial court made an error in making the order of detention. The appeal must be filed within 30 days of the order of detention and must include the grounds for the appeal. 2) Scope of Appeal: This type of appeal is used when a defendant believes that the trial court exceeded its authority in making the order of detention. The appeal must be filed within 90 days of the order of detention and must include the grounds for the appeal. The CCA will review the writ of habeas corpus and decide whether to grant or deny the appeal. If the CCA grants the appeal, the order of detention will be reversed and the defendant will be released from custody.