For athletes applying to an International Federation:
You can then appeal the IF decision to CAS for a final decision.
For athletes applying to a National Anti-Doping Organization:
You can then appeal the NADO decision to an independent review body in your country. If this body grants you the TUE, WADA could appeal this decision to CAS for a final decision.