just to make a clarification, if you paid a "bail" you, or the payee are entitled to the money back. I don't know if they can legally withold the administrative fees and such they usually do when a suspect is found guilty though.
If you paid a "bond", you aren't getting anything back. A bond is effectively an insurance policy you purchased for a % of the actual bail amount. The bondsman gets to keep the bond purchase price. That is how they make money.