Okla. Stat. tit. 22, § 1105
Upon the allowance of bail and the execution of the requisite recognizance, bond, or undertaking to the state, the magistrate, judge, or court, must, if the defendant is in custody, make and sign an order for discharge. The court, in its discretion, may prescribe by court rule the conditions under which the court clerk or deputy court clerk, or the sheriff or deputy sheriff, may prepare and execute an order of release on behalf of the court.
R.L. 1910, § 6107; Amended by Laws 1995, SB 258, c. 286, § 8, emerg. eff. July 1, 1995.