> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# Idaho Code § 12-122 — ATTORNEY’S FEES IN HABEAS CORPUS ACTIONS.

- **Citation**: Idaho Code § 12-122
- **Node Type**: section
- **Jurisdiction**: Idaho (state)
- **Code Body**: Idaho Code (through the 2026 Legislative Session) (Idaho Code)
- **Official Source**: [https://legislature.idaho.gov/statutesrules/idstat/Title12/T12CH1/SECT12-122/](https://legislature.idaho.gov/statutesrules/idstat/Title12/T12CH1/SECT12-122/)
- **Canonical URL**: [https://corpuslaw.us/codes/idaho/title-12/chapter-12-1/section-12-122](https://corpuslaw.us/codes/idaho/title-12/chapter-12-1/section-12-122)
- **Semantic URL**: [https://corpuslaw.us/codes/idaho/title-12/chapter-12-1/section-12-122](https://corpuslaw.us/codes/idaho/title-12/chapter-12-1/section-12-122)

## Hierarchy

Title 12 — COSTS AND MISCELLANEOUS MATTERS IN CIVIL ACTIONS > Chapter 12-1 — COSTS

## Text

12-122. ATTORNEY’S FEES IN HABEAS CORPUS ACTIONS.

In any habeas corpus action brought by a state penitentiary or county jail inmate, the judge shall award reasonable attorney’s fees to the respondent, if, in the judgment of the court, the habeas corpus action was brought frivolously by the petitioner.

In all habeas corpus actions which result in a denial or dismissal of a writ of habeas corpus, the court shall make a specific finding whether or not the habeas corpus action was brought frivolously by the petitioner.

For purposes of this section, "brought frivolously," shall mean that the petitioner petitioned the court for a writ of habeas corpus based upon claims which either had no basis in fact or, even if the factual allegations were true, they did not, as a matter of law, justify any relief to the petitioner; provided, however, that the court, in its discretion, may determine that the action was not brought frivolously when the action involves a material issue of law that has not been settled by statute or by supreme court decision in this state.

[12-122, added 1983, ch. 248, sec. 1, p. 669.]
