The chosen court must have jurisdiction to hear the case. The plaintiff must plead a recognized cause of action and seek a recognized remedy that provides the needed relief. Either the Trial Court or Court of Appeals.
Jurisdiction is a separate issue.
1331 usually applies. Under federal law, the enabling statute usually allows for judicial review and sets forth the procedures for how judicial review to be obtained. When statutory review available, it is the only path to judicial review. Jurisdiction is established. The statute will establish specific requirements for review, e.g., the court that will conduct the review as well as the time and the form in which review sought.